The Site Kit plugin for WordPress makes it easy to install multiple Google services on your site, including Google Analytics. However, occasionally there are cases where the analytics tag is not output to the page, even if Site Kit is successfully connected. The following is a detailed explanation of how to resolve these issues.
Why is the Analytics tag not output?
If you have completed the Google Analytics setup in Site Kit, but the data is not being collected or the tags are not being output, there may be a problem with the plugin’s cache or account authentication. Conflicts with WordPress themes or other plugins may also affect this.
How to check analytics tag output
- Open the Developer Tools in your browser and go to the “Network” tab to see if a Google Analytics request has been issued. Usually you will see requests like “collect” or “gtag.js”.
Or search for strings such as “tagmanager” in the output source code. - If you do not see the request, or if the word “tagmanager” is not in the source code, there is most likely a problem with the Site Kit configuration.
Solution: Disconnect and reconnect Site Kit
- Open the “Site Kit” menu in the WordPress admin panel and click the account icon in the upper right corner.
- You will see the option “Disconnect” > “Reset”, select it and reset.
- Login to “Site Kit” again and reconnect to the necessary Google services (e.g. Analytics) using your Google account.
- After reconnecting, check the page again and check that the Analytics tag is outputting correctly.
Additional point: cache and conflict resolution
Sometimes caching can prevent tags from being output, so clear the plugin cache or disable any cache plugins in use before rechecking. Also, since conflicts with themes or other plugins may cause tags not to output, temporarily disable other plugins to troubleshoot.
Thus, for problems with Site Kit not outputting analytics tags, methods such as disconnecting and reconnecting, clearing the cache, and conflict resolution are effective.