Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Capturing Referring URL in AEM-Analytics Integration

Avatar

Level 4

Hi,

  We have integrated AEM v6.0 with Adobe Analytics for metrics tracking.

We have a requirement to capture the various visitor sources like web, email etc.We where able to capture Referring url when the request is coming from web page( navigating from a different page to our page).

But we where not able to capture the Referrer url, if the request is coming from an email( In email, we have a link to our page, when we click on the link, our page opens where we are tracking metrics).

Please let me know, is there any out of box feature to capture referrer url, if the request is coming from email.

 

Regards

Sreeni

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

That is because there is usually no referring URL when clicking on an email.

Instead of attempting to track this URL using the referrer, what you can do is implement a query string parameter in the link(s) in your email, have Adobe Analytics capture that query string, then place the query string either in an eVar or place it in the referring URL directly. For example

Inside your email, place the link www.example.com?customquerystring=email

Then in Adobe Analytics, place the following code:

s.eVar1 = s.getQueryParam("customquerystring");

That will allow you to track all emails that are sent out to users, regardless of whether they open the email in a web browser or standalone application like Outlook.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

That is because there is usually no referring URL when clicking on an email.

Instead of attempting to track this URL using the referrer, what you can do is implement a query string parameter in the link(s) in your email, have Adobe Analytics capture that query string, then place the query string either in an eVar or place it in the referring URL directly. For example

Inside your email, place the link www.example.com?customquerystring=email

Then in Adobe Analytics, place the following code:

s.eVar1 = s.getQueryParam("customquerystring");

That will allow you to track all emails that are sent out to users, regardless of whether they open the email in a web browser or standalone application like Outlook.