Created
December 4, 2015 10:56
-
-
Save emmanueltissera/f9997ba241f59efb6bb2 to your computer and use it in GitHub Desktop.
Excluding internal traffic in Google Tag Manager (setting a cookie)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
Response.Cookies["ignorePageViews"].Value = "true"; | |
Response.Cookies["ignorePageViews"].Expires = DateTime.Now.AddYears(10); | |
<i>Cookie set to ignore page views.</i> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment