Capturing Referring URL in AEM-Analytics Integration | Community
Skip to main content
New Participant
December 23, 2015
Solved

Capturing Referring URL in AEM-Analytics Integration

  • December 23, 2015
  • 1 reply
  • 832 views

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

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 Gigazelle

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.

1 reply

Gigazelle
GigazelleAccepted solution
Employee
January 5, 2016

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.