Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Adding Google Analytics to an OnDemand Confluence Instance

Tim O'Brien March 9, 2012

I have an open source book that is being published on my OnDemand instance, and I'm trying to figure out where I can configure Google Analytics. Does anyone know if this is even possible yet?

10 answers

1 accepted

3 votes
Answer accepted
Andrew Frayling
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.
March 9, 2012

Hi Tim,

Unfortunately you cannot add Google Analytics to an OnDemand instance of Confluence because the configuration options that would allow you to embed the Google Analytics tracking code JS snippet are not available in OnDemand.

For the download version you would log in as an Confluence Administrator and select Browse -> Confluence Admin -> Look and Feel -> Custom HTML and edit the "At end of HEAD" section - similar to the instructions at http://confluence.atlassian.com/display/DOC/Adding+HTML+to+Allow+for+the+Extra+Height+of+a+Custom+Footer , but adding the Google Analytics code instead of the CSS in the linked example.

These configuration options are locked down in the OnDemand version of Confluence because Atlassian customize Confluence in order for it to work with OnDemand and allowing end users to edit layouts or include custom HTML/Javascript could break your OnDemand instance.

Sorry it's not better news.

Andrew.

Andrew Frayling
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.
March 9, 2012

Was going to suggest raising a ticket to ask if it was possible to put this feature on the roadmap for OnDemand, but it looks like it's already been raised and closed as "Won't Fix" - https://studio.atlassian.com/browse/JST-5674

Tim O'Brien March 9, 2012

Thanks for the response Andrew. I wish I had known about this limitation ahead of time, but now that I'm here it's something I need to find a way to work around. What would be great is if Atlassian supported custom domains with a CNAME records. This way I could get around the Javascript limitation by just routing requests through Cloudflare.

I'm expecting Atlassian to eventually open up this platform to customization for HTML and Javascript once you figure out a good way to sandbox that sort of stuff. Any idea of the timeframe?

Andrew Frayling
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.
March 9, 2012

Just to clarify, I don't work for Atlassian so wouldn't know about about timescales for if or when Atlassian may relax some of the restrictions with OnDemand. It may be worth you asking the timescales question directly, either by raising a ticket via support@atlassian.com or posting a separate question here on Atlassian Answers.

Andrew.

7 votes
Alexander Luetjen January 25, 2014

+1 for Google Analytics in On Demand.

Still no joy getting this little piece of JavaScript injected? It's pretty annoying to hit those little road blocks in On Demand every so often.

5 votes
Deleted user June 14, 2012

You don't need to allow for custom HTML/JavaScript. Just allow the insertion of the Google Analytics site ID by the customer, and do the rest automatically (loading the Google Analytics JS with that site ID).

This is standard in tons of SaaS systems: it's a very small feature to add.

Please consider adding this feature.

2 votes
William Crighton _CCC_
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.
February 22, 2013

To make things (slightly) more annoying is how in the OnDemand documentation located here:

https://confluence.atlassian.com/display/AOD/Developing+a+Knowledge+Base+on+Confluence+Wiki

there are instructions for how to enable Google Analytics tracking of your OnDemand Confluence instance. It appears these are just a straight copy of the instructions for the downloaded Confluence. No joy.

-wc

2 votes
William Crighton _CCC_
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.
February 22, 2013

To make things (slightly) more annoying is how in the OnDemand documentation located here:

https://confluence.atlassian.com/display/AOD/Developing+a+Knowledge+Base+on+Confluence+Wiki

there are instructions for how to enable Google Analytics tracking of your OnDemand Confluence instance. It appears these are just a straight copy of the instructions for the downloaded Confluence. No joy.

-wc

1 vote
Tim
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.
January 23, 2017

It's a few years later but we've created an analytics add-on for Confluence Cloud that makes it easy to get an overview of activity and zoom in on the details like who has viewed a particular page.

You can find more information here: Analytics for Confluence Cloud

The add-on also includes an optional integration with Google Analytics, however the data sent to GA will only include what Confluence gives to us (i.e. it tracks page/blog views but doesn't specify information like browser, IP/location, time on page and referrer)

0 votes
Tim
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.
January 23, 2017

@tariq.ahmed: We've built an add-on to provide some usage analytics in Confluence Cloud. See my answer below for details.

0 votes
Tariq Ahmed March 11, 2016

Or at least provide an equivalent usage analytics solution.

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.
September 14, 2012

Hi Tim -

As for the timeframe - please see this blog, where we talked about Plugins3 that is expected to be "officially" announced at AtlasCamp next week. (Get a ticket! :) )

As for rollouts beyond, well there is dev refactoring to support OnDemand stuff, and a slew of other things support requirements - but AppFusions is following closely. (This is our Google Analytics plugin.)

Realistically, I would expect Q1 best for everything to be sorted, if all goes well. There's alot to these integrations, especially with OnDemand, to not negatively rock the Atlassian OnDeman platform.

Alternatively - we can turnkey migrate you to a Hosted service, which is like the same 24x7 monitored Atlassian-skilled support you are used to, but also you can have any plugin on the marketplace.

If interested in a quote for this - or to learn more - contact me and happy to walk you through all the options.

Best,

Ellen
ellen@appfusions.com

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events