What is “Google Analytics opt-out snippet added by Site Kit”?
-
I am in the middle of a crash course on the inner workings of WordPress, SEO, Analytics etc etc. I’ve been a WP ‘end abuser’ ?? for years but this is the first time I’ve looked past the dashboard.
I was looking at the Source Code for one of my pages to see where the gtag.is snippet appears. Before I found that snipped – on line 2337!), I found this snippet near the top:
<!– Google Analytics opt-out snippet added by Site Kit –>
<script>
window[“ga-disable-UA-249098151-1”] = true;
</script>
<script>
window[“ga-disable-G-00JP2ZQGR5”] = true;
</script>
<!– End Google Analytics opt-out snippet added by Site Kit –>Now, I THOUGHT I had configured something in Site Kit to tell Google to ignore when I visit my own site: Per some instructions I found elsewhere, I found my specific IP address and entered that into an “exclusion” panel somewhere in SiteKit.
I thought that ‘ga-disable’ snippet was ONLY for my IP, but I Googled:
“Google Analytics opt-out snippet added by Site Kit”
…and the answer that came up is:
“The add-on prevents the Google Analytics JavaScript (gtag. js, analytics. js) that is running on websites from sharing information with Google Analytics about visit activity.”
Which SEEMS to infer that this ‘opt-out’ snippet is superseding the gtag snippet 2300 lines down for ALL visits, NOT just MY own visits.
Can anybody tell me if the ‘opt-out’ snippet is doing JUST what I want it to (hiding my own visits) or did I just inadvertently tell Google not to index my site altogether?
If the former, great. If the latter, then I still need help with the former.
Make sense?
Thanks,
–PS
The page I need help with: [log in to see the link]
- The topic ‘What is “Google Analytics opt-out snippet added by Site Kit”?’ is closed to new replies.