|
1 | 1 | # How to add Google Analytics to your game |
2 | 2 |
|
3 | | -Google Analytics is a popular web analytics service by Google that tracks and reports website traffic. It offers insight about your user behaviour and allow you to make informed decisions. |
| 3 | +Google Analytics is a popular web analytics service that tracks and reports website traffic. It offers insight about your user behaviour and allows you to make informed decisions regarding the evolution of your site. |
4 | 4 |
|
5 | | -You will need to modify the VR template that comes with the package so be sure you've already added [the package from the store](http://u3d.as/1476) to your Unity project. |
| 5 | +You will need to modify the [VR template](../../Assets/WebGLTemplates/WebVR/index.html) that comes with the package, so be sure you've already added [the package from the store](https://u3d.as/1476) to your Unity project. |
6 | 6 |
|
7 | 7 | ## Set up |
8 | 8 |
|
9 | 9 | Start by visiting [Google Analytics](https://analytics.google.com/analytics/web) and sign up for a new account: |
10 | 10 |
|
11 | 11 |  |
12 | 12 |
|
13 | | -Fill in the details of your organization and website. Remember to select `https` in the drop menu of the `Website URL` field. |
| 13 | +Fill in the details of your organization and website. Remember to select `https://` in the drop-down menu of the `Website URL` field. |
14 | 14 |
|
15 | 15 |  |
16 | 16 |
|
17 | | -Whe you finish, click on `Get Tracking ID` at the bottom of the page: |
| 17 | +When you finish, click on `Get Tracking ID` at the bottom of the page: |
18 | 18 |
|
19 | 19 |  |
20 | 20 |
|
21 | 21 | This will redirect you to the configuration page where you find the HTML code you need to use in the template: |
22 | 22 |
|
23 | | - |
| 23 | + |
24 | 24 |
|
25 | | -Now, in your project, with your favourite code editor, open the file at `Assets/WebGLTemplates/WebVR/index.html` and paste the code provided by Google Analytics just after the `<head>` tag: |
| 25 | +Now, in your project, with your favourite code editor, open the file at `Assets/WebGLTemplates/WebVR/index.html` and paste the code provided by Google Analytics inside, preferably at the top of, the `<head>` tag: |
26 | 26 |
|
27 | 27 |  |
28 | 28 |
|
29 | | -## Getting started |
| 29 | +## Using Google Analytics |
30 | 30 |
|
31 | | -The amount of data in Google Analytics is huge and overwhelming. Fortunately, the folks in Google have developed a series of courses to explain you the main concepts of traffic analysicis. We recommend you start at [Google Analytics Academy](https://analytics.google.com/analytics/academy/). |
| 31 | +The amount of data in Google Analytics can be overwhelming to navigate and dissect. Fortunately, the folks at Google have developed a series of courses to explain you the main concepts of traffic analysis. We recommend you start at [Google Analytics Academy](https://analytics.google.com/analytics/academy/). |
32 | 32 |
|
33 | | -## Free/Open source alternatives |
| 33 | +## Open-source alternatives |
34 | 34 |
|
35 | | -There are a few [free/open source alternatives](https://en.wikipedia.org/wiki/List_of_web_analytics_software#Free_/_Open_source_(FLOSS)) out there. We recommend [Matomo](https://matomo.org/) and [Open Web Analytics](http://www.openwebanalytics.com) (OWA). Both offer geolocation, click heat maps, traffic by referrer, event tracking... Which specifically depends on your needs but you can compare both side by side visiting the [demo pages for Motomo](https://demo.matomo.org) and [OWA](http://demo.openwebanalytics.com/owa/). |
| 35 | +There are a few [open-source alternatives](https://en.wikipedia.org/wiki/List_of_web_analytics_software#Free_/_Open_source_(FLOSS)) out there. Like Google Analytics, they are free although you need to host them yourself. We recommend [Matomo](https://matomo.org/) and [Open Web Analytics](http://www.openwebanalytics.com) (OWA). Both offer geolocation, click-heat maps, traffic by referrer, event tracking, etc. Which specifically depends on your needs but you can compare both side by side visiting the [demo pages for Matomo](https://demo.matomo.org) and [OWA](http://demo.openwebanalytics.com/owa/). |
0 commit comments