Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple PHP function for logging Mxit traffic to Google Analytics.
branch: master

This branch is even with n1c:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

A simple PHP wrapper for server side Mxit Google Analytics

I've stripped down Google's server side PHP example code to be a lot simpler & asynchronous. The Google code makes you jump through a lot of hoops, creating a fake gif, relying on a cookie etc.

This code just skips all that and does a curl.


  • The code requires that your server can run curl from the command line.
  • Make sure that the $account_id you pass to the function is the mobile version, starting with "MO-".

Usage example:

Something went wrong with that request. Please try again.