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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

DTM page name set without page refresh

Avatar

Level 1

Hello, I am new to DTM and I have set up a few data elements and I need to set the page name on every page but there is no page refresh.  The page names are defined in the data layer.  How do I create a rule, specifically, to capture the page name depending on what it is defined in the data layer?

1 Accepted Solution

Avatar

Correct answer by
Employee

This sounds like you are talking about a single page application that uses ajax or something like that.  The best method for handling this would be the use of a Direct Call rule.   You build the rule like any other in DTM, but the name you give it becomes a parameter in a function call.  _satellite.track('Direct Call Rule Name Here').   You will need this function call embedded into the call on the page that controls the loading of new content. 

-Rudi

1 Reply

Avatar

Correct answer by
Employee

This sounds like you are talking about a single page application that uses ajax or something like that.  The best method for handling this would be the use of a Direct Call rule.   You build the rule like any other in DTM, but the name you give it becomes a parameter in a function call.  _satellite.track('Direct Call Rule Name Here').   You will need this function call embedded into the call on the page that controls the loading of new content. 

-Rudi