Javascript snippet for merchants to include on their checkout web page
-
Add the following JavaScript snippet to your checkout web page.
<script type="text/javascript"> var _basset = {apiKey: '<YOUR_API_KEY>'}; (function() { var t = document.createElement('script'); t.type = 'text/javascript'; t.async = true; t.src = '//www.basset.io/track.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(t, s); })(); </script>
-
Replace
<YOUR_API_KEY>
with your own API key.
The script captures
- User Agent
- Language
- Color Depth
- Screen resolution
- Timezone
- Session Storage
- Local Storage
- Indexed DB
- User Behavior
- Open Database
- CPU Class
- Platform
- DoNotTrack
- Plugins
- AdBlock
- If the user has tampered with languages
- If the user has tampered with resolution
- If the user has tampered with OS
- If the user has tampered with browser
- Touch support
- Canvas fingerprint (currently left out for performance)
- WebGL fingerprint (currently left out for performance)
and sends the data to the basset.io API for analysis.