| 604 | ==== Google Analytics ==== |
| 605 | Super Administrators can also enable Google Analytics in iPeer. |
| 606 | 1. Go to [http://www.google.com/analytics/ Google Analytics] to sign up for an account. |
| 607 | 2. Choose between Universal Analytics and Classic Analytics. |
| 608 | 3. When you reach the tracking code section, mark down the following information. |
| 609 | * Universal Analytics |
| 610 | * tracking id (eg. UA-xxxxxx-x) |
| 611 | * domain (eg. ubc.ca) |
| 612 | {{{ |
| 613 | ga('create', 'UA-xxxxxx-x', 'ubc.ca'); |
| 614 | }}} |
| 615 | * Classic Analytics |
| 616 | * tracking id (eg. UA-xxxxxx-x) |
| 617 | {{{ |
| 618 | _gaq.push(['_setAccount', 'UA-xxxxxx-x']); |
| 619 | }}} |
| 620 | 4. Log in to iPeer. Click on the Admin Tab. |
| 621 | 5. Click on System Parameters. |
| 622 | 6. Click on the system parameter with the code 'google_analytics.tracking_id' |
| 623 | 7. Choose Edit. |
| 624 | 8. Fill in the tracking id provided by Google Analytics into the Parameter Value field. |
| 625 | 9. Click Save. |
| 626 | 10. If you choose to use Universal Analytics, repeat steps 6 to 9 for system parameter 'google_analytics.domain' |
| 627 | |