Google Tag Manager
-
Hi,
I’m using Google Tag Manager (GTM) and am trying to fire events for form submissions.
I found a example for Google Analytics in the support-pages and adapted it. It seems pretty straightforward, but the event doesn’t show up in the dataLayer.
Has anyone done this before? Any tips, tricks? Hopefully I’m not the first one trying…
Thanks,
Rob<script ... // Fire off GA event for a failed subscription function yikes_mailchimp_google_analytics_failure( response ) { dataLayer.push({ 'event': 'registrationFailed' }); } // Fire off GA event for a successful subscription function yikes_mailchimp_google_analytics_success( response ) { dataLayer.push({ 'event': 'registrationComplete' }); }</script>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Google Tag Manager’ is closed to new replies.