Skip to main content

Enable the Dotdigital Tag for Magento Open Source and Adobe Commerce

Enable web behavior tracking and more for your Magento store with the Dotdigital Tag.

Laura Russell avatar
Written by Laura Russell
Updated today

Website tracking enriches your data and helps you understand your contacts' engagement.

You can use a single implementation of the Dotdigital Tag to track:

  • Website views

  • User identification

  • Products browsed, to power abandoned browse

  • Cart updates, to power abandoned cart

  • Purchase completions

You can also use the Tag to enable Dotdigital Chat.

Learn more about Chat.

For joint customers of Dotdigital and Fresh Relevance, you can use the Dotdigital Tag to make your tracking data available across both platforms.


Before you start

Things you need to know:

  • In Magento 2 version 4.33.0+, legacy tracking scripts and methods are replaced by the Dotdigital Tag.


Set up the Dotdigital Tag

You must set up the Tag in Dotdigital before you can enable it for your Magento store.

  1. In Dotdigital, go to Connect, then select Connect website.

  2. Select NEW CONNECTION.

  3. Enter your website name for this connection.

  4. In the Domains field, enter each domain that you want to track on a new line.
    Don’t include https:// or www.. Subdomains of a specified parent domain are automatically tracked, so you don’t need to specify them separately.

  5. Select SAVE.

  6. Under Dotdigital Tag connection settings, copy the Tag ID.

You can configure the remaining Tag settings later if you want to.


Enable the Tag in Magento

  1. Go to Stores > Configuration.

  2. Expand the Dotdigital drop-down menu, then select Configuration.

  3. Expand the Tracking section.

  4. For Dotdigital Tag ID, paste in the Tag ID value you copied from Dotdigital.

  5. Optionally, you can expand the ROI Tracking drop-down menu and select Enable.

    ROI tracking is used to power Direct revenue tracking. Syncing orders to Dotdigital allows you to use Advanced revenue attribution, so unless you specifically want to use Direct tracking, you don’t need to enable the ROI Tracking functionality.

  6. Select Save Config.

Did this answer your question?