DTM: How do I populate a tag with a simple js alert test? | Adobe Higher Education
Skip to main content
salomepb
Level 3
October 16, 2015
Respondido

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

  • October 16, 2015
  • 3 respostas
  • 1890 Visualizações

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

Este tópico foi fechado para respostas.
Melhor resposta por salomepb

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: 

3 Respostas

salomepb
salomepbAutorResposta
Level 3
October 16, 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: 

Cleve_Young
Level 2
October 16, 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.

Adobe Employee
October 16, 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.