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: How to save 404 errors to pagename, eVar etc.

Avatar

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile
Antti_Ko
Level 8

15-10-2015

If user goes to url that doesn't exist and then the browser gets status code 404 error aka page not found. If that happens, I would then like to save "errorpage" to s.pageName and the status code "404" to eVar5. Any ideas which would be the easiest or the best way to do this with dynamic tag management? I didn't see any rules for status codes in the "page load rules" section. Do I have to again (!) make some kind of custom script? Thanks for all the help.

View Entire Topic

Avatar

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile

Avatar
Contributor
Level 8
Antti_Ko
Level 8

Likes

270 likes

Total Posts

151 posts

Correct Reply

1 solution
Top badges earned
Contributor
Validate 10
Validate 1
Shape 25
Shape 1
View profile
Antti_Ko
Level 8

15-10-2015

The problem is that url does not contain any unique information about 404 error. We can have http status code 404 on any url that does no exist. Of course we have unique 404 error image and with that I can create rule, but what if somebody change the image name/url. It would be much more reliable if I could make this kind of rule "if http status code is 404 then fire my rule X", but this is not possible? Maybe it's again possible to do some kind of custom script that fires my rule if http status code is 404. Have use Google to find help to make this kind of custom javascript, if you can't tell directly? 😃