Trigger Events Programmatically
How to programmatically trigger engagement & conversions events in AnyTrack.
<script>
// trigger an outbound click event
var click_id = AnyTrack('OutboundClick');
</script>Event Properties
<script>
AnyTrack('Purchase', {
id: 'my-link-id', // link id
url: 'https://apple.com/referral', // the target link url
label: 'iPhone X', // link label
brand: 'Apple', // product brand name
value: 2.99, // event monetary value / commission
currency: 'EUR', // optional currency (default to propery currency)
transactionId: 'XJW0047', // transaction id
});
</script>Full Code Example
E-Commerce Support
Last updated