File tree Expand file tree Collapse file tree 4 files changed +54
-3
lines changed
Expand file tree Collapse file tree 4 files changed +54
-3
lines changed Original file line number Diff line number Diff line change 4949 window [ disableStr ] = true ;
5050 }
5151 </ script >
52- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-XXX -1 ">
52+ < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-124275661 -1 ">
5353 </ script >
5454 < script >
5555 window . dataLayer = window . dataLayer || [ ] ;
Original file line number Diff line number Diff line change 1+ < html >
2+
3+ < head >
4+
5+ < meta name ="robots " content ="noindex, nofollow ">
6+
7+ < script >
8+
9+ // Set to the same value as the web property used on the site
10+
11+ var gaProperty = 'UA-124275661-1' ;
12+
13+
14+
15+ // Disable tracking if the opt-out cookie exists.
16+
17+ var disableStr = 'ga-disable-' + gaProperty ;
18+
19+ if ( document . cookie . indexOf ( disableStr + '=true' ) > - 1 ) {
20+
21+ window [ disableStr ] = true ;
22+
23+ }
24+
25+
26+
27+ // Opt-out function
28+
29+ function gaOptout ( ) {
30+
31+ document . cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/' ;
32+
33+ window [ disableStr ] = true ;
34+
35+ }
36+
37+ </ script >
38+
39+ </ head >
40+
41+ < body >
42+
43+ Don't do anything here unless instructed to by a dev (aka Pat).
44+
45+ < br >
46+
47+ < a onclick ="alert('Google Analytics Tracking is now deactivated'); " href ="javascript:gaOptout() "> Click here to opt-out of Google Analytics</ a >
48+
49+ </ body >
50+
51+ </ html >
Original file line number Diff line number Diff line change 4949 window [ disableStr ] = true ;
5050 }
5151 </ script >
52- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-XXX -1 ">
52+ < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-124275661 -1 ">
5353 </ script >
5454 < script >
5555 window . dataLayer = window . dataLayer || [ ] ;
Original file line number Diff line number Diff line change 4949 window [ disableStr ] = true ;
5050 }
5151 </ script >
52- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-XXX -1 ">
52+ < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-124275661 -1 ">
5353 </ script >
5454 < script >
5555 window . dataLayer = window . dataLayer || [ ] ;
You can’t perform that action at this time.
0 commit comments