Created
December 4, 2015 10:56
Star
You must be signed in to star a gist
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