Skip to main content
Add the Dotdigital Tag to your website

Seamlessly integrate Dotdigital scripts with your site.

Laura Russell avatar
Written by Laura Russell
Updated this week

The Dotdigital Tag streamlines the process of connecting your website activity and data to our platforms. Use one single tag to enable:


Before you start

Things you need to know:

*Additional customisation is not required if the Dotdigital Tag is applied to your store using our installation wizard for Shopify, BigCommerce, or Shopline. In these cases, the scripts are already configured to allow use of these features.


Set up the Dotdigital Tag

  1. In Dotdigital, go to Connect.

  2. Select Connect your website.

  3. Select NEW CONNECTION.

  4. Add a name for this connection to allow you to recognise it later.

  5. For Website domains, add up to 15 domains that you want the tag to work on.
    List each domain on a new line. Do not include https:// or www.

    • Subdomains of a specified parent domain are automatically tracked and don't need to be separately specified; a single session can include activity on the parent and sub-domains.

    • Specific subdomains, such as sub.example.com, can be listed without their parent domain.

  6. Select SAVE.

  7. On the Settings page, use the switches to optionally enable:

    • Web behavior tracking
      Track your site visitors’ browsing behaviour.

    • Chat
      Offer one-to-one customer support through a chat widget on your site.

    • Fresh Relevance
      Advanced personalization data capture, triggers, and on-site personalisation.
      Learn more in the section Advanced personalisation.

      You can also enable Abandoned carts, but this requires some additional customisation of the script.

  8. Under Advanced settings you can:

    • Require cookie consent
      Enable this feature to ensure cookies are only stored on a visitor’s browser after consent is given. You can use the following methods to integrate this feature with your existing cookie management system:

      • To deny consent: dmPt('setCookiesConsent', false);

      • To grant consent: dmPt('setCookiesConsent', true);

    • Enable guest carts
      This creates a contact in Dotdigital for visitors who abandon a cart but are not yet contacts in your account. You must ensure you have collected the necessary consent before sending any marketing communications to these contacts.

      We strongly recommend leaving your Regulatory settings on Enforce double opt-in for signups from signup forms and some API methods only (default). If you enforce double opt-in for all signups, then we don't recommend using abandoned cart emails for guests, as the process won't work correctly.

  9. Select SAVE to confirm your configuration.

  10. Select TEST to check the installation of the Dotdigital Tag, and enter a URL to test. Select TEST again to check that the Tag is correctly installed on the specified page.
    If there any any issues with the installation, you see a message with information about the error, and what steps to take to rectify it.

  11. Select VIEW CODE to see the Tag that has been generated for your account.

  12. Paste your Connection code onto each page of your website, before the closing </body> tag.

Once the setup is complete, and depending on which features you have enabled, you see tracking data begin to sync into your Dotdigital account as Insight data, and you can continue the setup of your Chat widget and teams.


Edit the tag

To make any changes to the configuration of the Dotdigital Tag:

  1. Go to Connect > Connect your website.

  2. Select the Edit icon for the tag you want to make changes to.

  3. Make the desired changes, then select SAVE.

These changes are automatically pushed to the published tag on the domains specified.


Set up an abandoned cart trigger

Abandoned cart and abandoned browse triggers can help you re-engage customers who have shown interest in your products but haven't yet completed their purchase.

Before you start

  • You must have implemented abandoned cart tracking on your store. Learn how.

  • The settings below apply only if the cartinsight script does not include ProgramID and CartDelay. If those values are present, they take priority, and the abandoned cart settings are ignored.

  1. In Dotdigital, go to Connect > Connect Website.

  2. Find the connection you use on your store and select the edit icon.

  3. Under Abandoned cart, for 'Enrol abandoned carts to' select SELECT PROGRAM.

  4. Choose the abandoned cart program you want to enrol contacts on, then select APPLY.

  5. Expand the Enrol abandoned carts after drop-down menu, then choose the amount of time you want to delay before enrolling contacts onto the program. Options: No delay, 30 mins (recommended), 1 hour, 6 hours, 12 hours.

Testing and live delay recommendation

If you choose No delay, we try to enrol the contact as soon as an active cart is received. This can be useful when testing the abandoned cart automation. However, in an active program, we recommend adding a minimum delay of 30 minutes.


Set up an abandoned browse trigger

The abandoned browse trigger lets you enrol contacts directly after they visit your website. It works for regular page visits, as well as product detail pages. Learn more in Use abandoned browse.

  1. In Dotdigital, go to Connect > Connect Website.

  2. Find the connection you use on your store and select edit.

  3. Under Abandoned cart, for Enrol abandoned sessions to select SELECT PROGRAM. > To focus on contacts who visited product details pages, add a decision node to confirm the session today included those pages. Learn how.

  4. Choose the abandoned browse program you want to enrol contacts on, then select APPLY.

  5. Expand the Enrol abandoned sessions after drop-down men u, then choose the amount of time you want to delay before enrolling contacts onto the program. Options: No delay, 30 mins (recommended), 1 hour, 6 hours, 12 hours.

Abandoned sessions

A session is considered abandoned or expired after 35 minutes of inactivity. If you do not select any delay, the system enrolls the contact 35 minutes after the last page load. It's important to keep this in mind when testing the automation.

Focus on contacts who visited a product details page

If you want to focus on contacts who visited product details pages, you must create a segment to find those contacts and then add a decision node to find contacts present in the segment. Here’s a summary of how to do this:

  1. Add a decision node to your abandoned browse program.

  2. Set it to include contacts Present in the selected segment.

  3. Select CREATE NEW.

  4. Drag an Insight data block into the Include section.

  5. Add these filters:

    • Data collection: Webinsights

    • Contact filter: Number of records is greater than or equal to 1.

    • Record filter 1: Session_start occurs today

    • Record filter 2: product_name is not empty

  6. Select OKAY.

  7. Select APPLY.

Did this answer your question?