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

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

"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?

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.

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

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.

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

Thanks a lot :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

463 views 83 11
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