On this page
Getting started
Last updated on
12 May 2025
Configure
You need to configure site default method: admin/config/system/ga-push
- Universal Analytics: UTMP (js) [Analytics.js], UTMP (php)
- Classic Analytics: Javascript (js), PHP-GA (php), SSGA (php)
Server-side (php) vs Client-side
Client-side sends the data in the next page load with javascript (client browser), server-side sends the data in the server use it on ajax callbacks, payments... when you don't know if the user is going to browse another page.
How to use
You can track your custom GA events:
- Calling the functions ga_push_add_{type}: this are function wrappers of ga_push_add for better understanding.
- Using rules module
See examples for more info.
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.