Create variables
Now create variables that will allow the Facebook pixel to correctly count time and number of events.
Name the first variable “DLV – gtm.timerEventNumber”, select “Data Layer Variable” as the type and enter “gtm.timerEventNumber” as the variable name.
Yes, the names are not very intuitive, but English frees us from the danger of Polish characters, and the whole thing refers to the tag code.
2_Create a Pixel event that measures time spent on site and find engaged users
Name the second variable “DLV – gtm.timerInterval”, select “Data Layer Variable” morocco rcs data as the type and enter “gtm.timerInterval” as the variable name.
Create tag
Now that we have all the “components” needed to construct a tag, let’s tackle it.
Create a tag called “Facebook – blog – 30 sec+”. Of course, the name is just a suggestion. Choose “custom html” as the tag type. And paste the following code:
4_Create a Pixel event that measures time spent on site and find engaged users
Click "Advanced Settings" and then "Tag Sequencing."
Check the "Fire tag before Facebook tag fires - blog - 30 sec+" option, click "Select tag" and select the tag with the basic Pixel code.
Variable configuration - pixel - time on site
-
- Posts: 239
- Joined: Sun Dec 22, 2024 8:27 am