Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    How to set up Google analytics IP anonymization

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    3
    274
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Phil
      Phil last edited by Phil

      Hi guys,

      due to GDPR reasons in Europe I have to setup Google Analytics with IP anonymization.
      I could get GA up and running here:

      b663ec4b-91c9-46ef-8a57-5747c3060b4b-image.png

      But how do I disable IP tracking? As far as I know I have to add some lines to existing code. But where do I find the source code for GA?

      Thanks a lot!
      Phil

      1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira last edited by

        Hey Phil, this feature will activate the regular Google Analytics / Google tag manager code

        For your use case you need more control, so I suggest you remove that config from your project settings then instead add your custom tracking code with this feature: https://changelog.appdrag.com/features/add-custom-html-code-on-your-entire-project

        1 Reply Last reply Reply Quote 1
        • Phil
          Phil last edited by

          Thanks Joseph for your help!

          For other user, that might be interested in this topic as well:
          I have included following script at the very top of the global header section of my project (see Josephs link) :

              <!-- IP anonymization with gtag.js - Google Analytics -->
              <script async src="https://www.googletagmanager.com/gtag/js?id=G-xxxxxx"></script>
              <script>
                  window.dataLayer = window.dataLayer || [];
                  function gtag() {
                      dataLayer.push(arguments);
                  }
                  gtag('js', new Date());
                  gtag('config', 'G-xxxxxx', { 'anonymize_ip': true });
              </script>
          

          Hope that works...

          1 Reply Last reply Reply Quote 2
          • First post
            Last post