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

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

Avatar

Avatar
Validate 1
Level 1
mohamed_saleem
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
mohamed_saleem
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
mohamed_saleem
Level 1

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
mohamed_saleem
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
mohamed_saleem
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
mohamed_saleem
Level 1

15-10-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

Answers (1)

Answers (1)

Avatar

Avatar
Boost 5
Level 2
gkopriva
Level 2

Likes

5 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
gkopriva
Level 2

Likes

5 likes

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
gkopriva
Level 2

15-10-2015

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