How to make a page load rule only firing on a landing page

Avatar

Avatar
Validate 1
Level 2
jaykwon
Level 2

Likes

10 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
jaykwon
Level 2

Likes

10 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
jaykwon
Level 2

05-11-2017

Hi. Like the title, I am wondering if there is a way to make a page load rule that fires only on a landing page. I knwo for a fact that dtm had 'landing page' condition, but is there a specific way to make this to fire on when visitors entered on our website? I tried to make a rule with 'landing page' = \S (with regex) but i don't think this works.

And plus, when I add a conversion tracking source (Google Adwords) on a landing page, is it okay to make the source fire on all pages?

If anyone has an answer, please let me know.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
joshd7227840
MVP

14-11-2017

To create a Page Load Rule that only triggers on first page view of a session, you can use Engagement: Page Views.

Under Conditions > Rule Conditions > Criteria, choose Engagement: Page Views.

Set User has had "equal to"  1  page views, and select Current Session.

chrome_2017-11-14_14-56-33 - Copy.png

.josh

Answers (3)

Answers (3)

Avatar

Avatar
Validate 50
Level 7
marion33678522
Level 7

Likes

167 likes

Total Posts

170 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 50
View profile

Avatar
Validate 50
Level 7
marion33678522
Level 7

Likes

167 likes

Total Posts

170 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 50
View profile
marion33678522
Level 7

07-11-2017

Hello !

You could use a page load rule without any conditions, so it fires every time , and in the custom code try doing a if condition on a cookie that would be something like this :

If ( cookie 'landing page' exists ){ do nothing }
else {
     create cookie 'landing page' with 0 expiration  ; // 0 expiration is a session.
     do someting;
}


This should work ! well , not like this, on proper java script. DTM has already cookie methods ( creat, write, read, erase) but i don't remmeber these.

Cheers !

M.

Avatar

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
joshd7227840
MVP

14-11-2017

Custom cookie based logic one way to go, yes.  But instead of letting the rule fire every time with no condition, would be better to place this logic as a Data:Custom condition.

Avatar

Avatar
Validate 50
Level 7
marion33678522
Level 7

Likes

167 likes

Total Posts

170 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 50
View profile

Avatar
Validate 50
Level 7
marion33678522
Level 7

Likes

167 likes

Total Posts

170 posts

Correct reply

5 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 50
View profile
marion33678522
Level 7

07-11-2017

Maybe the name of my cookie is not the most explicit. The cookie is just a token to see if it's or it's not the landing page. Think 'NOT landing page'. Sorry !