Drupal is a registered trademark of Dries Buytaert
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). 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). editoria11y 2.2.22 Minor update available for module editoria11y (2.2.22). ai 1.2.13 Minor update available for module ai (1.2.13). ai 1.3.2 Minor update available for module ai (1.3.2). moderated_content_bulk_publish 2.0.51 Minor update available for module moderated_content_bulk_publish (2.0.51). moderated_content_bulk_publish 2.0.50 Minor update available for module moderated_content_bulk_publish (2.0.50). editoria11y 2.2.21 Minor update available for module editoria11y (2.2.21). eca 3.1.0 Minor update available for module eca (3.1.0). sophron 3.1.1 Minor update available for module sophron (3.1.1).

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
3
First release
Apr 2026
Latest release
1 day ago
Release cadence
1 day
Stability
0% stable

Release Timeline

Releases

Version Type Release date
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