Site Kit not adding snippet
-
Problem: Site Kit code snippets are not being injected into the header
I have been working on setting up all my google accounts for our new site. I have console, tags, analytics (UA and GA4), ads, etc… all setup under the same account and following a few tutorials, I have linked them together. These are now all tied to my self hosted Site Kit plugin. I have disconnected and I have removed all data. I have triple checked all account ID codes. I had cleared caches and disabled cache plugins. Under the Analytics tab in the settings, I have added the GA4 property and I have added the Ads Conversion ID. It says that “Snippet is inserted” but they are not. I am at my wits end here.
Site Kit shows analytic data in my WP dashboard. I can login to google and see analytic data. Ad words is working. As best as I can tell, google tag manager is setup with all the correct details and I have published them multiple times to be sure. With all this said, code snippets are not being injected into the header.
When I view page source, within the head tag I see this:
<!-- Google Analytics opt-out snippet added by Site Kit --> <!-- End Google Analytics opt-out snippet added by Site Kit --><!-- Google Analytics snippet added by Site Kit --> <!-- End Google Analytics snippet added by Site Kit --><!-- Google Tag Manager snippet added by Site Kit --> <!-- End Google Tag Manager snippet added by Site Kit -->There is no code snippets between the comments! Just blank space…
Using https://tagassistant.google.com/, I get an error, “Could not connect to sunnyoakslakebastrop.com” and “A timeout occurred while attempting to connect to https://sunnyoakslakebastrop.com ”
Directly below the /head tag I get this:
<!-- Google Tag Manager (noscript) snippet added by Site Kit --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MLRL954" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) snippet added by Site Kit -->So I know its kind of working but not completely.
- This topic was modified 4 years, 1 month ago by . Reason: simple edits
- This topic was modified 4 years, 1 month ago by .
- This topic was modified 4 years, 1 month ago by . Reason: adding more detail
The page I need help with: [log in to see the link]
The topic ‘Site Kit not adding snippet’ is closed to new replies.