Previous URL tracking for Internal Domains | Community
Skip to main content
VaishuNP
Level 2
May 8, 2025
Solved

Previous URL tracking for Internal Domains

  • May 8, 2025
  • 3 replies
  • 1348 views

Hi Everyone,

 

We have two internal sites: pro.novonordisk.com and sciencehub.novonordisk.com. At present, when users navigate from the pro site to sciencehub, we are unable to capture the previous URL/page from which they navigated; it only shows the homepage as the previous page. Is there a solution available that would allow us to capture this data?

 

Here is the navigation link

https://pro.novonordisk.com/our-science.html 

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 VaishuNP

@kautuk_sahni 

Yes, I found another solution. As previously mentioned, we implemented the previous page functionality via an Adobe plugin. Since the cookies are placed in different domains, the plugin does not work across domains. However, the referrer captures the previous URL when a user navigates from one domain to another. Hence, we decided to utilize this data for understanding the user journey.

3 replies

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 8, 2025

Hi @vaishunp 

which field are you using for the previous page URL? document.referrer? And to which analytics prop/eVar is that mapped?

 

If the referrer does not work for you, and since you are using the same Launch property, you could alternatively store this information in a cookie that is set on ".novonordisk.com" to make it readable and store this information for instance in the page view call.

Cheers from Switzerland!
VaishuNP
VaishuNPAuthor
Level 2
May 8, 2025

Hi @bjoern__koth ,

 

Thank you for your response. The Previous Page functionality is implemented in prop6 using the previous page plugin. Regarding cookie settings, we are currently using document.location.hostname, which causes a mismatch between the domains. Which command should I use to set it to '.novonordisk.com'?

 

In web sdk, how will i implement this? Please let me know your thoughts

 

 

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 8, 2025

I am not sure whether you can set the domain in the previous page plugin, but you could also do it yourself at the end of the page view rule evaluation.

// make sure to use "." instead of the subdomain _satellite.cookie.set("prev_page", "pre page value", {"domain": ".novonordisk.com"})
Cheers from Switzerland!
AnkitJasani29
Level 6
May 8, 2025

Hi @vaishunp ,

Quite agree with @bjoern__koth 's provided solution.

Another thing which you can try by passing referrer as a query parameter.

Example: https://sciencehub.novonordisk.com?referrer=https://pro.novonordisk.com/our-science.html

Extract the referrer parameter and push it to WebSDK for tracking.

VaishuNP
VaishuNPAuthor
Level 2
May 8, 2025

Thank you so much @ankitjasani29 . Implementing referrer tracking is quite time-consuming here,   so I am looking for a solution that can be implemented on the launch end.

AnkitJasani29
Level 6
May 8, 2025

Hi @vaishunp ,

 

You can configure a data element in launch that reads the referrer or the custom referrer query param and sends it as part of your page view or click tracking.

kautuk_sahni
Community Manager
Community Manager
June 30, 2025

@vaishunp Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!

Kautuk Sahni
VaishuNP
VaishuNPAuthorAccepted solution
Level 2
June 30, 2025

@kautuk_sahni 

Yes, I found another solution. As previously mentioned, we implemented the previous page functionality via an Adobe plugin. Since the cookies are placed in different domains, the plugin does not work across domains. However, the referrer captures the previous URL when a user navigates from one domain to another. Hence, we decided to utilize this data for understanding the user journey.

AnkitJasani29
Level 6
June 30, 2025