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

DTM page load rules

dannal64135419
Level 2
Level 2

The company's website tracking was set up using DTM, and the data from sitecatalyst don't match server logs. I notice there are a few rules in the system which I have question with.

1) A "dynamic page name" rule which has the js code as follows:

var pagePath = window.location.pathname;
var pageName = pagePath;

while(pageName.charAt(0) === '/'){
  pageName = pageName.substr(1);
}
//set Page Name
s.pageName = pageName.split('/').join(' > ');
s.pageURL = pagePath;

2) a home page rule which fires on a condition when path includes '/' and this rule fires on every page load. However, there is no eVar or prop assigned for this rule.

3) there are also page load rules set up for different individual page, with eVar assigned but no prop. 

My question: the first rule looks like doing a job of capturing each page name of the site. What about rule 2) and 3)? Since there is no props assigned, will the page view counts still be passed to Adobe and shown in the reports?

1 Accepted Solution
Rahsing
Correct answer by
Level 8
Level 8

Hi,

As you mentioned, scenario 1 should pose no problem.

In case of scenarios 2 and 3 you would need to assign a variable for capturing the relevant page name.

Basically, right now, you have a rule that fires when a condition is met but there is no variable at the data layer to capture this data.

You can have a look at the documentation provided above for more info on these.

Rahul

View solution in original post

2 Replies
Rahsing
Correct answer by
Level 8
Level 8

Hi,

As you mentioned, scenario 1 should pose no problem.

In case of scenarios 2 and 3 you would need to assign a variable for capturing the relevant page name.

Basically, right now, you have a rule that fires when a condition is met but there is no variable at the data layer to capture this data.

You can have a look at the documentation provided above for more info on these.

Rahul

View solution in original post

shekhardhiman
Employee
Employee

Hi there,

Thanks for reaching out to Adobe Community.

If the rule condition is true then as per my knowledge it should capture the details if you have enabled that:

For better understanding of the page load rules, please see:

https://marketing.adobe.com/resources/help/en_US/dtm/rules_page.html

https://marketing.adobe.com/resources/help/en_US/dtm/load_order.html

Thanks!