WP Manifestindependent plugin directory
manifest / analytics / click-id-referrer-capture-cf7

Click ID & Referrer Capture for Contact Form 7

WordPress plugin that keeps gclid, gbraid, wbraid, msclkid and UTMs in a first-party cookie, adds them to Contact Form 7 submissions and exports offline conversion CSVs.

by Fire Pixel (Ben Luong) · github.com/discontinuitythesis/click-id-referrer-capture-cf7 · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/discontinuitythesis/click-id-referrer-capture-cf7/archive/refs/heads/main.zip

Captures gclid, gbraid, wbraid, dclid, msclkid, fbclid, ttclid, li_fat_id and the UTM parameters, keeps a first touch and a last touch record in a first-party cookie, writes them into hidden fields on every Contact Form 7 form, and exports Google Ads and Microsoft Advertising offline conversion CSV files.

Free, GPLv2 or later, no external services and no account required.

Built and maintained by Fire Pixel, a UK Google Ads consultancy.

Documentation

The full documentation, the FAQ and the developer reference live in readme.txt, which is the WordPress.org readme for this plugin. Plugin page: https://firepixel.co.uk/wordpress-click-id-capture.

Requirements

  • WordPress 6.2 or later
  • PHP 7.4 or later
  • Contact Form 7 for the form integration. The capture layer works without it.

Development

php test/check-standards.php        # escaping, sanitising, prepared statements, text domain
node --test test/capture.test.js    # front-end capture logic in a minimal fake DOM
for f in $(find . -name '*.php'); do php -l "$f"; done

Licence

GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html.