With tag v2, you can use two types of variables: e-commerce and custom variables. These variables can be stored and used to filter report data and/or target future tests.
E-commerce variable
E-commerce variables (Eco var) are used to enrich a transaction with custom data.
To record e-commerce variables, use the following method:
- Copy the following code below:
-
_abtasty.push(["eco","key", "value"]);
- Adapt it to match the keys and values you want to define.
- Paste the code in the source code of your website.
Custom variable
Custom variables (Custom Var) are used to enrich the visitor’s profile.
To record custom variables, use the following method:
- Copy the following code below:
-
_abtasty.push(["cv","key", "value"]);
- Adapt it to match the keys and values you want to define.
- Paste the code in the source code of your website.
The data related to E-commerce variables and Custom variables can be found and exploited from the report and from the Data Explorer.
![]() |
With Tag v3, the previous methods are depreciated. They are still supported as of now, but may not be in the future. With tag v3, E-commerce variables are replaced by Visitor Attributes. For more information, refer to Using Visitor attributes. |
Related articles
Comments
0 comments
Please sign in to leave a comment.