Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

custom html for mobile

Benjamin Eshet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2019

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.

1 answer

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 15, 2019

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!

Benjamin Eshet
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2019

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> 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events