Tuesday, May 30, 2017

How to track signups with Google Analytics (without thank-you pages)

SET THE "TRIGGER"

1. Paste the following snippet into the code that loads after signup is successful (e.g. the "Successfully logged in" popup)

ga('send', 'event', { eventCategory: 'video', eventAction: 'play', eventLabel: 'watchnow', eventValue: 1})

So that it sends info to GA after a button is clicked:

<input id=”contact-submit” class=”button” type=”submit” value=”Submit” onClick="ga('send', 'event', { eventCategory: 'video', eventAction: 'play', eventLabel: 'watchnow', eventValue: 1});">

or it sends info to GA when a pixel is loaded:

<img src="http://www.mydomain.com/1x1_blank.jpg" onLoad="ga('send', 'event', 'Banner', 'Impression','Banner1');"/>

<img src="popup.gif" onload="ga('send','event','popups','popup-homepage');">


SET THE "LISTENER"

1. GA > Admin > Property > View > Goals > "Add New Goal"
2. Goal setup (Custom) > Goal Description (Signups) > Goal slot ID (select an unused slot) > Type (Event)
3. Goal details
Category=video
Action=play
Label=watchnow
Value=1
4. Use the Event value as Goal Value for conversion: YES
5. SAVE


VIEW GOAL PERFORMANCE

1. GA > Acquisition > Campaigns > All Campaigns
2. Primary Dimension: Campaign
3. Conversions (select the goal description made earlier e.g. "Goal 2: Signups")
OR
Reports > BEHAVIOR > Events


Sources
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
https://developers.google.com/analytics/devguides/collection/analyticsjs/sending-hits
https://support.google.com/analytics/answer/1033068?hl=en
https://www.optimizesmart.com/event-tracking-guide-google-analytics-simplified-version/
https://www.koozai.com/blog/analytics/the-complete-google-analytics-event-tracking-guide-plus-10-amazing-examples/

If using Google Tag Manager:
https://www.optimizesmart.com/event-tracking-in-google-tag-manager-v2-complete-guide/#TrackingExternalLinks

No comments:

Post a Comment

Popular Posts