The Agillic Tracking Script enables you to track recipients and their activities on external websites. Once implemented on a website, the script allows you to create Target Groups and other types of Conditions based on your recipient's activities.
You can read more about setting up the Agillic Tracking Script here. You must ensure that your tracking script is set up correctly in order to use tracking script conditions.
The following data becomes available when creating Tracking Script Conditions:
- Name of the URL
- Number of Visits
- How long a recipient visited
How to Create Tracking Script Conditions
- Navigate to the Target Group, Flow Step, Report, or other elements you want to create Tracking Script Conditions for.
- Click on the 'Conditions' section.
- Select the '+' icon and then select 'Insert Condition' from the dropdown.
- Select 'Tracking Page View' as the data type.
- Select if your URL should be 'equals', 'like', or 'in' through the 'Select Operator' field. We recommend that when using a 'like' condition, add a '*' before and after the URL. This allows you to include recipients in the Target Group that have been tracked on different URLs based on the URL inserted in the Condition.
- Fill in the URL for the page you want to make the Tracking Script Condition for.
- Select the aggregation you want - see table 1 for explanations.
- Fill in a number if you selected an aggregation that requires a number. You can also select the '+' icon next to your current Condition and select 'Insert Sub Group'.
- Select 'TIME SPEND' or 'LAST VISIT'.
- Select the operator you want.
- Fill in a date, timestamp, or number in the next field.
- Click 'Save'.
You've now created Tracking Script Conditions.
Note that the Tracking Script can't evaluate Tracking Script Conditions for recipients in the Staging environment. Therefore, if you need to test your Tracking Script Conditions, you'll have to do it with a recipient on Production.
|COUNT||Returns recipients based on the number of views of a URL||-|
|EXISTS||Returns recipients who have been tracked for the URL||-|
|AVG||Returns recipients based on the average time (seconds) spent on a URL||Number|
|MAX||Returns recipients based on the maximum value of time (seconds) on a URL||Number|
|MIN||Returns recipients based on the minimum value of time (seconds) on a URL||Number|
|SUM||Returns recipients based on the sum of time (seconds) of URLs||Number|
|LAST DATE||Returns recipients based on their last visit||Timestamp, Date|
|TIME SPEND||Returns recipients who have spent X amount of seconds on the URL||Number|
|LAST VISIT||Returns recipients based on their last visit who||Timestamp, Date|
Table 1: Descriptions of all Tracking Script aggregations
Suggested Next Steps
- All You Need to Know About Target Groups
- Understanding Web Settings
- Understanding Agillic Tracking Script
- How to Track on More than one Domain on a Webpage/Portal page