fromholdio/silverstripe-superlinker-redirection-utm

Adds UTM tracking parameters to Silverstripe Superlinker Redirection targets

Maintainers

Package info

github.com/fromholdio/silverstripe-superlinker-redirection-utm

Type:silverstripe-vendormodule

pkg:composer/fromholdio/silverstripe-superlinker-redirection-utm

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.1 2026-05-05 01:51 UTC

This package is auto-updated.

Last update: 2026-05-05 01:51:38 UTC


README

Adds optional UTM tracking parameters to sitetree and file targets in fromholdio/silverstripe-superlinker-redirection.

Requirements

  • Silverstripe CMS 5.2 or 6
  • fromholdio/silverstripe-superlinker-redirection 3 or 4

Installation

composer require fromholdio/silverstripe-superlinker-redirection-utm

Run dev/build after installation so the UTM fields are added to redirection records.

Usage

The module adds a "UTM tracking parameters" field group to redirection links whose target type is "Page on this website" or "Download a file". Entered values are appended to the generated destination URL as:

  • utm_source
  • utm_medium
  • utm_campaign

Values are trimmed and spaces are converted to underscores before being stored. Query parameter values are encoded before being appended to the URL.

Configuration

UTM fields and URL output are enabled by default. To disable them:

Fromholdio\SuperLinkerRedirection\Model\RedirectionSuperLink:
  enable_utm_parameters: false