Skip to main content
Web activity tracking sends two kinds of behavioral data from your website to Engage: shopping cart changes and product views. Engage links that data to a contact, either immediately or later once the visitor is identified, and uses it to trigger automations and personalize communication. Visitor activity is tracked whether or not they are identified. Anonymous activity is stored in the browser and connected to a contact as soon as that visitor is identified.

What it enables

More about abandoned cart and abandoned browse

How the data reaches Engage

  1. Your site calls a tracking method (cart(), emptyCart() or productview()) whenever the visitor changes their cart or views a product.
  2. The method sends an HTTP POST to the Collect endpoint.
  3. Engage waits for the cart or session to go quiet for 30 minutes, then treats it as abandoned.
  4. If the activity is connected to a contact, Engage enriches it with data from the product feed and triggers the matching automation. Activity still not connected to any contact at that point is filtered out.

Two ways to send the data

The two ways of implementing tracking are:
  • With the tracking script
  • With the tracking API
Almost all implementations use the tracking script. However the tracking API also exists for cases where a script can’t be used, but this shifts more of the work onto you.

Key terms

_vaI is _va followed by an uppercase letter I (I as in Ingemar), not a lowercase L. The two are hard to tell apart in many fonts.

Where to start

1

Configure a product feed in Engage

Cart and product view data is enriched from the product feed. Without a feed for the relevant locale, no automation can trigger.

Set up a product feed

2

Implement the tracking script

One snippet, on every page of the site.

The tracking script

3

Identify your visitors

Call setContactId() at the moment your site identifies someone, and understand how the cookies work.

Identification and cookies

4

Send cart and product view events

Track every cart change, and every product view.

Tracking cart changes

Tracking product views

5

Verify the implementation

Work through the checklists before going live.

Verifying and troubleshooting