matm
Forum Replies Created
-
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
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Event TrackingHey @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,
MatthieuForum: Plugins
In reply to: [Easy Forms for Mailchimp] Event TrackingYoups, sorry, I have pasted the code by accident.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Event TrackingThanks 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
}Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Event TrackingHi @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 AxensThen 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 ??
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Event TrackingForum: Plugins
In reply to: [Easy Forms for Mailchimp] Description Text too close from 1st CheckboxHi 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