Set up Google Analytics
Contents
Set up Google Analytics
-
Go to https://analytics.google.com and link your google account to Google Analytics.
-
Set up an account inside Google Analytics.
Give your account name of the organization or another name that represents all sites/pages that will be included.
-
Add a new property
-
On the property tab put the name of the site (eks: your-site-name.com) to be analysed into the "Property name" field
-
open the advanced options:
-
This app uses the Universal Analytics property. So select this option:
-
Choose: 'Create a Universal Analytics property only':
-
Then you can create a new property:
-
-
-
Now we can get the Tracking ID from our newly created property:
Download the analytics app from the market
-
Log in to your XP admin and open the Applications tool:
-
Press Install button to open up the dialog with the list of all apps from the Enonic Market and use the filter to locate the Google Analytics app.
-
When you have found the application press the green Install button to add it.
-
This text should pop up at the bottom:
-
-
Application should say "Installed".
Add to site
Now we have it installed on the system, but not added to a specific site yet.
-
Navigate to Content Studio and edit edit the site you have set up the analytics for.
-
In the applications dropdown find Google Analytics app and select it with a checkbox, then click "Apply":
Configure the app
We need to configure the app to make Google Analytics work.
-
Open the app configuration:
-
Add the tracking id (UA-XXXXX) id to the "Tracking id" field inside the configuration pop up:
-
Press Apply to send page data to google analytics (tracking data might be delayed when first activated)
The steps above will add Google Analytics to your site. We have additional analytics information available in our widget, but this needs to be set up.
Setup widget Setting up the widget includes changes to server configuration files.