Use case I'm trying to solve for is such:
- We are pulling content for emails using Content API from AEM
- AEM is integrated with GA/GTM
Q: will the links in the email will automatically be tracking links?
Solved! Go to Solution.
Views
Replies
Total Likes
In general, you expose the links via the data layer (JS Code) from AEM and consume them in google analytics.
Refer this link on tracking from GA: https://www.ruleranalytics.com/blog/click-attribution/track-links-google-analytics/
Hi @Nadia_Mac
As per my understanding, you are asking whether the links in the email be automatically tracked. If my guess is right, the answer is No. You should write the code to track them.
Note: If there is already some existing code that tracks all your links, then it might work.
Let me know if I misunderstood your query.
Hope this helps.
Thanks,
Kiran Vedantam.
Thanks @Kiran_Vedantam for your reply. Your guess is correct. Where would I write this code? and what type of code should I write to add the tracking to the urls in the email?
In general, you expose the links via the data layer (JS Code) from AEM and consume them in google analytics.
Refer this link on tracking from GA: https://www.ruleranalytics.com/blog/click-attribution/track-links-google-analytics/
@Kiran_Vedantam Thank you for the answer. will take your suggestion in the implementation!
Views
Replies
Total Likes
Links can't automaticlaly be tracked. You can create tag in GTM with some class (css) to track all links and it will push required details of triggered tag in GA
Or You can push required details to datalayer and make variable in GTM and track in GA.
https://www.analyticsmania.com/post/google-tag-manager-click-tracking/
Thank you for providing the details, will take your suggestions in mind.
Views
Replies
Total Likes
Views
Likes
Replies