How to Add Google Analytics Tracking code to your mobile website

Google Analytics has advanced options that support tracking of mobile. Follow the steps below to add your Google Analytics tracking code to your mobile website:

  1. Open Google Analytics – https://www.google.com/analytics/settings/home

  1. Select the Account that the site is part of.

  1. The next page lists the URL’s being tracked. Click Edit on the right hand side of the row for the domain you are using for your mobile site.

  1. In the top right corner of the profile table click Check Status.

  1. Under Instructions for adding tracking, click on the Advanced tab.

  1. Under What are you tracking? select A site built for a mobile phone, then select PHP from the radio lists.

  1. In the pane paste code on your mobile site, note down the value for the line $GA_ACCOUNT = MO-XXXXXX-X;, this is your tracking ID. e.g. MO-1231234-2

 

  1. Click Save and Finish in the bottom right hand corner of the page.

  1. Open the Setup Assistant [control panel]

  1. Click on the Features tab.

  1. Scroll down to Google Analytics and enter the tracking ID from earlier, then click OK. e.g. MO-1231234-2

 

This article is also available in: French, Spanish

  • Was this article helpful ?

  • yes   no

Related Articles