Code Libraries for Google Analytics

The Google Analytics measurement protocol revolutionized the capabilities and uses cases for the platform. Analytics Pros developed many of the initial libraries for using the  Google Analytics measurement protocol to help our customers track offline interactions, email integrations, and use connected devices including Roku, Apple TV, Xbox and Playstation. We are excited to provide these libraries to you!

Get the Code

Environment Repository Description
Python github.com/analytics-pros/universal-analytics-python Library for sending Google Analytics: Universal Analytics measurement protocol hits from Python applications.
C github.com/analytics-pros/universal-analytics-c Library for sending Google Analytics: Universal Analytics measurement protocol hits from C applications and embedded platforms.
PHP (Universal) github.com/analytics-pros/universal-analytics-php Library for sending Google Analytics: Universal Analytics measurement protocol hits from PHP applications.
PHP (Legacy) github.com/analytics-pros/google-analytics-php-legacy Library for sending classic GA (NOT universal analytics) hits from PHP applications.
R / GA Heatmap github.com/analytics-pros/R-GA-Heatmap R script that connects to Google Analytics and constructs a daily / hourly heatmap
Apple TV OS github.com/analytics-pros/GA-Tracker-for-Apple-tvOS Univeral Analytics Library for Apple TV.

Full disclosure: These libraries are offered under varying Open Source licenses, and come with no implied warranty.

Need Help?

Analytics Pros offers consulting and integration services if your firm needs assistance in strategy, implementation, or auditing existing work. We welcome contributions back to these libraries, and would love to hear about the innovative ways you apply them!  If you need help, contact us!