Principle
Tag v3 enables the collection of new types of information, such as Visitor Attributes.
Visitor Attributes are variables that allow you to enrich your visitor’s profile. For example, if they are premium users, or if they subscribed to the newsletter
In a nutshell, Visitor Attributes are a way to link your CRM data to ABTasty.
Once linked, you will be able to filter your reports by Visitor Attributes.
Implementation
There are two ways of implementing Visitor Attributes.
Via the Settings
You can implement Visitor Attributes for users visiting specific URLs.
To do this, apply the following steps:
- Log in to the AB Tasty platform,
- Click
, then Settings>Advanced settings> Visitor attributes,
- In the first drop-down list, choose your matching method.
- In the URL field, enter the URL of the page.
- In the Variable name field, enter the name of your variable/key.
- In the Variable value field, enter the value you want to give to your variable/key.
- Click Add:
The Visitor attribute is automatically stored.
For instance, in the example below, we want to create an attribute for all female visitors browsing pages with /woman in their URL. To do this:
- In the Choose matching method field, select contains.
- In the Url field, enter /woman.
- In the Variable name field, enter UserSex.
- In the Variable value field, enter Female.
- Click Add.
To delete a visitor attribute, click .
⚡ |
From the Settings section, you can define a visitor attribute for a specific URLs only. To implement visitor attributes that are not based on URLs, see implementation via the source code. |
Via the source code of your website
You can also implement Visitor Attributes directly in the source code of your website. For this, you need to send a Segment hit type. The common structure of the Segment hit is the following:
window.abtasty.send("segment", {
s: {
key1: value1,
key2: value2
}
});
A Segment hit is composed of a set of Visitor Attributes, as shown below:
AB Tasty is then able to get and reuse those visitor attributes.
To do this, apply the following steps:
- Copy the following code below:
window.abtasty.send("segment", {
s: {
key1: value1,
key2: value2
}
}); - Adapt it to suit the keys and values you want to define.
- Paste the code in the source code of your website:
The Visitor Attribute is automatically stored and sent when a transaction is done on your website.
For more information on the Segment hit, please refer to the developer portal.
Data
The data related to visitor attributes can be found and exploited from the report and the Data Explorer.
Report
From the reporting of AB Tasty, you are able to filter by any attributes set to AB Tasty with the segment hit. For more on this, refer to New reporting -Filters.
👍 |
The Visitor Attributes filter is displayed only if a Visitor Attribute hit has been processed in your campaign. |
Data explorer
The safest way of making sure the data has been properly collected is to access it via the Data explorer (for more on this, refer to Using the Data explorer). Just like it is for goal configuration, the collected data is available after 45 minutes to 4 hours, i.e. the time it takes for processing.
To access the Data explorer, apply the following steps:
- Go to the dashboard and click Insights > Data Explorer.
- In the Dimension field, select Segment Key or Segment Value.
- Click Run query: the result is displayed at the bottom of the page.
⚡ |
With Tag v2, two types of variables were available: - e-commerce variables (Eco var) to enrich a transaction. - Custom variables (Custom Var) to enrich the visitor’s profile. For more information on e-commerce and custom variables, refer to What is the difference between e-commerce variables and customizable variables? Visitor attributes now replace the former Custom Var. |
Related articles
What is the difference between e-commerce variables and customizable variables?
Comments
0 comments
Please sign in to leave a comment.