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

SOLVED

Rules do not fire

Community_Admin
Employee
Employee

My rules in DTM are currently not firing. What are some things that I can check?

1 Accepted Solution
Community_Admin
Correct answer by
Employee
Employee

If your event-based rule does not fire, then there is likely an issue with the selector / condition of the rule. Locate the element on your site where the desired event action occurs, right click and select Inspect element. Inspect the highlighted script in the box that opens and ensure you are targeting the correct element. Example:

Target element: <div class=’pauseButton’ style=’opacity: 1’>

Selector Syntax:

  • CSS Selector Syntax: div.pauseButton OR div[class=’pauseButton’]
  • Manually assign attributes:
    • Element Tag: div
    • Property: class
    • Value: pauseButton

View solution in original post

2 Replies
Community_Admin
Correct answer by
Employee
Employee

If your event-based rule does not fire, then there is likely an issue with the selector / condition of the rule. Locate the element on your site where the desired event action occurs, right click and select Inspect element. Inspect the highlighted script in the box that opens and ensure you are targeting the correct element. Example:

Target element: <div class=’pauseButton’ style=’opacity: 1’>

Selector Syntax:

  • CSS Selector Syntax: div.pauseButton OR div[class=’pauseButton’]
  • Manually assign attributes:
    • Element Tag: div
    • Property: class
    • Value: pauseButton

View solution in original post

andrewgats
Level 2
Level 2

If you are comfortable with using the javascript debugging tool within a browser, I recommend using the DTM's debug logging.  More complete information is available in the DTM Object Reference.

But, you can execute the comment 

_satellite.setDebug(true);

This will turn on the logging in your console.  These logs will tell you all the rules and events that DTM executed and captured.

[img]dtm-debug.png[/img]