-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usage ? #5
Comments
Your code is put into: |
Hi Nick, I'm sorry but I don’t understand how this Nextcloud-app works. |
I'm curious if there is a working example of using Google Analytics as well. The standard snippet given from Google won't work. I think I got close with a work around, but I am now having issues with being limited to only put one domain in the CSP policy whitelist. EDIT: I was able to get it working without using Google Tag Manager. You can try the following code at your own risk, just replace (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXX-X', 'auto');
ga('send', 'pageview');
ga('set', 'anonymizeIp', true); |
So it's work with this for analytics but I don't find script to have a working version with google tag manager |
im trying to include analytics with <script> tags but no luck,
what is the usage ?
The text was updated successfully, but these errors were encountered: