Expand my Community achievements bar.

SOLVED

Tracking Previous page value using adobe Web SDK.

Avatar

Level 2

Hello Everyone,

 

How do you all track the previous page name  with adobe web sdk? What is the best way to track it? Wondering if we can still use the adobe’s getPreviousValue plug-in with Web SDK?

 

Appreciate any responses! 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
5 Replies

Avatar

Correct answer by
Employee Advisor

Avatar

Community Advisor and Adobe Champion

I agree, this should work, since this plugin basically just stores the value as a cookie (with a 30 min expiry), then if the cookie exists track the value, if it doesn't, it assumes this is the first page in the visit and doesn't track a value.

Avatar

Level 2

Thank you! I started implementing the getpreviousvalue plugin and noticed we need to set the “cookieName” while creating a data element using Common web sdk plugins extension. Wondering what do i need to mention here for the cookieName?

Avatar

Employee Advisor

I think that is optional. If this argument is not set, it defaults to "s_gpv". Otherwise, you can rename something similar.

Avatar

Community Advisor and Adobe Champion

In the examples from the documentation, they used 

gpv_Page

 

"gpv" for "get previous value, and "page" to indicate that this is using the pagename value.

 

 

You can really call it whatever you need, the most important thing is, if you are collecting multiple "previous values" that you have unique names for each one, so that they aren't all trying to save to the default value and overwriting one another.

 

If you only have one, then the default name should be fine.