Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

GA Redirect Delay (GARD) provides an optional client-side delay before navigating away from the site, ensuring that Google Analytics (GA4) or Google Tag Manager (GTM) events are reliably recorded.

When users click external links or download files (e.g. PDFs), browsers may redirect immediately, preventing analytics events from being fully transmitted. This can result in lost tracking data and inaccurate reporting.

GARD introduces a configurable browser-based delay after link clicks, allowing tracking events to fire before navigation proceeds. The implementation is entirely client-side and does not introduce any server-side delays.

Features

  • Enable or disable redirect delay globally
  • Configurable delay duration (milliseconds)
  • Apply to:
    • External links
    • File downloads (based on extension)
  • Custom analytics event name
  • Compatible with GA4 and GTM (dataLayer-based tracking)
  • No impact on server performance or SEO

Technical Approach

The module attaches a lightweight JavaScript behavior that:

  1. Intercepts qualifying link clicks.
  2. Pushes a configurable event to dataLayer.
  3. Waits for the configured delay.
  4. Proceeds with navigation.

Because the delay occurs after user interaction and not at the server level, there is no impact on Time To First Byte (TTFB) or search engine indexing.

Use Cases

  • Outbound link tracking
  • PDF download tracking
  • Review platform links
  • Affiliate or campaign links

Requirements

  • Drupal 10 or 11
  • Google Analytics or GTM configured separately

Activity

Total releases
1
First release
Feb 2026
Latest release
2 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.x-dev Dev Feb 18, 2026