DTM page name set without page refresh | Community
Skip to main content
shannon_staley
New Participant
October 16, 2015
Solved

DTM page name set without page refresh

  • October 16, 2015
  • 1 reply
  • 1351 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rudi_Shumpert

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

Rudi_Shumpert
Rudi_ShumpertAccepted solution
Employee
October 16, 2015

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