How to Remove the Site Kit by Google Meta Generator Tag
Content
Many WordPress users who install Site Kit by Google discover a new meta tag in their website's source code. This tag, which looks like <meta name="generator" content="Site Kit by Google 1.113.0" />, is automatically added by the plugin. While this tag is harmless and doesn't impact site performance or SEO, some users prefer to remove it to maintain a cleaner codebase or to avoid potential conflicts with other SEO plugins that also add generator tags.
Why Does Site Kit Add This Tag?
The Site Kit by Google team includes this meta tag as a standard way to identify that the plugin is active on a site. It's a common practice among WordPress plugins. The presence of this tag does not mean the plugin is inserting tracking code or affecting your site's front-end performance; it is simply an identifier.
How to Remove the Meta Generator Tag
If you wish to remove this tag, you can do so easily by adding a small code snippet to your theme's functions.php file. It is highly recommended to use a child theme for this modification to prevent your changes from being overwritten during theme updates.
Here is the code snippet:
add_filter( 'googlesitekit_generator', '__return_empty_string' );
Steps to implement this solution:
- Log in to your WordPress admin dashboard.
- Navigate to Appearance > Theme File Editor.
- Select your child theme from the dropdown menu on the right (if you are using one).
- Click on the
Theme Functions (functions.php)file to edit it. - Paste the code snippet at the very bottom of the file.
- Click Update File to save your changes.
After saving, clear any caching mechanisms you have on your site (e.g., a caching plugin, server-side cache, or CDN cache) and then check your site's source code. The Site Kit generator meta tag should no longer be present.
What If the Code Doesn't Work?
If you've added the code and the tag remains, there are a few common things to check:
- Caching: Ensure you have thoroughly cleared all levels of caching on your site and server.
- Child Theme: Confirm the code is placed in your active child theme's
functions.phpfile. If you are not using a child theme, consider creating one or using a dedicated 'Code Snippets' plugin to manage custom functions. - Conflicting Plugins: Temporarily deactivate other plugins to test if a conflict is preventing the filter from working.
This simple solution allows you to control the output of the Site Kit plugin and customize your site's code to your preference.
Related Support Threads Support
-
verification code showing on websitehttps://wordpress.org/support/topic/verification-code-showing-on-website/
-
META Generatorhttps://wordpress.org/support/topic/meta-generator-3/
-
reCaptcha translationhttps://wordpress.org/support/topic/recaptcha-translation/
-
Duplicate Meta Descriptionhttps://wordpress.org/support/topic/duplicate-meta-description-13/
-
Google Parameters being added to one URL on our websitehttps://wordpress.org/support/topic/google-parameters-being-added-to-one-url-on-our-website/
-
Strange URL errorhttps://wordpress.org/support/topic/strange-url-error/
-
Meta Description Way Too Longhttps://wordpress.org/support/topic/meta-description-way-too-long/
-
How to disable Google Fonts?https://wordpress.org/support/topic/how-to-disable-google-fonts-8/
-
How to remove _gl and _ga_ from external URLshttps://wordpress.org/support/topic/how-to-remove-_gl-and-_ga_-from-external-urls/
-
Floating Search Button when using Site Kithttps://wordpress.org/support/topic/floating-search-button-when-using-site-kit/
-
A search icon appears on the right! and cannot be deletedhttps://wordpress.org/support/topic/a-search-icon-appears-on-the-right-and-cannot-be-deleted/
-
Magnifier glass floating buttonhttps://wordpress.org/support/topic/magnifier-glass-floating-button/
-
W3C validator error for ‘google_gtagjs-js-after’https://wordpress.org/support/topic/w3c-validator-error-for-google_gtagjs-js-after/
-
GA ID tag visible on front end on all pageshttps://wordpress.org/support/topic/ga-id-tag-visible-on-front-end-on-all-pages/
-
disable sitekit for some pageshttps://wordpress.org/support/topic/disable-sitekit-for-some-pages/
-
Completely Remove Plugin Remnants After Removalhttps://wordpress.org/support/topic/completely-remove-plugin-remnants-after-removal/
-
strange tag in my sitehttps://wordpress.org/support/topic/strange-tag-in-my-site/
-
Search Bubble / Button when Site Kit is activehttps://wordpress.org/support/topic/search-bubble-button-when-site-kit-is-active/
-
Multiple Analytics and Search Console codehttps://wordpress.org/support/topic/multiple-analytics-and-search-console-code/
-
How to delete canonical generated from Site Kit by Google 1.116.0https://wordpress.org/support/topic/how-to-delete-canonical-generated-from-site-kit-by-google-1-116-0/
-
Remove Google Tag snippet added by Site Kithttps://wordpress.org/support/topic/remove-google-tag-snippet-added-by-site-kit/
-
After deletion google ads script remainhttps://wordpress.org/support/topic/after-deletion-google-ads-script-remain/
-
Can removing site kit remove a sites header and footer?https://wordpress.org/support/topic/can-removing-site-kit-remove-a-sites-header-and-footer/
-
Rogue coding via plugin?https://wordpress.org/support/topic/rogue-coding-via-plugin/
-
Gibberish at end of URLshttps://wordpress.org/support/topic/gibberish-at-end-of-urls/
-
Stop Site Kit generating a meta descriptionhttps://wordpress.org/support/topic/stop-site-kit-generating-a-meta-description/
-
Filter not workinghttps://wordpress.org/support/topic/filter-not-working-79/
-
Cannot disable generated analytics snippethttps://wordpress.org/support/topic/cannot-disable-generated-analytics-snippet/
-
Empty Space After Footerhttps://wordpress.org/support/topic/empty-space-after-footer-2/