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

Page not found question

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

21-07-2017

Hi All,

I setup a data element that captures the "page not found" string from the title for our 404 page since it's the only indicator that the page is a 404 other than the image.

data element:

var pageNotFound = document.title;

return pageNotFound

Page load rule:

I then applied this to a page load rule (see below)

then added: s.pageType="errorPage" to the custom page code section

Question: is this a correct implementation in order for it to populate the page not found report or am i missing a step for correct implementation?

1262744_pastedImage_0.png

Replies

Avatar

Avatar
Establish
Employee
hyderziaee
Employee

Likes

228 likes

Total Posts

465 posts

Correct Reply

222 solutions
Top badges earned
Establish
Coach
Contributor
Shape 1
Give Back 25
View profile

Avatar
Establish
Employee
hyderziaee
Employee

Likes

228 likes

Total Posts

465 posts

Correct Reply

222 solutions
Top badges earned
Establish
Coach
Contributor
Shape 1
Give Back 25
View profile
hyderziaee
Employee

21-07-2017

Looks correct. Make sure you are not setting the pagename variable.

-Hyder

Avatar

Avatar
Coach
Employee
ericmatisoff
Employee

Likes

152 likes

Total Posts

279 posts

Correct Reply

78 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
View profile

Avatar
Coach
Employee
ericmatisoff
Employee

Likes

152 likes

Total Posts

279 posts

Correct Reply

78 solutions
Top badges earned
Coach
Contributor
Shape 10
Shape 1
Ignite 5
View profile
ericmatisoff
Employee

23-07-2017

To confirm this is working as expected, visit a page that would throw a 404 error (yourdomain.com/asdf.html or something) and use your packet sniffer to check that pageType is getting set to errorPage:

1263605_pastedImage_0.png

Note that I have a filter applied to my Network tab in Chrome DevTools to b/ss so I'm evaluating only Adobe tags.

You can also use the Adobe debugger bookmarklet:

1263606_pastedImage_3.png

Good luck!

Avatar

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 4
scottt6073095
Level 4

Likes

66 likes

Total Posts

102 posts

Correct Reply

3 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
scottt6073095
Level 4

24-07-2017

thank you for the information on how to check and confirm that the implementation is working. So, it looks like the pageType:"errorPage" is working correctly however, pageName is also getting set.

Question, I was looking in the global variables section in DTM because I was going to add an exclusion to remove pageName from any pages that had "Page not found" in the document.title however, the global variables settings do not have conditions. Is there another way to remove pageName from the pages that have "Page not found" in the document.title?

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

24-07-2017

Any variable set in the global variables section will apply to every page. You'd need to either move the pageName in a page load rule with a condition, or you could create a rule in Analytics to change or drop that value when it's seen.

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,331 posts

Correct Reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

31-07-2017

Did one of the previous responses answer your question?

Avatar

Avatar
Validate 1
Level 3
marina_bear
Level 3

Likes

22 likes

Total Posts

32 posts

Correct Reply

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

Avatar
Validate 1
Level 3
marina_bear
Level 3

Likes

22 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
marina_bear
Level 3

09-08-2017

I would like to share our experience. We no longer populate Pages Not Found report. Two reasons for that:

1. All 404 pages will populate Page Name report nevertheless, and they will populate it with 404 page URLs, which is not very user friendly

2. Not all errors are page errors and not all page errors are 404. We found there is more value in capturing all sorts of errors in a dedicated report (including all 404 page errors), error URLs and user friends error page names in respective other reports

if you want to go ahead with populating the Pages Not Found report, then you will need to clear all global variables (that is including pageName and other global vars that you set in AA Tool) with clearVars function