Adding simple code snippets to Voyage modals will enable user events within the modals to be tracked with Google Analytics. Please feel free notify service@voyagesms.com so we can assist with adding the appropriate code to your List Building modals.
Step 1: Determine the following
-
What are the trackable events?
-
Naming convention for category, action and labels.
Step 2: Voyage adds GA tracking code to the modal(s)
In the example below, we're using this to track impressions:
hitType: 'event',
eventCategory: ‘InsertCategoryName1’,
eventAction: 'Impression',
eventLabel: 'Voyage mobile modal',
nonInteraction: true
This to track the "X" close button:
hitType: 'event',
eventCategory: ‘InsertCategoryName2’,
eventAction: 'Dismiss',
eventLabel: 'Voyage mobile modal',
nonInteraction: true
This to track the email address submit button:
hitType: 'event',
eventCategory: ‘InsertCategoryName3’,
eventAction: 'Email Sign up',
eventLabel: 'Voyage mobile modal',
nonInteraction: true
This to track the SMS submit button:
hitType: 'event',
eventCategory: ‘InsertCategoryName4’,
eventAction: 'SMS Sign up',
eventLabel: 'Voyage mobile modal',
nonInteraction: true
Below are details for the events we normally fire. Please let us know how you'd like to name each one for each of your modals:
[Example] List of modals:
- April 2021 Desktop Email and SMS
- April 2021 Desktop Email only
- April 2021 Desktop SMS only
- April 2021 Mobile SMS only
[Example] Values:
- example eventCategory: SMS Marketing (Voyage)
- example eventLabel: April 2021 Desktop Email and SMS
Events:
Impressions:
hitType: 'event',
eventCategory: ‘InsertCategory’,
eventAction: 'Impression',
eventLabel: 'InsertLabelName',
nonInteraction: true
"X" close button:
hitType: 'event',
eventCategory: ‘InsertCategory’,
eventAction: 'Dismiss',
eventLabel: 'InsertLabelName',
nonInteraction: true
Email address submit button:
hitType: 'event',
eventCategory: ‘InsertCategory’,
eventAction: 'Email Sign up',
eventLabel: 'InsertLabelName',
nonInteraction: true
Phone number submit button:
hitType: 'event',
eventCategory: ‘InsertCategory’,
eventAction: 'SMS Sign up',
eventLabel: 'InsertLabelName',
nonInteraction: true