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 do I populate a tag with a simple js alert test?

Avatar

Avatar
Validate 1
Level 3
salomepb
Level 3

Likes

9 likes

Total Posts

36 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 3
salomepb
Level 3

Likes

9 likes

Total Posts

36 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
salomepb
Level 3

15-10-2015

How do I populate a tag with a simple js alert test in DTM?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
salomepb
Level 3

Likes

9 likes

Total Posts

36 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 3
salomepb
Level 3

Likes

9 likes

Total Posts

36 posts

Correct Reply

16 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
salomepb
Level 3

15-10-2015

Populating a tag with a js alert in DTM is very simple. You just need to place the js alert into a third party tag in the 'Javascript / Third Party Tags' section of a rule. If you just want to test the tag, it's likely best to set this up in a page load rule so no on-page action is needed to trigger the rule fire.

Here's a few links that may provide some additional context if needed: 

Answers (2)

Answers (2)

Avatar

Avatar
Boost 5
Employee
joelstachowicz
Employee

Likes

5 likes

Total Posts

12 posts

Correct Reply

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

Avatar
Boost 5
Employee
joelstachowicz
Employee

Likes

5 likes

Total Posts

12 posts

Correct Reply

3 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 3
Affirm 1
View profile
joelstachowicz
Employee

15-10-2015

In case the console is not open, you can use the built-in DTM function _satellite.notify('message',1) as well. It provides the additional capability of handling multiple error levels.

Avatar

Avatar
Validate 1
Level 2
Cleve_Young
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Cleve_Young
Level 2

Likes

7 likes

Total Posts

19 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
Cleve_Young
Level 2

15-10-2015

Using console.log() for testing can be a more efficient method, since you don't have to worry about any the code being interrupted while the browser waits on the alert popup.