Set up actions that you want the condition to trigger.
After setting up the condition, you must set up the actions that you want the condition to trigger. These actions can include Analytics events, third-party tags, and custom scripts. This example describes how to set up scripts or third-party tags.
Each rule can trigger as many scripts or HTML injections as you want.
Because DTM allows you to inject custom code into your page, please take care not to create cross-site scripting (XSS) vulnerabilities (see OWASP’s guide for more info). Using data elements within a script requires particular attention. Always assume data element values might come from an untrusted source.
To set up actions for the condition to trigger
Click Add New Script.
Name the script.
Specify how you want the script to trigger, and paste the desired content into the text area.
Click Save Code, and the script will be added to the queue for the rule.