Add this script to your page and replace YOUR_ACCOUNT_ID with your actual
account Id.
<script>
(function(_, b, e, o, p){
if(_.beopTag){
return;
}
_.beopTag=functionbeopTag(){
beopTag.events.push([].slice.call(arguments));
};
beopTag.events=[];
o = b.createElement(e);
o.src="https://widget.beop.io/conversion.js";
p = b.querySelector(e);
p.parentNode.insertBefore(o, p);
})(window,document,"script");
beopTag("init","YOUR_ACCOUNT_ID",{version:2});
</script>
This little piece of code will load the actual conversion.js tracker
asynchronously (meaning it's non blocking for your page) and store any event
that was tracked before the actual script is loaded. This way, all the events
can be sent to our server as soon as possible and without losing anything.
NOTE: Prior to version 2, the tracking was automatically called. If you pass {version: 2} to the init call and want to track this event, you now need to call the pageview tracking explicitely.
Simply call the beopTag function with the following parameters:
Sometimes, the redirect service strips query string params and prevents the conversion pixel from resolving the origin. For these cases, a third parameter can be added to the init: