Learn to add our Web behavior tracking script to your Shopware 6 store.
Overview
Web behavior tracking is an advanced module giving you the power to collect identifiable contact data from your site, based on your contacts' browsing behavior.
To learn more about Web behavior tracking, check out the article Understand Web behavior tracking.
Before you start
Things you need to know:
- Check out the Shopware 6 integration checklist to help track your progress.
- You must install the Dotdigital for Shopware 6 extension before you can add web behavior tracking to your Shopware 6 account.
To learn more check out the article, Install Dotdigital for Shopware 6 extension for tracking.
- You must have a Shopware 6 store connected to your Dotdigital account.
- Adding Web behavior tracking will automatically enable Abandoned browse.
To learn more, check out the article Using abandoned browse.
Step 1: Create your web behavior tracking profile
To create your Web behavior tracking profile:
- In Dotdigital, go to Settings > Access, and select the Web behavior profiles tab.
- Select NEW PROFILE.
- For Name, enter a name for your profile.
This can be anything you want, but make it recognisable.
- For Website domains, enter each domain you want to add the tracking script to.
Max: 15 unique domains. Omit the
https://www
– for example,example.com
. - Select CREATE.
- On Web behavior tracking profile, switch on Track abandoned carts.
- If you want to enable guest carts, switch on Enable guest carts.
- Copy your Unique ID.
You need this in Step 2.3.
- Select SAVE.
Step 2: Set up Web behavior tracking in Shopware 6
To set up Web behavior tracking in Shopware 6:
- In Shopware 6, go to Extensions > My extensions.
- Find the Dotdigital for Shopware app, then expand the settings drop-down menu and select Configuration.
- For Web behavior tracking profile ID, enter your Unique ID.
This is the Unique ID you copied in Step 1.8.
- Select Save.