Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Previous PageName Not working when we go different domain

sailakumarip633
Level 3
Level 3

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

1 Accepted Solution
Rydal_Williams
Correct answer by
Level 4
Level 4

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?

View solution in original post

3 Replies
Rydal_Williams
Correct answer by
Level 4
Level 4

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?

View solution in original post

sailakumarip633
Level 3
Level 3

Thank you, I will try query parameter approach.