Forums

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

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

r k April 24, 2013

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

0 votes
Answer accepted
Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2013
2 votes
m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

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

1 vote
Darryl Duke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

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.

1 vote
r k April 24, 2013

"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

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

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?

0 votes
r k May 4, 2013

Thanks a lot :)

0 votes
Ellen Feaheny [AppFusions]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2013

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

0 votes
r k April 24, 2013

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

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

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

0 votes
r k April 24, 2013

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

Rgds,

RK

m
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 24, 2013

Hi,

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

Cheers,

M

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events