We recommend that you have multiple users within Google Analytics who have administrator permissions on the Google Analytics property.
Create a shared user for Google Analytics with administrator access and document how to access that shared user account in a page within your Confluence system.
If your original Confluence administrator leaves the company, then you will still be able to access your Google Analytics property and data.
Step 1 – In Google Analytics
If you have already created a Universal Analytics property in Google Analytics, you can skip this step.
This will send basic data only to Google Analytics.
Make sure that you configure Google Analytics with Universal Analytics rather than Google Analytics 4 (GA4). Google Analytics 4 migration timeline
Step 2 – In Confluence Cloud
In Confluence Administration, browse to Google Analytics in Confluence and click on the “G Sign In” (Sign in with Google) button
If the G Sign In button is not present and instead you see only some “Authorizing…” text, then you may have third-party cookies disabled.
See https://dsapps.atlassian.net/wiki/spaces/analytics/pages/4773642249 for more details.
A new “Sign in with Google” window opens – enter your Google Analytics username (email address) and press the Next button
Then enter your password and press the Next button
A new screen appears displaying that “David Simpson App Integrations for Google Analytics” wants access to view your Google Analytics data. Press the Allow button.
The “Sign in with Google” window closes and your Google Analytics property data is displayed within Confluence.
Select the account, property and view that corresponds with your Confluence Cloud instance (if you only have one property, this will automatically be filled out), then press the Save button.
On successfully saving your configuration, a message is displayed
Setting up custom dimensions
Custom dimensions allow you to send contextual information about Confluence content and their parent space over to Google Analytics. Without correctly configuring custom dimensions, the Google Analytics reports with Confluence will not work correctly.
The configuration screen within the app displays each necessary custom dimension and whether it has been configured correctly.
Any incorrect custom dimension will be displayed in green (like 6 & 11 below):
When all custom dimensions are configured correctly, there will be green checkmarks all round:
If you want to make use of the Custom Reports in Google Analytics or any of the reporting functionality within the app, then continue with the configuration...
In Google Analytics
Create custom dimensions as specified in Custom Dimensions.
Select the Admin tab and navigate to the property to which you want to add custom dimensions.
In the PROPERTY column, click Custom Definitions, then click Custom Dimensions.
Click New Custom Dimension.
Add a Name.
This can be any string, but use something unique so it’s not confused with any other dimension or metric in your reports.
Select the Scope.
Choose to track at the Hit, Session, User, or Product level. Read more about scope and how custom dimensions are processed in our Developer Guide.
Check the Active box to start collecting data and see the dimension in your reports right away. To create the dimension but have it remain inactive, uncheck the box.
Once, this has been completed, go back to the Google Analytics in Confluence Configuration page and press the Reload Custom Dimensions button. If everything was done correctly, you will get a icon next to each custom dimension.