<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Cannot remove deprecated tag

[ad_1]

Replies: 5

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 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?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer