Drupal is a registered trademark of Dries Buytaert
Drupal 11.4.3 Update released for Drupal core (11.4.3)! Views Bulk Operations (VBO) 4.4.6 Minor update available for module views_bulk_operations (4.4.6). External Authentication 2.0.12 Minor update available for module externalauth (2.0.12). Entityqueue 8.x-1.12 Minor update available for module entityqueue (8.x-1.12). Similar By Terms 2.0.0 Major update available for module similarterms (2.0.0). Similar By Terms 8.x-1.10 Minor update available for module similarterms (8.x-1.10). Dependent Fields 1.0.11 Minor update available for module dependent_fields (1.0.11). Flag Mutually Exclusive 1.0.0 Initial release available for module flag_mutually_exclusive (1.0.0)! Menu Admin per Menu Module menu_admin_per_menu crossed 50,000 active installs. Document Preview 2.0.0 Module document_preview updated after 13 months of inactivity (2.0.0).

This module sends tracking data about short URL redirects to Piano Analytics. It records details like the destination URL and referrer without slowing down the redirect process, and respects user consent settings.

Sends Piano Analytics server-side events for Short URL redirect visits.

Features

  • Non-blocking tracking: visit events are queued during the redirect and sent to the Piano Analytics Collection API after the response via kernel.terminate. Zero impact on redirect latency.
  • Configurable event name: defaults to page.display, configurable in the settings form.
  • Rich event properties: slug, destination URL, referrer, language, and domain (when Domain Short URL is installed).
  • Consent-aware: respects the Piano Analytics opt-out cookie (pa_consent_mode).
  • Enable/disable: toggle via settings form with automatic container rebuild.

How it works

  1. The Short URL module dispatches a ShortUrlVisitEvent on every redirect visit.
  2. This module subscribes to that event, builds PA properties from the visit data, and calls ServerSideEventSender::queueEvent().
  3. The base Piano Analytics module sends queued events in batch during kernel.terminate (after the response).

Requirements

Installation

composer require drupal/pianoanalytics_shorturl
drush en pianoanalytics_shorturl

Configuration

Navigate to Short URL settings (/admin/config/shorturl/settings). The Piano Analytics section appears when this module is enabled. Configure the PA event name (default: page.display) and enable/disable tracking.

Activity

Total releases
4
First release
Apr 2026
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.0-beta1 Pre-release Jun 9, 2026
1.0.0-alpha2 Pre-release Apr 14, 2026
1.0.0-alpha1 Pre-release Apr 13, 2026
1.x-dev Dev Apr 13, 2026