Previous PageName Not working when we go different domain | Community
Skip to main content
Level 2
December 20, 2017
Solved

Previous PageName Not working when we go different domain

  • December 20, 2017
  • 3 replies
  • 3122 views

We used plugin (getPreviousValue )in DTM for capturing previous pagename in adobe analytics. When the domain changes (Pitney Bowes US | Digital Commerce, BI, Shipping & Mailing  to Pitney Bowes Shop US - Shipping, Mailing and Equipment  ) its capturing current pageName instead previous pageName. Does any one have fix for the issue?

Thanks,

Saila

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 Rydal_Williams

Hi Saila,

The reason for that is because getPreviousValue stores the cookie value at the domain level and because you are going from pitneybowes.com to pitneybowes.us you lose that value because you can't read cookies across domains. It looks like you are using s_gpv_pn as your cookie name to store that value.

Browsers these days are very restrictive on exchanging data across domains because of security reasons, so its going to be hard to accomplish such a feat. A scenario you could try is use a query string parameter on all url's that lead to .us!

A better question is why are you doing this - maybe I can help solve the ultimate goal differently?

3 replies

Rydal_Williams
Rydal_WilliamsAccepted solution
Level 4
December 21, 2017

Hi Saila,

The reason for that is because getPreviousValue stores the cookie value at the domain level and because you are going from pitneybowes.com to pitneybowes.us you lose that value because you can't read cookies across domains. It looks like you are using s_gpv_pn as your cookie name to store that value.

Browsers these days are very restrictive on exchanging data across domains because of security reasons, so its going to be hard to accomplish such a feat. A scenario you could try is use a query string parameter on all url's that lead to .us!

A better question is why are you doing this - maybe I can help solve the ultimate goal differently?

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 21, 2017

Dear Gigazelle​, AbhijeetKMishra​, TanmayM​,

Can help?

Thank You!

Arun

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
Level 2
January 8, 2018

Thank you, I will try query parameter approach.