• Resolved driver49

    (@driver49)


    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]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello @driver49 thanks for getting in touch with your question.

    I’ve checked your site and I can confirm a standard Analytics snippet is placed on your site, so everything looks correctly configured.

    In relation to the opt out snippet this is a separate snippet that appears only for logged in users if you’ve enabled this configuration to not count logged in users (it’s toggled on by default). This is found in your Site Kit Analytics settings.

    You will be seeing this while logged into your site but if you log out of the site and navigate to it and view the source code you should see that this opt out snippet is not there. This is because you are not logged into your WordPress admin account at the time of viewing the frontend of your website.

    Let me know if this has answered your question and if you have any further questions on this.

    Thread Starter driver49

    (@driver49)

    Thank you Adam.

    Just so I’m clear: I am only seeing the opt out tag b/c I’m visiting the site a) while I’m logged into the dashboard in another tab in the same browser window AND b) I’ve told Google to ignore my specific IP address?

    Is that right?

    So anybody else – you, for example – visiting the site outside of those two parameters should show up in my Analytics as a unique visitor… right?

    If that’s all correct, kindly confirm for me and we’l be done here.

    Thanks,

    –PS

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @driver49,

    Just so I’m clear: I am only seeing the opt out tag b/c I’m visiting the site a) while I’m logged into the dashboard in another tab in the same browser window AND b) I’ve told Google to ignore my specific IP address?

    Correct that you’ll only see this opt-out snippet as a logged in user. Note however that this will appear regardless of any blocks to your IP Address. The opt-out snippet will appear as a logged in user alone.

    So anybody else – you, for example – visiting the site outside of those two parameters should show up in my Analytics as a unique visitor… right?

    If I visit your site then I won’t be able to view this opt-out snippet, and my visited will be counted in your Analytics data. Blocking particular IP addresses however isn’t something that can be configured within Site Kit, although you could set up a filter at Analytics level.

    Thread Starter driver49

    (@driver49)

    Yes, that is what I did, create a filter “at Analytics level.”

    So I still need to be clear – somehow – that it’s working. From what I gather you’re telling me here, that has nothing to do with that ‘opt-out’ snippet I’m seeing in the code, right? That’s just something I am seeing because I’m also logged in.

    Does that snippet appear (delivered to) all users, and just ignored in my case because I’m logged in?

    I’d still like some verification (which I got excited I was getting from the opt-out snippet) that the IP filter is working. I’m only getting a handful of hits to this site each day. It would be genuinely exciting to know that they’re to all me.

    Thanks,

    –PS

    Plugin Support James Osborne

    (@jamesosborne)

    Nice work setting up a filter! See below answers to your latest query:

    So I still need to be clear – somehow – that it’s working. From what I gather you’re telling me here, that has nothing to do with that ‘opt-out’ snippet I’m seeing in the code, right? That’s just something I am seeing because I’m also logged in.

    Correct. You’ll see the out-out snippet regardless of any filtering you’ve applied at Analytics level (as long as you’re checking your site while logged in)

    Does that snippet appear (delivered to) all users, and just ignored in my case because I’m logged in?

    That snippet will be visible for only logged in users. The value may changed depending on your Site Kit configurations. ie. window["ga-disable-G-7***G"] = true; or
    window["ga-disable-G-7***G"] = fale;

    As the snippet only refers to logged in users, it won’t be visible and it won’t impact non logged in users. You may have filtering applied at Analytics level, but this won’t result in any change to your standard Site Kit placed snippet.

    I’d still like some verification (which I got excited I was getting from the opt-out snippet) that the IP filter is working. I’m only getting a handful of hits to this site each day. It would be genuinely exciting to know that they’re to all me.

    That’s understandable that you wish to find out more! Just note that the opt-out snippet placed via Site Kit works independently to any filtering applied at Analytics level!

    The product experts over at the Analytics Help Center may also be able to advise further on filtering, or adding your own custom placed analytics snippet if preferred.

    Thread Starter driver49

    (@driver49)

    Nice work setting up a filter!

    I appreciate that very much. I’ve been on such a crash course over the past couple of weeks that my head is spinning, so I value the encouragement.

    I guess we’re good with the rest.

    Thanks,

    –PS

    Plugin Support James Osborne

    (@jamesosborne)

    No problem whatsoever, happy to assist! You may also find the below useful if you’re looking for some additional training:
    https://analytics.google.com/analytics/academy/

    Best of luck with your site. Be sure to also share your thoughts on Site Kit after you get a chance to test out the dashboards.

    Thread Starter driver49

    (@driver49)

    Google instructions tend to border on the arcane > impenetrable, but thanks for that link, I’ve opened the page and will look at it.

    –P

    Appreciate the question and the fast answer. Helped me out.

    Plugin Support James Osborne

    (@jamesosborne)

    Glad to hear that @aarondwyer! And props to @driver49 for all the great questions.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘What is “Google Analytics opt-out snippet added by Site Kit”?’ is closed to new replies.