# Gravity Forms Google Analytics Add-On

`meteorgpl-plugin/gravityformsgoogleanalytics` — a WordPress plugin as a Composer package.

Integrates Gravity Forms with Google Analytics and Tag Manager

- Author: Gravity Forms — https://gravityforms.com
- Homepage: http://gravityforms.com
- License: GPL-3.0-or-later (profile: gpl-full)
- Buy a license from the vendor: http://gravityforms.com
- Latest version: 2.4.1 (2026-03-07)
- Page: https://meteorgpl.com/packages/meteorgpl-plugin/gravityformsgoogleanalytics
- Vendor: Gravity Forms — https://meteorgpl.com/vendors/gravityforms.com

## Changelog

### 2.4.1 — 2026-03-03

- Added the ability to automatically output scripts when using Manual Configuration.
- Updated the add-on to use the new [versioning system](https://docs.gravityforms.com/version-numbering/).
- Fixed an unexpected redirect when a user tries to complete the setup without selecting a connection type.

### 2.4.0 — 2025-06-18

- Added a new [`gform_googleanalytics_mp_session_id`](https://docs.gravityforms.com/gform_googleanalytics_mp_session_id/) filter to allow for custom session ID handling.
- Updated session ID handling in Measurement Protocol to use the updated GA4 cookie format.
- Fixed an issue where form submissions fail when using the new AJAX submission method.
- Fixed an issue where pagination events aren't sent with Google Measurement Protocol using the new AJAX submission method.

### 2.3.0 — 2024-07-02

- Added the session ID to the event data sent to Google Analytics when using Google Measurement Protocol.
- Fixed an issue where the result of sending an event to Google might not be written to the log when triggered by a non-logged in user.

### 2.2.0 — 2024-02-07

- Added support for the {source_page_number} and {current_page_number} merge tags in pagination settings.
- Fixed a link on the plugin settings page.
- Fixed a timeout error that occurs when using the http_request_timeout filter.
- Removed unused Universal Analytics code that is no longer relevant to GA4.

### 2.1.0 — 2023-09-06

- Added improved logging for pagination and submission events.
- Fixed an issue where confirmation redirect URLs with query string variables are getting improperly escaped, preventing the query string variables from being accessible on the confirmation page.
- Fixed an issue where events can be incorrectly sent to tag manager using the selected trigger name rather than the trigger's event name.
- Fixed an issue where the tracking ID is not included when loading gtag.js.
- Fixed an issue where the gforms_google_analytics_frontend_strings variable is output multiple times.
- Fixed an issue that causes scripts to output on REST submission requests.

Full changelog: https://meteorgpl.com/packages/meteorgpl-plugin/gravityformsgoogleanalytics/changelog

## Install

```sh
composer config repositories.meteorgpl composer https://composer.meteorgpl.com
composer require meteorgpl-plugin/gravityformsgoogleanalytics
```

The repository needs a token (see https://meteorgpl.com/docs). The vendor's license checks are intact: activate the plugin in WordPress with a key bought from the vendor.

## Versions

| Version | Released | Size | SHA-256 | Status |
| --- | --- | --- | --- | --- |
| 2.4.1 | 2026-03-07 | 49.9 KB | 189f9b2e1de2c70e20f88e4204ad65340fe07d3c8eca3d436627b9ae92f6f877 | verified |

