All Collections
Advanced options
Touchpoint variables
Other variables to use in our touchpoints
Other variables to use in our touchpoints

This article explains how to use our other variables, which are not in the categories above.

Christiaan Proper avatar
Written by Christiaan Proper
Updated over a week ago

{{coupon_code}}
Displays a coupon coupon code from the coupon codes you added to your touchpoint. You can do this at Touchpoint > Edit > Settings > Coupons.

{{distance_minutes}}
Displays the amount of travel time to the location you entered (longitude/latitude) in the audience targeting of a touchpoint. You can do this at Touchpoint > Edit > Settings > Audience > Targeting > Geographic > Location Range.

{{distance_km}}
Displays the amount of kilometers to the location you entered (longitude/latitude) in the audience targeting of a touchpoint. You can do this at Touchpoint > Edit > Settings > Audience > Targeting > Geographic > Location Range.

{{cart_recovery_hash}}
If your ecommerce tool supports recovery hashes, you can use this variable in the URL to recover the cart.

{{host.subdomain}}
Displays the subdomain of the current URL, e.g. “app” for app.datatrics.com.

{{host.domain}}
Displays the domain of the current URL, e.g. “datatrics” for app.datatrics.com.

{{host.extension}}
Displays the extension of the current URL, e.g. “com” for app.datatrics.com.

{{favorite_count}}
Displays the amount of items the visitor sent to our tracking script as a favorite. You can add favorite buttons to your website by showing a Datatrics touchpoint (an embedded touchpoint would be the best option for this case), which has a HTML class called “dt-addtoFavorites”. Our tracking script will add an onclick event to the element, which favorites the current viewed item for the visitor, when he clicks on the element.

Did this answer your question?