Skip to main content
Skip table of contents

Integration with Refined for Confluence Cloud

An overview video on how to configure Google Analytics in Confluence with Refined for Confluence Cloud is given below:

https://www.youtube.com/watch?v=fMcBiUgRaRo&playlist=fMcBiUgRaRo

Following that, view the video below on how to in changes to make in Google Analytics.


To enable Google Analytics tracking in Refined for Confluence Cloud, perform one of the following:

Enable "Embedded page"

This is the simplest way to integrate Google Analytics in Confluence with Refined for Confluence Cloud.

In Refined Admin | Site | Audience Features, enable Embedded page.

refined-admin.png

This option may be disabled if you have Refined on a custom domain, or allow anonymous access.

If so, move on to the next step “Activate Custom HTML in Refined and add some code“

All pages will automatically be tracked with Google Analytics in Confluence without you having to separately configure Google Analytics inside the Refined admin interface.

The data will be displayed within the Google Analytics in Confluence reports and you’ll even be able to filter reports for Refined for Confluence only:

Screenshot 2024-02-14 at 15.22.08.png

Activate Custom HTML in Refined and add some code

If you do not wish to enable the Embedded page feature in Refined, then a little more work is required.

In Confluence

From the Apps menu, select Google Analytics in Confluence:

Screenshot 2024-01-31 at 12.27.43.png

Then select Configure from the “•••” (Tools) menu:

Screenshot 2024-01-31 at 12.29.01.png

Scroll to the bottom of the screen and copy the HTML script tag that’s highlighted below:

Screenshot 2024-01-31 at 12.33.10.png

In Refined for Confluence

Browse to Refined Admin | Site | Configuration | Advanced Settings, and enable Activate Custom HTML

Screenshot 2024-01-25 at 09.11.54.png

Then paste the HTML below into At the end of BODY:

CODE
<script
  id="dsapps-gaic-js"
  data-measurement-id="G-XXXXXXX"
  src="https://www.gaic.app/js/refined/analytics.js"></script>

Where G-XXXXXXX is you Google Analytics measurement ID.

Note: The exact code required will be displayed on the Google Analytics in Confluence Configure screen and should be copied from there.

Screenshot 2024-01-25 at 09.19.05.png

Then press Save.

In Google Analytics

You should turn off ”Page changes based on browser history events” so that page views are not counted twice.

Browse to Enhanced measurement in the Google Analytics Admin interface under Property settings | Data collection & modification | Web stream details | Events.

Uncheck ”Page changes based on browser history events” and press Save.

https://www.youtube.com/watch?v=Odcpel5KOPY
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.