Deprecated: Creation of dynamic property WP_Term::$cat_ID is deprecated in /home/turbose/public_html/wp-includes/category.php on line 378
Deprecated: Creation of dynamic property WP_Term::$category_count is deprecated in /home/turbose/public_html/wp-includes/category.php on line 379
Deprecated: Creation of dynamic property WP_Term::$category_description is deprecated in /home/turbose/public_html/wp-includes/category.php on line 380
Deprecated: Creation of dynamic property WP_Term::$cat_name is deprecated in /home/turbose/public_html/wp-includes/category.php on line 381
Deprecated: Creation of dynamic property WP_Term::$category_nicename is deprecated in /home/turbose/public_html/wp-includes/category.php on line 382
Deprecated: Creation of dynamic property WP_Term::$category_parent is deprecated in /home/turbose/public_html/wp-includes/category.php on line 383
Deprecated: Creation of dynamic property WP_Term::$cat_ID is deprecated in /home/turbose/public_html/wp-includes/category.php on line 378
Deprecated: Creation of dynamic property WP_Term::$category_count is deprecated in /home/turbose/public_html/wp-includes/category.php on line 379
Deprecated: Creation of dynamic property WP_Term::$category_description is deprecated in /home/turbose/public_html/wp-includes/category.php on line 380
Deprecated: Creation of dynamic property WP_Term::$cat_name is deprecated in /home/turbose/public_html/wp-includes/category.php on line 381
Deprecated: Creation of dynamic property WP_Term::$category_nicename is deprecated in /home/turbose/public_html/wp-includes/category.php on line 382
Deprecated: Creation of dynamic property WP_Term::$category_parent is deprecated in /home/turbose/public_html/wp-includes/category.php on line 383
Google Tag Manager, GTM Triggers
I was asked more often than you can imagine the following question: “How to create GTM trigger, that fires only in the Landing page, without firing on the next pages”. There are tons of cases when you may need a tag to fire just on the first visited page, and there is simple solution to that, although it seems it’s not as obvious as you may think.
This is the reason I decided to write this short “dwarf” GTM article, which will be the first of many upcoming Custom GTM Trigger tips.
All you need is to use the built-in Variable
{{Referrer}}
(enable it from the Variables menu if you miss it as an option in the dropdown menu) and create a standard Pageview trigger, excluding your own hostname (change the value of the Referrer as your own hostname):
In a similar fashion you can create the opposite trigger. If you need something to fires on every page without the landing page (basically – creating trigger for Non Bouncers) – just replace the “does not contain” condition with “contain”.
1 Comment
Could you expand on this and explain how to use this to store the referring URL in a cookie using Tag Manager so that it can be recalled on a form at a later stage please?