Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Trash 3.0.33 Minor update available for module trash (3.0.33). EOL Warning: Drupal 11.0 has reached end of life and no longer receives security updates. EOL Warning: Drupal 10.3 has reached end of life and no longer receives security updates. Release: UI Patterns (SDC in Drupal UI) 2.0.20 Minor update available for module ui_patterns (2.0.20). Release: Trash 3.1.0-rc1 First release candidate for module trash (3.1.0-rc1). Release: Country 2.2.0 Minor update available for module country (2.2.0). Usage Milestone: jQuery UI Datepicker Module jquery_ui_datepicker crossed 1,000 active installs. Release: Scheduler Content Moderation Defaults 1.1.2 Minor update available for module scheduler_content_moderation_defaults (1.1.2). Release: Flags 2.1.0 Minor update available for module flags (2.1.0). Release: Login Disable 2.2.0 Minor update available for module login_disable (2.2.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.

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
4
Tracked since
Apr 2026
Latest release
2 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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