AEM & Google Analytics URL tracking | Community
Skip to main content
December 22, 2022
Solved

AEM & Google Analytics URL tracking

  • December 22, 2022
  • 1 reply
  • 1961 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kiran_Vedantam

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/

1 reply

Kiran_Vedantam
Community Advisor
Community Advisor
December 22, 2022

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.

 

Nadia_MacAuthor
December 22, 2022

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?

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
December 22, 2022

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/