I just saw this and frankly it is useless. Almost all of my rules use
custom code and the comparison screen shows my code minified and all on
one line.I need it to appear as it does in the code editor.
This cannot be done thru a processing rule unless all the individual
pieces are being sent at the same time. I would suggest using a custom
variable, e.g. an array to capture all these values and then send them
concatenated prior to when the user navigates away from the page or
closes the browser.
I don't think you can do what you are proposing. I think it is a 1:1
relationship with direct call rules (and possibly 1:many). Meaning that
each direct call will have to have at least one rule attached to it. I
also don't think there is any way of referencing the trigger event. What
I would do is update the data layer with whatever tab you are clicking
on and fire the same direct call rule for all 5 tabs. In your one rule
you can set the evar to the value in the data layer.
For all our SPAs we use direct call rules which the developer would fire
after the datalayer was ready. Custom events ion DTM I believe are page
events such as button clicks, hash changes, etc. that trigger a rule to
It is a confirmed bug. A JIRA ticket was opened with DTM devs. We are
not using data elements since that would require us to create a rule for
every page load. We have about 30 different pages with different tags
firing on each one. The approach we took is 6 rules, 3 for page loads
and 3 for link clicks. Each one is triggered by a direct call rule and
they contain switch statements (i.e. custom code) to handle the
different pages and tags.
I have Google Analytics and and SiteCat firing on a page load with
SiteCat first and GA second. However when it runs the GA is getting
fired first. THis is causing issues since some of the GA variables are
based on SiteCat variables which need to be set first.Can someone help?