...
In order to collect information regarding each order, the JavaScript snippet below must be added to the header of each of the site’s checkout pages.
Variables to set up:
store_domain
is your site’s domain name such astickets.example.com
.session_id is the unique session identifier your site assigns to each visitor. This will need to be passed at order creation as well as the session_id parameter.
store_domain
should always beticketevolution.com
.
Code Block | ||
---|---|---|
| ||
<script type="text/javascript"> //<![CDATA[ (function() { function riskifiedBeaconLoad() { var storesession_domainid = 'INSERT_UNIQUE_SESSION_ID_HERE'; var sessionstore_iddomain = 'ticketevolution.com'; var url = ('https:' == document.location.protocol ? 'https://' : 'http://') + "beacon.riskified.com?shop=" + store_domain + "&sid=" + session_id; var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); } if (window.attachEvent) window.attachEvent('onload', riskifiedBeaconLoad) else window.addEventListener('load', riskifiedBeaconLoad, false); })(); //]]> </script> |
...