Traffic source in session storage lost from domain to subdomain. | Community
Skip to main content
Level 2
March 25, 2021
Question

Traffic source in session storage lost from domain to subdomain.

  • March 25, 2021
  • 2 replies
  • 1414 views

Hello,

 

I have a case to trigger rules based on traffic source, but I see in session storage that traffic source is lost when moving from domain to subdomain as below:-

https://www.allianz-assistance.es/

https://calcular-seguro-viaje.allianz-assistance.es/B2C/TRAVEL/ES/step-1?iframelessBU=default

 

Can I still use Traffic Source as a condition?

What would be required to have Traffic Source maintained between domain and subdomain?

 

PS:

I have already declared both domain and subdomain as internal and not to be tracked as outbount links.

 

Thanks.

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

2 replies

Jacob-DDdev
Level 6
March 26, 2021

Hi @shubhams7318036 ,

 

You may want to check out stackoverflow for a general question about local/session storage, answer .

If data is saved on a subdomain, it won't be accessible by another subdomain. The linked answer mentions techniques for gettering around this. As a possible solution from within Launch, you could dynamically update all href's on the relevant <a> elements (dom ready) to include a customized query strings based on data elements or some other custom code. And then add additional logic on the new page to read from the query string.

 

All the best,

J

Stewart_Schilling
Community Advisor
Community Advisor
April 27, 2021

Sorry if this has reached you too late.

 

Since both of your URLs are on the same eTLD+1 (allianz-assistance.es), you could use a session cookie to persist info and make it accessible from any URL that is a sub domain of allianz-assistance.es.

 

You could do this in straight JS or you could use the SDI Toolkit's cookie setter action. See https://techdocs.searchdiscovery.com/adobe-solutions/adobe-launch/launch-extensions/sdi-toolkit/actions/cookie-setter

 

Cheers, 

-Stew