Hey,
Is it possible to add custom HTML to the HEAD of a mobile page? Seems like mobile pages have a completely different html.
More specifically, i'm trying to get my google analytics JS snippet to work on mobile as well.
Hello there Benjamin!
Could you provide us with a little more information on this situation:
- Is the script needed in the Mobile App for Confluence Server?
- Is the script needed in the Moible website view of Confluence Server?
- Could you provide us with the JS you are trying to use so we could test it?
Also, be sure that no sensitive information is provided with the script before sending it our way!
Hi,
The script is needed in the mobile view.
It's the standard google analytics / tag manager script:
<script async src="https://www.googletagmanager.com/gtag/js?id=<propertyID>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<propertyID>');
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.