Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter matm

    (@matm)

    Hi Kevin,

    Thank you so much for your quick reply and help.

    Unfortunately I’m not.
    I’ll ask our developer to take care of it then.

    Once again, thank you.
    And keep up the great work (keeping solutions simple + being super friendly/helpfull :))

    Matthieu

    Thread Starter matm

    (@matm)

    Hey @yikesitskevin,

    Awesome! It worked!

    I can only thank you for your help but, man, you’re awesome!
    Thank you for helping me out with lots of care.

    Until next time ??

    Cheers,
    Matthieu

    Thread Starter matm

    (@matm)

    Youps, sorry, I have pasted the code by accident.

    Thread Starter matm

    (@matm)

    Hi @yikesitskevin

    Thanks a lot for taking the time to help me and doing it with clear instructions. You’re just awesome!

    I have replaced all the fancy quotes with the standard one. Unfortunately, I didn’t notice anything in the real-time conversion section.
    I tried triggering the event with the code placed in the function.php section, right after the very first <?php line.

    However You’re right. Until now, I was using a plugin. For the record, it’s GA Google Analytics. Originally, this plugin only implements the Analytics.js code although it allows you to add some custom code. So that’s what I’ve done. As I thought that the outbound tracking link had to be also placed in the header.php file, I have added the code to the custom code section in the plugin, which places it in the header.php file automatically. As it wasn’t working, I ended up placing it myself in the header file, in vain too. Then, I removed the code from the header.php file and placed it in the function.php file, in vain too.

    Where do you think I’m doing it wrong?

    view-source:https://www.axens.net/connect-in/

    add_action( ‘yikes-mailchimp-google-analytics’, ‘yikes_mailchimp_google_analytics’, 10, 1 );

    function yikes_mailchimp_google_analytics( $form_id ) {
    ?>
    <script type=”text/javascript”>

    var form_id = <?php echo $form_id; ?>;

    // Fire off GA event for a failed subscription
    function yikes_mailchimp_google_analytics_failure( response ) {

    ga( ‘create’, ‘UA-19986230-13’, ‘auto’ );
    ga( ‘send’, ‘event’, ‘mailchimp-subscribe’, ‘subscription-failed’ );
    }

    // Fire off GA event for a successful subscription
    function yikes_mailchimp_google_analytics_success( response ) {
    ga( ‘create’, ‘UA-19986230-13’, ‘auto’ );
    ga( ‘send’, ‘event’, ‘mailchimp-subscribe’, ‘subscription-successful’ );
    }

    </script>
    <?php
    }

    Thread Starter matm

    (@matm)

    Hi @yikesitskevin,

    It’s been 24h and it looks like it’s not working here.

    And I’m probably the reason why as I’m just getting started with all this stuff.

    So, I have injected the code (the one I pasted here in my first message) while making sure it’s customized with our tracking ID.
    See for yourself source code Axens

    Then I have set up an Event Goal by naming the category and action after the ones in the Event tracking code (‘mailchimp-subscribe’, ‘subscription-successful) just in case they had to be the same.

    But nada…

    Any thoughts?

    Thanks in advance ??

    Thread Starter matm

    (@matm)

    Hi @yikesitskevin,

    Thanks for your reply.

    I’ll let you know then asap.

    Cheers,
    Matthieu

    Thread Starter matm

    (@matm)

    Hi Kevin,

    Thank you so much for your help and thoughtfulness.
    You’re awesome!

    I added the code this morning and it works perfectly well.

    Cheers,
    Matthieu

Viewing 7 replies - 1 through 7 (of 7 total)