GTM and GA tracking on multiple website platforms












0















I have an e-commerce website built in AngularJS (1.x). I've added GTM and GA support using Angulartics. In order to use Angulartics we have a JSON file which has to be imported into the GTM account.
I have a customer who wishes to use their existing GTM tracking code (the one on their main website). The visitor would click on a link on their main website which would take them to the webshop (hosted on a different domain). Now the problem is that their existing site was built using .Net
They say they cannot import the Angulartics settings into GTM because that would break the tracking on the .Net site.
I'm no GTM expert so I'm not sure what to do...
Does anyone have experience with such a setup? Is there a way to work around this?



Thank you in advance!










share|improve this question



























    0















    I have an e-commerce website built in AngularJS (1.x). I've added GTM and GA support using Angulartics. In order to use Angulartics we have a JSON file which has to be imported into the GTM account.
    I have a customer who wishes to use their existing GTM tracking code (the one on their main website). The visitor would click on a link on their main website which would take them to the webshop (hosted on a different domain). Now the problem is that their existing site was built using .Net
    They say they cannot import the Angulartics settings into GTM because that would break the tracking on the .Net site.
    I'm no GTM expert so I'm not sure what to do...
    Does anyone have experience with such a setup? Is there a way to work around this?



    Thank you in advance!










    share|improve this question

























      0












      0








      0








      I have an e-commerce website built in AngularJS (1.x). I've added GTM and GA support using Angulartics. In order to use Angulartics we have a JSON file which has to be imported into the GTM account.
      I have a customer who wishes to use their existing GTM tracking code (the one on their main website). The visitor would click on a link on their main website which would take them to the webshop (hosted on a different domain). Now the problem is that their existing site was built using .Net
      They say they cannot import the Angulartics settings into GTM because that would break the tracking on the .Net site.
      I'm no GTM expert so I'm not sure what to do...
      Does anyone have experience with such a setup? Is there a way to work around this?



      Thank you in advance!










      share|improve this question














      I have an e-commerce website built in AngularJS (1.x). I've added GTM and GA support using Angulartics. In order to use Angulartics we have a JSON file which has to be imported into the GTM account.
      I have a customer who wishes to use their existing GTM tracking code (the one on their main website). The visitor would click on a link on their main website which would take them to the webshop (hosted on a different domain). Now the problem is that their existing site was built using .Net
      They say they cannot import the Angulartics settings into GTM because that would break the tracking on the .Net site.
      I'm no GTM expert so I'm not sure what to do...
      Does anyone have experience with such a setup? Is there a way to work around this?



      Thank you in advance!







      .net angularjs google-tag-manager tracking angulartics






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 '18 at 11:39









      gtsongigtsongi

      427




      427
























          1 Answer
          1






          active

          oldest

          votes


















          0














          When you start the JSON import, you can set the file to merge with the existing tags, if you are afraid it would override existing tags/triggers/vars. Personally, I prefer straight imports, but being careful I don't mess anything up (GTM tells you which settings you might override when you import).



          What is important in the end is to modify Angulartics triggers to match the other domain only. That way, you won't influence their existing .NET setup and you will have your tracking on the e-comm site only. To add an additional layer of checks, import your Angular GTM stuff into a new WorkSpace (GTM will ask you during the import about it), go into a Preview mode (GTM's debug tool) and test the main site if it gets screwed up.






          share|improve this answer
























          • Thank you for your suggestion Igor! I'll give it a try.

            – gtsongi
            Nov 19 '18 at 18:50











          • If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

            – gtsongi
            Nov 19 '18 at 19:05











          • you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

            – IgorKol
            Nov 19 '18 at 21:39











          • Works perfectly. Thank you!

            – gtsongi
            Nov 28 '18 at 19:41











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373857%2fgtm-and-ga-tracking-on-multiple-website-platforms%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









          0














          When you start the JSON import, you can set the file to merge with the existing tags, if you are afraid it would override existing tags/triggers/vars. Personally, I prefer straight imports, but being careful I don't mess anything up (GTM tells you which settings you might override when you import).



          What is important in the end is to modify Angulartics triggers to match the other domain only. That way, you won't influence their existing .NET setup and you will have your tracking on the e-comm site only. To add an additional layer of checks, import your Angular GTM stuff into a new WorkSpace (GTM will ask you during the import about it), go into a Preview mode (GTM's debug tool) and test the main site if it gets screwed up.






          share|improve this answer
























          • Thank you for your suggestion Igor! I'll give it a try.

            – gtsongi
            Nov 19 '18 at 18:50











          • If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

            – gtsongi
            Nov 19 '18 at 19:05











          • you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

            – IgorKol
            Nov 19 '18 at 21:39











          • Works perfectly. Thank you!

            – gtsongi
            Nov 28 '18 at 19:41
















          0














          When you start the JSON import, you can set the file to merge with the existing tags, if you are afraid it would override existing tags/triggers/vars. Personally, I prefer straight imports, but being careful I don't mess anything up (GTM tells you which settings you might override when you import).



          What is important in the end is to modify Angulartics triggers to match the other domain only. That way, you won't influence their existing .NET setup and you will have your tracking on the e-comm site only. To add an additional layer of checks, import your Angular GTM stuff into a new WorkSpace (GTM will ask you during the import about it), go into a Preview mode (GTM's debug tool) and test the main site if it gets screwed up.






          share|improve this answer
























          • Thank you for your suggestion Igor! I'll give it a try.

            – gtsongi
            Nov 19 '18 at 18:50











          • If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

            – gtsongi
            Nov 19 '18 at 19:05











          • you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

            – IgorKol
            Nov 19 '18 at 21:39











          • Works perfectly. Thank you!

            – gtsongi
            Nov 28 '18 at 19:41














          0












          0








          0







          When you start the JSON import, you can set the file to merge with the existing tags, if you are afraid it would override existing tags/triggers/vars. Personally, I prefer straight imports, but being careful I don't mess anything up (GTM tells you which settings you might override when you import).



          What is important in the end is to modify Angulartics triggers to match the other domain only. That way, you won't influence their existing .NET setup and you will have your tracking on the e-comm site only. To add an additional layer of checks, import your Angular GTM stuff into a new WorkSpace (GTM will ask you during the import about it), go into a Preview mode (GTM's debug tool) and test the main site if it gets screwed up.






          share|improve this answer













          When you start the JSON import, you can set the file to merge with the existing tags, if you are afraid it would override existing tags/triggers/vars. Personally, I prefer straight imports, but being careful I don't mess anything up (GTM tells you which settings you might override when you import).



          What is important in the end is to modify Angulartics triggers to match the other domain only. That way, you won't influence their existing .NET setup and you will have your tracking on the e-comm site only. To add an additional layer of checks, import your Angular GTM stuff into a new WorkSpace (GTM will ask you during the import about it), go into a Preview mode (GTM's debug tool) and test the main site if it gets screwed up.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 19 '18 at 15:17









          IgorKolIgorKol

          856




          856













          • Thank you for your suggestion Igor! I'll give it a try.

            – gtsongi
            Nov 19 '18 at 18:50











          • If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

            – gtsongi
            Nov 19 '18 at 19:05











          • you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

            – IgorKol
            Nov 19 '18 at 21:39











          • Works perfectly. Thank you!

            – gtsongi
            Nov 28 '18 at 19:41



















          • Thank you for your suggestion Igor! I'll give it a try.

            – gtsongi
            Nov 19 '18 at 18:50











          • If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

            – gtsongi
            Nov 19 '18 at 19:05











          • you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

            – IgorKol
            Nov 19 '18 at 21:39











          • Works perfectly. Thank you!

            – gtsongi
            Nov 28 '18 at 19:41

















          Thank you for your suggestion Igor! I'll give it a try.

          – gtsongi
          Nov 19 '18 at 18:50





          Thank you for your suggestion Igor! I'll give it a try.

          – gtsongi
          Nov 19 '18 at 18:50













          If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

          – gtsongi
          Nov 19 '18 at 19:05





          If this works, then can I leave the Angular GTM stuff in a separate WorkSpace? Or do I have to merge them at some point?

          – gtsongi
          Nov 19 '18 at 19:05













          you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

          – IgorKol
          Nov 19 '18 at 21:39





          you will have to merge them. this will happen at the point when you publish the workspace you made. eventually, only the "default" workspace remains.

          – IgorKol
          Nov 19 '18 at 21:39













          Works perfectly. Thank you!

          – gtsongi
          Nov 28 '18 at 19:41





          Works perfectly. Thank you!

          – gtsongi
          Nov 28 '18 at 19:41




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f53373857%2fgtm-and-ga-tracking-on-multiple-website-platforms%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







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()