Giter Club home page Giter Club logo

Comments (6)

pzupan avatar pzupan commented on August 19, 2024

FYI: We are currently running GTM on Bonsai with the following script:

<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<%= ENV['GOOGLE_TAG_MANAGER_ID'] %>');
</script>

Should we replace the existing script with the above?

from bonsai.

bananabele avatar bananabele commented on August 19, 2024

@pzupan after chatting internally, we're good with swapping the GTM script for the above GA tracking code. Thanks!

from bonsai.

mbiang avatar mbiang commented on August 19, 2024

@bananabele - we can swap this out, however our recommendation would be to leave the Google Tag Manager code on the site, and then to implement Google Analytics via Google Tag Manager. The benefit of Google Tag Manager is that we can use just one tracking code on the site, and then you can use the Google Tag Manager UI to add any third party tracking scripts that we need, including Google Analytics.

I believe @annaplotkin helped setup the Google Tag Manager account and should be able to get you access. Here's some additional info on deploying Google Analytics via tag manager: https://support.google.com/tagmanager/answer/6107124?hl=en

Alternately, if you do want to just install the analytics code natively on the site, and move away from the Tag Manager approach, just confirm, and I'll make the change.

from bonsai.

mbiang avatar mbiang commented on August 19, 2024

@bananabele - just following up here as we haven't heard back. Do you still want us to move forward with the Google Analytics?

from bonsai.

bananabele avatar bananabele commented on August 19, 2024

@mbiang thanks for checking in! I need to clarify one thing internally, and will keep you/this ticket updated.

from bonsai.

bananabele avatar bananabele commented on August 19, 2024

@mbiang let's add the GA tracking without removing the GTM tracking, if possible. let me know if it's not, and thanks!

from bonsai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.