Advertising sustains the DA. Ads are hidden for members. Join today

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: