All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
...
In the {dspace.dir}/config/dspace.cfg file review the following field to make sure it is uncommented:
Property: | xmlui.google.analytics.key |
Value: | UA-12345678-1 |
Informational Note: | Logon to the Google Analytics Dashboard and select the Property (or website in plain English) that you wish to target. Then select the Admin section for the property. You should then be able to select the 'Property Settings' for the property (e.g. Test Project) you are interested in. Use the value of Tracking ID. This is not the same as your View Settings View ID (i.e. ga:12345678)
Then this value is the Tracking ID: |
In the {dspace.dir}/config/modules/google-analytics.cfg file review the following fields to make sure they are uncommented:
Property: | application.name |
Value: | Dummy Project |
Informational Note: | Not sure if this property is required but it was in the example code provided by Google. Please do not delete. |
Property: | table.id |
Example Value: | ga:12345678 |
Informational Note: | Logon to the Google Analytics Dashboard and select the Property (or website in plain English) that you wish to target. Then select the Admin section for the property. You should then be able to select the 'View Settings' for the view (i.e. All Web Site Data) you are interested in. The View ID should replace 12345678 below (note - confusingly the Reporting API documentation refers to the View ID as Table ID). This is not the same as your Property Settings Tracking ID (i.e. UA-112233-6) Account[Longsight DSpace Clients] -> Property[SUNY Dev] -> View[All Web Site Data] -> View Settings
Then this value is the View ID:
|
Property: | account.email |
Example Value: | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@developer.gserviceaccount.com |
Informational Note: | The email address automatically generated when you created the Service Account. |
Property: | certificate.location |
Example Value: | /home/myudspace/var/MYU-abc123.p12 |
Informational Note: | The certificate file automatically generated when you created the Service Account. The credentials site will generate a JSON file, and then separately you have to download a new P12 file. Copy it somewhere to your DSpace server, and set this property to the path. |
Property: | authorization.admin.usage |
Example Value: | true |
Informational Note: | Control if the statistics pages should be only shown to authorized users. If enabled, only the administrators for the DSpaceObject will be able to view the statistics. If disabled, anyone with READ permissions on the DSpaceObject will be able to view the statistics. |
Once Google Analytics Statistics is enabled and configured, you can then view reports. An example report looks like:
http://localhost:8080/xmlui/handle/999/1/google-stats