Hi there,
Ive never worked with AA before so apologies for the beginner question. Ive been tasked to track a modal but after reading online documentation and the blogs of implementation experts (Jim Gordon, etc) Im still very confused by the many different ways of doing it. Seems like theres eVars, eProps, events, rules, dataLayer, and no dataLayer so im trying to understand whats the correct combination of things or the best way of setting up the following:
I need to create a tagging spec for:
1 - CTA button to open a modal
2 - CTA button to close a modal
3 - While the modal is open, track clicks to a 'learn more' link
In GA i track this as follows:
window.dataLayer = window.dataLayer || []; window.dataLayer.push({
'event': 'trackEvent',
'category': 'modal',
'action': 'link click',
'label': '[clicked text]', // 'learn more'
'linkUrl': '[clicked url]', // 'example.com/text'
});
4 - While the modal is open, track clicks to items (similar to anchor links but they are not links) that have each a date and time.
In GA i track this as follows:
window.dataLayer = window.dataLayer || []; window.dataLayer.push({
'event': 'trackEvent',
'category': 'modal',
'action': 'click',
'label': '[clicked text]', // '06/06/2020 - 13:00PM'
});
Im very familiar with Google Analytics, GTM, JavaScript and dataLayers but not with AA and Launch so anything helps.
Thanks!
Rafa