• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!


Setting Up Google Analytics - Version 1

Page history last edited by PBworks 14 years ago

This if for version 1 of Mobile Web OSP. Version 2 docs.


Configuring Google Analytics

I'm assuming that you know how to go to Google Analytics and set-up a report for your new mobile site. Once you've gotten the code (it should look like UA-XXXXX-XX) do the following:


  1. Navigate to the root of your Mobile Web install
  2. Open config.gen.inc.php in your favorite text editor
  3. Add your code to line #15 for the variable $ga_code


That's all you need to do. Remember! Google Analytics in the current version of Mobile Web requires JavaScript for the statistics to be recorded. Older devices and feature phones may not support JavaScript so their numbers will be underreported. Use Google Analytics as a guide but not as the absolute truth regarding your sites activity.


Tracking Outgoing Links

I've tried to set-up the Mobile Web project so it also reports when a user leaves your site for another website. Clicks on outgoing links can be found under the fake directory '/outgoing/' and are organized by the section the links are in. For example an outgoing link in the Campus News section would be under '/outgoing/news/.' YouTube clicks are not recorded though.



Comments (0)

You don't have permission to comment on this page.