What does the tag tracks?

General Tracking

Technical details about tracking can be found in the developer portal.

By default and simply by implementing it on your website, our tag is designed to collect browsing data about your visitors. There are four main categories of automated hits:

  • Campaign

  • Pageview

  • dataLayer

  • Batch

Campaign

Each time a campaign is seen by the visitor, a campaign hit is sent with the corresponding campaign ID/variation ID pair. One hit is sent per campaign.

Each time a campaign hit is sent, the analytics integration settings are triggered.

Each time a campaign hit is sent, a corresponding JS event is sent. You can listen to this event for advanced integration.

Pageview

Every time the visitor visits a page, this hit is sent with all the details about the visited page.

dataLayer

If you have configured a data layer integration, then a hit will be sent once per session with all the available data layer keys.

Batch

To reduce its global footprint and increase performance, our tag sends the information in batches when they are triggered close to each other. When a batch hit is sent, you can find the usual details about each type of hit directly into the h parameter of the payload.

With a standard usage of AB Tasty, you should not be needed to implement any of these hits by yourself.

Events

You can send any event to the collection pipeline. This EVENT type of hit is built according to the following pattern: category/action/label/value.

Category

You are free to set the value of your choice in the event category. However, if you want the event to be used in the reporting as a goal or a filter, it must be set as Action Tracking.

Action

The action is the name of your event as it will be displayed in the goals section, the reporting, or the filters.

Label

A label enables adding text to the hit.

Value

A value enables adding value to the hit.

Format

An EVENT hit must be sent using the following format:

window.abtasty.send("event", {
 ec: "Action Tracking",
 ea: "Click on CTA",
 el: "CTA on product page",
 ev: 1
});

For further information, please refer to this article.

Shortcut

You can also use the following method if you only need to send the action (name of a goal).

ABTastyClickTracking({{action}}, null);

Suggested articles:

About cookies tracking

Last updated

Was this helpful?