Expand my Community achievements bar.

How to track Personalized URL's/Links in Campaign Delivery?

Avatar

Level 7

Hello Folks - Hope you're doing great!

There is an requirement to track Personalized URL's present in delivery content whenever mail has been sent and the URL is clicked by recipients. But to my observation it is not working as expected, I am unable to see the URL's getting tracked in tracking logs / In the URL's tab which lists down all the url's that are present in the email delivery content

A quick example: This is the URL https://myUrl.com/<placeHolder>&id=identityNumber.

URL in the AEM template would look something like this: <a href="<%= targetData.link %>{identityNumber}">Click here</a>

where, <%= targetData.link %> is the personalized URL, its value is https://myUrl.com/<placeholder> which will be coming from a attribute present in Data schema for each and every recipient and gets appended by identity Number on sync of AEM content in delivery.

Once delivered, on clicking of it we are getting redirected to page but unable to view logs. Any pointers on exactly how to track the dynamic url's in campaign.

PS: I have enabled tracking on all links and also tracking workflow is ran time to time for quick view. But still no results. Quick help is appreciated

Regards,

Sri Bhargav

5 Replies

Avatar

Employee Advisor

Hi Sri Bhargav,

If I remember correctly the protocol + domain needs to be "hard-coded" in the delivery for enabling tracking.

So you would have to:

Avatar

Level 7

Thank You Ramon for your help. Let me give provide details of what is happening

https://www.google.com/token=as657887485hnfkd97878hjsh&id=67777899. Assume this is how final url looks like.

Where i made Protocol + Domain as hard-coded in HTML. Then /token=as6578-87485hnkfd-97878hjsh&id= is coming from an attribute in a schema. Finally 67777899 will come from AEM dynamically.

What is happening after i triggered an email and clicked on link is, some default Instance Level Tracking URL is getting appended at the beginning and final URL looks like somehow below:

https://ac-<instanceName>.neolane.net/r/?id=h41f535,2bcfe505,2bcfe509&p1=google.com/token=as6578-87485hnkfd-9787hjsh&id=

that's it, id value 67777899 is getting skipped out.

Is it due to the id present in my URL getting correlated with id coming from tracking URL.

Please provide your suggestion!

Regards,

Sri Bhargav

Avatar

Employee Advisor

Hi Sri Bhargav,

what do you mean with the id is coming from AEM dynamically?

When sending the mail, Campaign will pull the template from AEM and then prepare the data.

The template is pulled once from AEM for all recipients.

So any value retrieved from AEM would be static for all recipients.

How does the HTML look like after it was fetched from AEM?

Is it something like this:

   <a href="http://www.google.com<%= targetData.token %>67777899">...</a>

Avatar

Level 7

Hi Ramon,

Yes what you have mentioned is correct! The template is pulled once from AEM for all recipients. Here that id is static per each link present. We have some 10 or more links in the template

Actually in AEM, there is some java code written which will dynamically populate these ID's for all links present. But after it is fetched from AEM, final URL's would look something like below while previewing in Delivery

<a href="https://www.google.com/67777899">....</a>

<a href="https://www.google.com/35292392">....</a> and so on it will be for remaining links

Scriptlet is not appearing since it is dynamic for each and every recipient coming from schema, which gets appended once delivery is triggered.

After triggering the email, the URL will look something like below:

https://ac-<instanceName>.neolane.net/r/?id=h41f535,2bcfe505,2bcfe509&p1=google.com/token=as5478-6391-78h8fhf-87561jsh&id=

Since that ID is getting skipped, it is not redirecting to the proper page.

Regards,

Sri Bhargav