CANDDi Tracker event subscriptions
CANDDi Tracker event subscriptions are a mechanism for onsite JavaScript to monitor the internal happenings within the CANDDi Tracker. This is useful for enabling third-party JavaScript to react based on the data or activities being tracked, for example: firing a Google Analytics conversion if the CANDDi Capture has been completed.
NOTE: This requires tracker version 11.1.0 or above (released October 2015).
To do this, register a call-back function (and the type of event to listen to, see §3 for a list of types). Note the Type is case-sensitive so track.download is not same as Track.Download.
`
<script>
canEvents = canEvents || [];
_canEvents.push(`"track.download",function(){alert("Download Tracker")});
</script>
Each time a download occurs then the call-back function will be executed (and in this instance an alert will be raised on screen).
Have more questions? Contact us at hello@canddi.com or 0161 414 1080
NOTE: This requires tracker version 11.1.0 or above (released October 2015).
To do this, register a call-back function (and the type of event to listen to, see §3 for a list of types). Note the Type is case-sensitive so track.download is not same as Track.Download.
`
<script>
canEvents = canEvents || [];
_canEvents.push(`"track.download",function(){alert("Download Tracker")});
</script>
Each time a download occurs then the call-back function will be executed (and in this instance an alert will be raised on screen).
Have more questions? Contact us at hello@canddi.com or 0161 414 1080
Updated on: 06/02/2020
Thank you!