tealium / tags

tealium/tags

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass proprietary

Are you the maintainer of tealium?

Packagento pulls tealium's Composer packages from the public registry so buyers can find them here.

Claim the namespace to take ownership, publish new releases directly, and start charging for premium versions.

Claim this namespace →

image

Tealium Magento 2 Extension

Introduction

Tealium's official integration for TiQ on the Magento 2 framework. This extension provides a robust implementation of minimal boilerplate code for implementing and extending universal data objects (UDOs) across various page types. Leveraging Magento's prescribed dependency injection and layout systems, the module simplifies the process of creating and extending UDOs.

Included is a script that scaffolds out boilerplate code for new UDOs. It allows you to specify UDO extensions and the pages where the new UDO should appear. Once generated, you're left with a template ready to be filled in with data-specific logic for your particular use case.

Get started understanding UDOs and data layer concepts at Tealium Community.

For Magento documentation, refer to Magento DevDocs.

Requirements

Ensure you have the following:

  • Active Tealium IQ Account
  • Tealium Account ID (usually your company name)
  • Tealium Profile name associated with the app
  • Tealium environment (prod, qa, dev, custom)

Installation

Manual Install with Ubuntu

  1. Enable Maintenance Mode: Enable maintenance mode before installing the extension to avoid any user issues. To enable maintenance mode, run the following command:

    php bin/magento maintenance:enable
    
  2. Copy the Tealium Folder:
    Copy the Tealium folder from GitHub to app/code/Tealium/Tags within your Magento folder. If app/code/Tealium/Tags doesn’t exist, create it.

  3. Run the Following Commands to Update Changes:

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy -f
    php bin/magento cache:flush
    
  4. Disable Maintenance Mode: After the installation is complete, disable maintenance mode to allow users to access the site. To disable maintenance mode, run:

    php bin/magento maintenance:disable
    

Configuration

In the admin panel under store configuration (Stores -> Configuration -> Tealium -> Tag Management), set the extension options. Enable the extension and define your TiQ account, profile, and environment information.

Basic Config Requirements

Account, Profile, Environment

image

First Party Tracking

If you are using a first party domain place your client domain here

image

Email Hash

image

Change Log

  • 4.1.0 Release (Magento 2.4.8 / PHP 8.4 Update)

    • PHP code updates for compliance with PHP 8.4
  • 3.2.0 Release (Magento 2.4.6 / PHP 8.1 Update)

    • FPD (First Party Domain) support
    • Update older PHP code for compliance with PHP 8.1+
    • CSP (Content Security Policy) updates for Magento 2.4.6
      • Update the csp_whitelist.xml file in the extension's etc directory (public_html/integration-magento/etc).
      • Update policies ("script-src," "connect-src," and "img-src") to include your FPD domain.
    • Newsletter signup Event
    • SHA256 encryption option on customer_email UDO variable
      • Email Hashing: If set to true, SHA256() will be applied to email addresses in "customer_email" params.
    • Bug Fixes
  • 3.1.0 Release

    • Update for support of Magento 2.4
    • Add tracking for user-submitted product reviews
    • Bug fixes
  • 3.0.2 Release

    • Add support for Magento 2.3.3
  • 3.0.1 Release

    • Add support for Magento 2.2.8, 2.3.0, and 2.3.1-2
  • 2.0.0 Release

    • Updated composer.JSON
    • Updated readme
    • Releasing all previous commits
  • 1.0.1 Release

    • Default UDO (utag_data JSON object in page source) deployed via Magento Extension to match Tealium iQ TMS Data Layer bundle
    • Configure account info in admin panel
    • Extend and customize UDOs

Sharing Feedback

If you should experience any issues with this plugin, please report them as issues directly to the repository. In your submitted issue, please include which version of Magento you reference, e.g. 2.4.1. Tealium also accepts enhancement requests, if you find there are features you wish to see supported in future releases. Please use the enhancement label on your submitted issue.

License

Use of this software is subject to the terms and conditions of the license agreement contained in the file titled "LICENSE.txt". Please read the license before downloading or using any of the files contained in this repository. By downloading or using any of these files, you are agreeing to be bound by and comply with the license agreement.


Copyright (C) 2012-2025, Tealium Inc.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
4.1 stable Fail Magento 2.4.7-2.4.9 Details 2025-09-25 18:05:25
4.0 stable Not tested Not yet tested Details 2023-10-13 19:05:25
3.1.0 stable Not tested Not yet tested Details 2020-11-13 21:17:39
2.0.4 stable Not tested Not yet tested Details 2018-07-26 22:29:57
2.0.3 stable Not tested Not yet tested Details 2018-07-19 17:25:58
2.0.2 stable Not tested Not yet tested Details 2018-07-19 17:19:51
2.0.1 stable Not tested Not yet tested Details 2018-07-18 16:46:47
2.0.0 stable Not tested Not yet tested Details 2018-07-13 21:14:02
0.8.0 stable Not tested Not yet tested Details 2018-02-28 21:42:18

Requires 1

Package Constraint
php ^7.4 || ^8.0

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 1579 1579 warnings (ruleset: Magento2) — 1072 auto-fixable with phpcbf
PHPMD Warning 151 151 rule violations (UnusedLocalVariable:42, UndefinedVariable:30, IfStatementAssignment:19, CyclomaticComplexity:17, NPathComplexity:16)
Cpd Warning 7 7 duplicated chunks spanning 303 total lines (min-lines=5, min-tokens=70)
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 182 182
2.4.8 182 182
2.4.9 182 182

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.