How to add the google analytics with Zen plugin in the Confluence page header

Confluence , Zen plugin and Google Analytics

How to add the google analytics plugin in the Confluence page header,I tried :

Browse > Confluence Admin > 'Look and Feel' - Custom HTML > Edit

Through this page, insert your javascript where you want. In this case, at 'end of the HEAD'.

Since am using Zen plugin, in the end result web page the the added script is somehow removed, i believe using custom plugin overrides the default settings (so my goggle anlytics script is not present, even i have checked that thru view source option).

For Space, where Zen plugin is not used, it works perfectly fine for me.

Could you please help me out with a step so that i can add the script in the header of all pages my my portal..

8 answers

1 accepted

This widget could not be displayed.

Hi,

We have Zen and Confluence on developers.atlassian.com. Our GA script goes At the end of the BODY --- have you tried that?

Mary

This widget could not be displayed.

"You are correct. Under Browse > Confluence Admin > 'Look and Feel' - Custom HTML > Edit, we place the GA at the end of the page."

Have you tried this with Zen plugin , did that worked.

When i tried to put in the End of Header, the script is missing when the page is rendered:(

Any idea

If it works in Confluence base theme but not when your Zen theme is enabled, the problem could be in Zen. Have you sent a note to their support team or checked their forums?

This widget could not be displayed.

Hi R K,

Zen works with GA as described here: http://www.stepstonetech.com/display/help/Adding+Google+Analytics

As Mary indicated, you simply need to move that GA code to the "At the end of the body" section.

This widget could not be displayed.

Also may i know is there any option to get the pages a particular user has visited with user name

Rgds,

RK

Hi,

You can inspect any of our pages to see the code we include.

Cheers,

M

This widget could not be displayed.

Hi,

You mean to say that in

Browse > Confluence Admin > 'Look and Feel' - Custom HTML > Edit

apply the GA script in the End of the body option.

Please correct me if understanding is wrong??

Rgds,

RK

You are correct. Under Browse > Confluence Admin > 'Look and Feel' - Custom HTML > Edit, we place the GA at the end of the body.

This widget could not be displayed.

Sorry @r k

Only just saw this -

Seems like you are running now? ! If you have any other questions, let us know (info@appfusions.com) -

THANKS to Mary Anthony for stepping in on help with this one! Thank you thank you!

Best,

Ellen

This widget could not be displayed.

Thanks a lot :)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

171 views 18 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you