{"id":13588689,"date":"2020-10-27T21:41:03","date_gmt":"2020-10-27T21:41:03","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/double-analytics-js-and-non-standard-implementation\/"},"modified":"2020-10-27T21:41:03","modified_gmt":"2020-10-27T21:41:03","slug":"double-analytics-js-and-non-standard-implementation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/double-analytics-js-and-non-standard-implementation\/","title":{"rendered":"double analytics.js and &#8220;non-standard implementation&#8221;"},"content":{"rendered":"<p>Hi, I&#8217;m having a problem where Tag Assistant reports a &#8220;non-standard implementation&#8221; and analytics.js appears twice within &lt;head&gt; when I inspect the DOM using Developer Tools.<\/p>\n<p>I&#8217;m running a test site with no plugins except Site Kit, and the TwentyTwenty stock WordPress theme, in order to rule out code problems and plugin problems.<\/p>\n<p>I&#8217;ve set up Site Kit so that GTM is the only connected service, apart from Search Console. I can&#8217;t seem to avoid the Search Console setup when I configure the plugin.<\/p>\n<p>In my test GTM account, I only have a few custom items:<\/p>\n<p>1. A Google Analytics variable.<br \/>\n2. A Google Optimize tag with no trigger.<br \/>\n3. A Google Analytics tag that uses the standard Page View trigger, with a dependency that tells it to fire Optimize first.<\/p>\n<p>I&#8217;m using test accounts for GTM, GA, and Optimize, in order to rule out issues with my production Google accounts.<\/p>\n<p>And despite this very stock, very limited test setup, I still see a double analytics.js script within the head, and Tag Assistant reports a &#8220;non-standard implementation&#8221;.<\/p>\n<p>If I run a test Optimize experiment, then on the experiment page, Tag Assistant reports that GA is recording double page views.<\/p>\n<p>Thank you for any help that you can provide!<\/p>\n","protected":false},"template":"","class_list":["post-13588689","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13588689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13588689\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13588689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}