Skip to main content

Custom Tags

Custom Tags

This page is configured using identity: noPii and zero configured trackers, instead it uses tags directly in the HTML to mimic the same data and experience as basic-trackers. It's worth noting that on these events the trackers will be initialized with the data tagged on the page so that it can provide additional properties into each event.

<script type="text/javascript" 
var config = {
log: true,
apiRoot: 'http://localhost'
};

(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = '../beacon.js';
script.onload = function () {
window.beacon.init(config);
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(script, s);
})();
</script>

Interactive Example

Custom Tags Example