Développer ma barre des réalisations de la Communauté.

Join our product experts for a live Ask Me Anything on November 12th at 8 AM PT about Experiences & Efficiency with AEP Agent Orchestrator & How Agentic AI is Fueling Smarter Testing and Growth!

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

getVisitStart function or Page = 1 for Visit first page?

Avatar

Level 2

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?

1 solution acceptée

Avatar

Réponse correcte par
Level 1

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 

Voir la solution dans l'envoi d'origine

1 Reply

Avatar

Réponse correcte par
Level 1

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