Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 75.2 KB
MD5: 9b697e09ee724abfd56266b149a9be20
SHA-1: 9f5214e09dfc6cb6e304eff38e66fa8b0ddc7ac1
SHA-256: c953141718bd4a16c05cb299d46fa5de519a74d7ee4b61b5ae3c92d7764b17dd
Download zip 116.4 KB
MD5: a5ef636122591b20217e6c3751df10c6
SHA-1: a9d2d5bf53ac50b5a0f71978fda7fbf45d8fb531
SHA-256: 0a166da9e6c11090f03321661e2895a2431b0800b5560fd8e6e223b7e4699c85

Release notes

This release adds a same-origin proxy for the GTM loader, reworks Cookie Keeper, and brings the module in line with Drupal coding standards. It now requires Drupal 10.3 or later.

New features

  • Same-origin proxy: optionally serves the GTM loader from your own Drupal domain, so it loads first-party and is harder for ad blockers to block. Requires your Stape container API key, which is used server side only.
  • Redesigned settings form: new admin styles, and the loader regenerates automatically when settings change.

Bug fixes

  • Cookie Keeper: the _sbp cookie was set already expired and got a new value on every page. It is now set once, with a two-year expiry, and works correctly with the page cache.
  • The Active setting was ignored, so the GTM tag was added whenever a Container ID was set. It is now respected.
  • The proxied sub-path keeps its trailing slash.
  • Pressing Enter in the settings form saves it instead of sending a test webhook.
  • Fixed the settings config schema and removed a stray, unused config object.

Other changes

  • Requires Drupal ^10.3 || ^11.
  • Declares its existing dependencies on Commerce Cart and Commerce Product in .info.yml.
  • Removed the jeremykendall/php-domain-parser dependency.
  • Code follows the Drupal and DrupalPractice coding standards; added unit and kernel tests.

Upgrade notes

Run drush updb after updating. The update fills in missing settings, turns Active on for sites that already have a Container ID (so the tag keeps rendering), regenerates the GTM loader, and removes old config.

Created by: stape
Created on: 20 Oct 2026 at 12:48 UTC
Last updated: 20 Oct 2026 at 12:49 UTC
Bug fixes
New features

Other releases