Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module adds a small, configurable delay to client-side redirects (like clicking external links or downloading files) to ensure that analytics events are fully recorded before the user navigates away. This helps prevent lost tracking data and improves the accuracy of your website analytics.

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2026
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.x-dev Dev 10–11 Feb 18, 2026