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
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

206 views 0 5
Read article

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