Comments (6)
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.
@pzupan after chatting internally, we're good with swapping the GTM script for the above GA tracking code. Thanks!
from bonsai.
@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.
@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.
@mbiang thanks for checking in! I need to clarify one thing internally, and will keep you/this ticket updated.
from bonsai.
@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)
- Not-a-collaborator error when adding new asset to Bonsai HOT 2
- Deprecation not working HOT 3
- Add support for requesting builds for a specific tag/release
- DISCUSS: unregistering/removing/deleting assets from Bonsai HOT 1
- Expose programming language from Github repo in Bonsai
- Collaborator check when trying to add new assets doesn't pick up team roles HOT 6
- Only show asset error messages to admins and maintainers
- shasum verification error when compiling releases for prvate repo HOT 2
- Feature Request: On-prem bonsai storage options
- Upgrade Heroku Postgres Instance
- Bug: Unauthorized access to contributors url error prevents recompile of asset. HOT 1
- Production Bug: Review sendgrid integration.
- Feature Enhancement: provide logic to replace cached auth token if it fails with active user github auth token. HOT 3
- Feature Enhancement: Create a way for super-admins to destroy an asset record and recreate. HOT 1
- Bug: saving into S3 bucket no longer working in staging.
- Bug: Github api rate limiting due to using cached token auth
- Enhancement: Change webhook logic to look for completed workflow_job
- Bug: ExceptionController.action(:show) has InvalidAuthenticationToken errors
- Bug: recompiling private repo results in seemingly hung process if your oauth scopes are wrong HOT 1
- Owner Access for Plugins Published From an Organizational Repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bonsai.