A tag for the selected property already exists
An existing tag was found on the page
An existing Google Tag Manager property was found on your site with the ID UA-***
A tag GTM-*** for the selected container already exists on the site
Removing existing code
Removing Site Kit-placed code

When setting up Site Kit and additional services, if Site Kit detects existing code for the service (e.g. Analytics, Google Tag Manager, and AdSense) that you are connecting, it will allow you to choose if you wish to have Site Kit place the necessary code instead. If Site Kit does not detect any existing code, it will place the necessary code for you.

If you choose not to have Site Kit place code for you, you can still use Site Kit to view Dashboard metrics. Site Kit will display data in the Dashboard from the associated Google account/property/tag(s) that you selected during service setup.

NOTE: Allowing Site Kit to place code when it has already detected existing code means that your site will have the code placed twice. This could result in data being double tracked, so we recommend either removing existing code and then turning on Site Kit code placement in Site Kit > Settings or turning off the toggle to allow Site Kit to place code during setup.

If a tag for the selected property already exists

This message indicates that Site Kit has detected that the GA4 or UA tag that you are trying to add via Site Kit has already been added to your site via another method. 

When this occurs, Site Kit will automatically set the Place [Universal Analytics or GA4] code toggle to off to avoid duplication. If you wish to remove the tag as inserted elsewhere, you can do so and later ask Site Kit to insert the tag instead by going to Site Kit > Settings > Connected Services > Analytics > Edit > Place [Universal Analytics or GA4] code.

An existing tag was found on the page

This message indicates that Site Kit has found a GA4 or UA tag on your site, but it is for a different property than the one that you have selected for Site Kit.

If you choose not to remove the existing tag and allow Site Kit to insert a tag for the other property that you selected, data will be tracked to both properties.

If you prefer to track data only for the property that you selected in Site Kit, you will need to find and remove the existing tag.

An existing Google Tag Manager property was found on your site with the ID UA-***

This message indicates that Site Kit found a Universal Analytics property inside of a Google Tag Manager container on your site. Because the tag is already being placed via the Google Tag Manager container, Site Kit will not place the tag separately and the Place Universal Analytics code will be set to off and not toggleable.

NOTE: At this time, Site Kit does not automatically detect GA4 tags within Google Tag Manager containers. If you have placed a GA4 property inside of a Google Tag Manager container, we strongly recommend that, in order to avoid duplicated data, you set the Place Google Analytics 4 code option to off.

A tag GTM-*** for the selected container already exists on the site

This message indicates that Site Kit has detected that the GTM container that you are trying to add via Site Kit has already been added to your site via another method. 

When this occurs, Site Kit will automatically set the Let Site Kit place code on your site toggle to off to avoid duplication. If you wish to remove the container as inserted elsewhere, you can do so and later ask Site Kit to insert the tag instead by going to Site Kit > Settings > Connected Services > Google Tag Manager > Edit > Let Site Kit place code on your site.

An existing tag GTM-*** was found on the page

This message indicates that an existing Google Tag Manager code was found on your site, but it is for a different container than the one that you have selected for Site Kit.

If you choose not to remove the existing code and allow Site Kit to insert code for the other container that you selected, data will be tracked to both containers.

If you prefer to track data only for the container that you selected in Site Kit, you will need to find and remove the existing container.

Removing existing code

If Site Kit finds existing code for one or more services, you may want to remove that code and instead let Site Kit place the appropriate code for you. Code for Google services, such as Analytics tags, can be placed in a variety of ways. To find and remove code, please check:

  • Your theme configurations. Some themes include dedicated settings in the WordPress admin that allow you to add Analytics scripts. You can also check your theme’s customizer settings, which can typically be accessed via Appearance > Customization from your WordPress administrator dashboard. 
  • Google Tag Manager, as Google Analytics can be added as tags within GTM containers
  • Your theme templates. These include your `header.php` and `footer.php` files, usually contained within your theme’s root directory. Be careful when checking these files, as changes can have major effects on your site. If you feel unsure about doing this, please check with your technical contact. 
  • Any plugins that allow you to insert header/footer scripts (e.g. Insert Headers and Footers) and/or allow you to add Analytics scripts (e.g. Monster Insights)
  • Any other third-party plugins with Google Analytics integration

Once code is removed, you can go to Site Kit > Settings > Connected Services and click Edit for the service that you wish to have Site Kit place code for, then set the toggle for placing code to on.

Removing Site Kit-placed code

Site Kit-placed code can be switched off if desired. Choosing to turn off code placement means that Site Kit will not place code for the selected Google service.

When you turn off Site Kit-placed code for a service, it is still possible to use Site Kit to view related Dashboard metrics if the necessary code for that service has been placed by other means, such as manually or via another plugin. If you want to view associated data for these services in Site Kit, you can choose to connect to the service using the associated Google account, but not allow Site Kit to place code for them.

You can choose to switch these options back on in future and Site Kit will once again place the relevant code. Code placed by Site Kit will be removed if the Site Kit plugin is disabled or removed from your site.

To turn off code placement for a Site Kit service:

  1. Navigate to Site Kit > Settings > Connected Services and edit the service for which you wish to turn off code placement.
  2. Switch off the code placement option. See screenshots of options for each service below.

Analytics

AdSense

Optimize

Tag Manager