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

Fire analytics only on certain pages...

Avatar

Avatar
Boost 1
Level 1
davidp86482746
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
davidp86482746
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
davidp86482746
Level 1

22-09-2017

Is it possible to have Analytics fire only on certain pages? I tried adding a path condition in DTM to the page load rule, but that didn't seem to make any difference at all. I'm now trying to accomplish the same result by deactivating the beacon via the following custom code:

if(document.location.href.indexOf("whatever")!=-1){

    return false

}

Does anyone have any tips on what the actual best way to have Analytics only fire on certain pages?

View Entire Topic

Avatar

Avatar
Boost 1
Level 1
davidp86482746
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
davidp86482746
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
davidp86482746
Level 1

26-09-2017

Thanks Alexis-- customer care confirms this as the correct solution, although I'm still not seeing the results that I would expect. I'll follow up with any additional insight once I have a complete solution. I would imagine that the issue lies with me and how I'm setting up the rules/conditions, rather than this approach itself.