Google tag assistant reports: “Same web property ID is tracked twice”












2















I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "Same web property ID is tracked twice." As well as i can see "2 Pageview Requests"



How could i resolve this? Is that because I've added both Google Tag Manager and Google Analytics? I need both Google Tag Manager and Google Analytics run together smoothly without these kind of issues.



enter image description here



enter image description here



Google Tag Manager and Google Analytics Script added below



<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-27898392-1"></script>
<script>
window.dataLayer = window.dataLayer || ;
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-27898392-1');
</script>

<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||).push(arguments)};ga.l=+new Date;
ga('create', 'UA-27898392-1', 'auto');
ga('set', 'userId', '123456');
//Custom-User-ID - index 1
ga('set', 'dimension1', '123456');
//Custom-User-Name - index 2
ga('set', 'dimension2', 'jerome');
//Custom-User-Email - index 3
ga('set', 'dimension3', 'haijerome@gmail.com');
//Custom-User-Customer-ID - index 4
ga('set', 'dimension4', '123456');
//Custom-User-Customer-Name - index 5
ga('set', 'dimension5', 'Test');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- End Google Analytics -->









share|improve this question









New contributor




Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    2















    I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "Same web property ID is tracked twice." As well as i can see "2 Pageview Requests"



    How could i resolve this? Is that because I've added both Google Tag Manager and Google Analytics? I need both Google Tag Manager and Google Analytics run together smoothly without these kind of issues.



    enter image description here



    enter image description here



    Google Tag Manager and Google Analytics Script added below



    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-27898392-1"></script>
    <script>
    window.dataLayer = window.dataLayer || ;
    function gtag() { dataLayer.push(arguments); }
    gtag('js', new Date());
    gtag('config', 'UA-27898392-1');
    </script>

    <!-- Google Analytics -->
    <script>
    window.ga=window.ga||function(){(ga.q=ga.q||).push(arguments)};ga.l=+new Date;
    ga('create', 'UA-27898392-1', 'auto');
    ga('set', 'userId', '123456');
    //Custom-User-ID - index 1
    ga('set', 'dimension1', '123456');
    //Custom-User-Name - index 2
    ga('set', 'dimension2', 'jerome');
    //Custom-User-Email - index 3
    ga('set', 'dimension3', 'haijerome@gmail.com');
    //Custom-User-Customer-ID - index 4
    ga('set', 'dimension4', '123456');
    //Custom-User-Customer-Name - index 5
    ga('set', 'dimension5', 'Test');
    ga('send', 'pageview');
    </script>
    <script async src='https://www.google-analytics.com/analytics.js'></script>
    <!-- End Google Analytics -->









    share|improve this question









    New contributor




    Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      2












      2








      2








      I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "Same web property ID is tracked twice." As well as i can see "2 Pageview Requests"



      How could i resolve this? Is that because I've added both Google Tag Manager and Google Analytics? I need both Google Tag Manager and Google Analytics run together smoothly without these kind of issues.



      enter image description here



      enter image description here



      Google Tag Manager and Google Analytics Script added below



      <!-- Global site tag (gtag.js) - Google Analytics -->
      <script async src="https://www.googletagmanager.com/gtag/js?id=UA-27898392-1"></script>
      <script>
      window.dataLayer = window.dataLayer || ;
      function gtag() { dataLayer.push(arguments); }
      gtag('js', new Date());
      gtag('config', 'UA-27898392-1');
      </script>

      <!-- Google Analytics -->
      <script>
      window.ga=window.ga||function(){(ga.q=ga.q||).push(arguments)};ga.l=+new Date;
      ga('create', 'UA-27898392-1', 'auto');
      ga('set', 'userId', '123456');
      //Custom-User-ID - index 1
      ga('set', 'dimension1', '123456');
      //Custom-User-Name - index 2
      ga('set', 'dimension2', 'jerome');
      //Custom-User-Email - index 3
      ga('set', 'dimension3', 'haijerome@gmail.com');
      //Custom-User-Customer-ID - index 4
      ga('set', 'dimension4', '123456');
      //Custom-User-Customer-Name - index 5
      ga('set', 'dimension5', 'Test');
      ga('send', 'pageview');
      </script>
      <script async src='https://www.google-analytics.com/analytics.js'></script>
      <!-- End Google Analytics -->









      share|improve this question









      New contributor




      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I've added the following Google Tag and Google Analytics code in my website. When i checked with Google Tag Assistant (Chrome Addon), I can find a yellow indicator against Google Analytics Tag which says to optimize "Same web property ID is tracked twice." As well as i can see "2 Pageview Requests"



      How could i resolve this? Is that because I've added both Google Tag Manager and Google Analytics? I need both Google Tag Manager and Google Analytics run together smoothly without these kind of issues.



      enter image description here



      enter image description here



      Google Tag Manager and Google Analytics Script added below



      <!-- Global site tag (gtag.js) - Google Analytics -->
      <script async src="https://www.googletagmanager.com/gtag/js?id=UA-27898392-1"></script>
      <script>
      window.dataLayer = window.dataLayer || ;
      function gtag() { dataLayer.push(arguments); }
      gtag('js', new Date());
      gtag('config', 'UA-27898392-1');
      </script>

      <!-- Google Analytics -->
      <script>
      window.ga=window.ga||function(){(ga.q=ga.q||).push(arguments)};ga.l=+new Date;
      ga('create', 'UA-27898392-1', 'auto');
      ga('set', 'userId', '123456');
      //Custom-User-ID - index 1
      ga('set', 'dimension1', '123456');
      //Custom-User-Name - index 2
      ga('set', 'dimension2', 'jerome');
      //Custom-User-Email - index 3
      ga('set', 'dimension3', 'haijerome@gmail.com');
      //Custom-User-Customer-ID - index 4
      ga('set', 'dimension4', '123456');
      //Custom-User-Customer-Name - index 5
      ga('set', 'dimension5', 'Test');
      ga('send', 'pageview');
      </script>
      <script async src='https://www.google-analytics.com/analytics.js'></script>
      <!-- End Google Analytics -->






      google-analytics google-tag-manager






      share|improve this question









      New contributor




      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 14 hours ago









      Stephen Ostermiller

      68k1393250




      68k1393250






      New contributor




      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 18 hours ago









      HaijeromeHaijerome

      1114




      1114




      New contributor




      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Haijerome is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it.






          share|improve this answer
























          • Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

            – Haijerome
            17 hours ago








          • 1





            By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

            – Filozof666
            16 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "45"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Haijerome is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebmasters.stackexchange.com%2fquestions%2f121076%2fgoogle-tag-assistant-reports-same-web-property-id-is-tracked-twice%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it.






          share|improve this answer
























          • Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

            – Haijerome
            17 hours ago








          • 1





            By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

            – Filozof666
            16 hours ago
















          2














          Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it.






          share|improve this answer
























          • Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

            – Haijerome
            17 hours ago








          • 1





            By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

            – Filozof666
            16 hours ago














          2












          2








          2







          Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it.






          share|improve this answer













          Yes, just delete Google Analytics code from site, you should implement all tags you need through Google Tag Manager, That will solve your problem. Also i see you have Google Ads, if it is not, consider moving it to Google Tag Manager too, it will be easier for you to reconfigure it when ever you need it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 17 hours ago









          Filozof666Filozof666

          1165




          1165













          • Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

            – Haijerome
            17 hours ago








          • 1





            By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

            – Filozof666
            16 hours ago



















          • Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

            – Haijerome
            17 hours ago








          • 1





            By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

            – Filozof666
            16 hours ago

















          Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

          – Haijerome
          17 hours ago







          Hi thanks a lot for your answer, BTW is that not possible to make Google Analytics script work alongside with Google Tag Manager. Secondly how could i implement all the tags through google tag manager ? Kindly pardon my ignorance with this.

          – Haijerome
          17 hours ago






          1




          1





          By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

          – Filozof666
          16 hours ago





          By that you are making a mess, Google Tag Manager is made for this, so you implement all your scripts through GTM. By doing that you have less JS code on your site, your site will work better and most important your tracking is well organised. Second, it depends on tags you want, but most of "important" tags are pre-Built in GTM where you can just add them and configure the way you need.

          – Filozof666
          16 hours ago










          Haijerome is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Haijerome is a new contributor. Be nice, and check out our Code of Conduct.













          Haijerome is a new contributor. Be nice, and check out our Code of Conduct.












          Haijerome is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Webmasters Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwebmasters.stackexchange.com%2fquestions%2f121076%2fgoogle-tag-assistant-reports-same-web-property-id-is-tracked-twice%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Callistus I

          Tabula Rosettana

          How to label and detect the document text images