DTM - s.getPreviousValue for s.pageName is returning empty/no value | Community
Skip to main content
mohamed_saleem
New Participant
October 16, 2015
Solved

DTM - s.getPreviousValue for s.pageName is returning empty/no value

  • October 16, 2015
  • 2 replies
  • 2519 views

Hello Everyone,

Having an issue with DTM analytics implementation. 

One of the props is used to capture the previous pagename and this is populated using the Data Element which in turn contains this piece of code "return s.getPreviousValue(s.pageName, 's_gpv_pn');". This always returns empty/no value, and this seems to be the issue, because you expect it return the previous page's pagename.

The rest of the eVars and Props are populated correctly.

The DTM Analytics setup looks like below,

Tool (Sitecatalyst):

- Load adobe analytics page code at "Page Bottom"

- The s-code is managed in the editor.

Rule (Global Page Load):

 - Trigger rule at "Bottom of Page"

All suggestions welcomed.

Regards,

Riyaz

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 mohamed_saleem

Hello Everyone,

I was able to find away to populate the previous pagename. Moved the existing logic into "Custom Page Code" editor of "Global Page Load" rule and it worked as expected.

Hope this answer helps someone in future too. Chao.

Best Regards,

Riyaz

2 replies

New Participant
October 16, 2015

I also added the getpreviouspage function within my page load rule in the custom code section and prop is populated correctly.

mohamed_saleem
mohamed_saleemAuthorAccepted solution
New Participant
October 16, 2015

Hello Everyone,

I was able to find away to populate the previous pagename. Moved the existing logic into "Custom Page Code" editor of "Global Page Load" rule and it worked as expected.

Hope this answer helps someone in future too. Chao.

Best Regards,

Riyaz