• Resolved tom coady

    (@tomcoady)


    Under Site Kit > Settings > Tag Manager I see

    An existing tag GTM-WPK4ZC7 was found on the page.

    If you prefer to collect data using that existing tag, please select the corresponding account and property above.

    After removing and reinstalling the plugin the drop down options have disappeared; on the https://analytics.google.com/analytics/web settings page there is a redundant property created by monster for the site with a www prefix which I don’t have.

    When I search the site source code I can only find this old tag in the staging subdirectory

    grep -r WPK4ZC7 *
    stage/wp-content/themes/storefront-child/header.php:})(window,document,'script','dataLayer','GTM-WPK4ZC7');
    stage/wp-content/themes/storefront-child/header.php:

    the new tag is where is should be:

    grep -r 9LKKQE6B54 *
    Binary file wp-content/themes/storefront-child/.header.php.swp matches
    wp-content/themes/storefront-child/header.php:})(window,document,'script','dataLayer','G-9LKKQE6B54');
    wp-content/themes/storefront-child/header.php:

    How can I removed the old tag so the new valid tags is seen by GA?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @tomcoady. Based on your description it sounds like you may have a Tag Manager snippet (GTM-WPK4ZC7) placed manually or via another plugin or your theme. So I can help you determine the source of this snippet, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.  
    2. When you mention “After removing and reinstalling the plugin the drop down options have disappeared” can you share what dropdown option you are referring to? Is this within another plugin or Site Kit? Feel free to share a screenshot or recording of your experience.

    Note also that you can remove any Google Analytics tag within your connected Tag Manager container. That way there will be no Analytics tracking on your site, and you can choose to connect your site with your preferred property using only Site Kit.

    Let me know if you have any questions with the above.

    Thread Starter tom coady

    (@tomcoady)

    When I look at the tag manager settings it offered another site, so I selected new, then re-fetch but this reverted to the no options account drop-down: https://imgur.com/a/JabYvXV

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing your Site Health information @tomcoady. I can see from reviewing your site that you’re using Site Kit to placed your analytics snippet and this is tracking visits as expected.

    I also did notice your Tag Manager snippet which was not placed via Site Kit. This may possibly be placed via your active GTM4WP plugin, or inserted to your theme files.

    From reviewing your site manually and using the tagassistant.google.com service I don’t see any issue with your non-Site Kit inserted Tag Manager snippet and your Site Kit inserted Analytics snippets.

    Let me know if you have any further questions on this. If you do prefer to use Site Kit to place your Tag Manager snippet I would firstly check your GTMWP plugin and your theme for possible additions.

    Plugin Support James Osborne

    (@jamesosborne)

    When I look at the tag manager settings it offered another site, so I selected new, then re-fetch but this reverted to the no options account drop-down: https://imgur.com/a/JabYvXV

    From reviewing your Site Health information I don’t see Tag Manager connected within Site Kit. It’s not required to connect Tag Manager within Site Kit if you prefer to keep your non-Site Kit inserted Tag Manager container.

    If you do wish to use Site Kit to insert your Tag Manager container, and you don’t see your preferred container ID, let me know and I’d be happy to troubleshoot this with you. One cause may be that the Google account you used to set up Site Kit does not have access to the Tag Manager account that’s currently connected.

    Do let me know anyway if you prefer to use Site Kit to place your Tag Manager snippet, if you’re happy to continue to use the current connected container (which is not placed by Site Kit), or if you wish to determine the source of your non-Site Kit placed Tag Manager snippet.

    Thread Starter tom coady

    (@tomcoady)

    OK many thanks for your prompt and insightful assistance, I’ve managed to get analytics working perfectly now and I have disabled the GTM4WP plugin which was useful but now made redundant by Site Kit.

    Plugin Support James Osborne

    (@jamesosborne)

    Glad to hear all is working and configured as you wish @tomcoady. If you have any further Site Kit related queries be sure to reach out.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cannot remove deprecated tag’ is closed to new replies.