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

Yes, I did like that, although that was just an example. But still don't get it to work.

Let's walkthrough this.

Our image: <img src="/folder1/folder2/images/404_head.png">

I can do this with event based rules, so no data element is needed?
event type: element exists
Apply event handler directly to element (didn't check)
Element Tag or Selector: img
Checked "Manually assign properties & attributes" and added, property: src and value: 404_head.png (no regex)
And I have to add some kind of rule?