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

getVisitStart function or Page = 1 for Visit first page?

Avatar

Avatar
Validate 1
Level 2
ericg19526068
Level 2

Likes

5 likes

Total Posts

9 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
ericg19526068
Level 2

Likes

5 likes

Total Posts

9 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
ericg19526068
Level 2

28-10-2019

We are trying to limit a DTM rule to fire on the first page of the visit only. What is the definitive way to configure this using DTM?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 1
Level 1
mayankr87420749
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
mayankr87420749
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
mayankr87420749
Level 1

26-12-2019

It can be done by checking and setting a cookie in two steps

For example:

Step1: Check for a cookie "firstVisit"(you can assign any random name) when a visitor lands on the first page.

the DTM rule will be triggered when it does not found the cookie(you can use custom code)

Step2: Create another tag on window load which sets the cookie which you were searching for in the first tag and was not set, this will ensure that the first tag doesn't fire on the next pages or reload.

 

Make sure step 2 triggers only after step1 is triggered 

Answers (0)