Update Google Analytics using PHP

Google Analytics is usually updated by embedding Javascript code into your web pages. If you've written a web application and want to add extra information into your analytics tracking then using PHP to update Google Analytics may be a better option (using Google's Analytics Measurement Protocol). To do this you'll need a web server with PHP and Curl installed and your Google Analytics tracking ID.

more ...Written by Gary Hall