Track Devices
The Device Tracking Add-On for the minFraud services identifies devices as they move across networks and enhances the ability of the minFraud services to detect fraud. If a fraudster changes proxies while they are browsing your website or between visits to your website, you may observe an increased risk score in the minFraud output associated with their transactions.
We may increase the risk score if we detect order velocity on the device. We also return a device ID in minFraud Insights and Factors so that you can do your own modeling around device ID.
Recommended use
The Device Tracking Add-On is JavaScript code for you to add to your website. It runs on a visiting device so that the minFraud service can assign a Device ID and begin collecting fingerprint information. We recommend including the JavaScript below on your product and landing pages as well as all the pages within your purchase flow. This will help detect fraudsters if they change or enable proxies while browsing your website.
To speed page load time, JavaScript should be placed in footer of the HTML webpage.
Note that, in order to be effective, the Device Tracking Add-on must, at a minimum, be included on the page where the IP address is captured for a minFraud query.
Implementation
Replace INSERT_MAXMIND_ACCOUNT_ID_HERE
with your
MaxMind account ID.
1<script>
2 (function() {
3 var mmapiws = window.__mmapiws = window.__mmapiws || {};
4 mmapiws.accountId = "INSERT_MAXMIND_ACCOUNT_ID_HERE";
5 var loadDeviceJs = function() {
6 var element = document.createElement('script');
7 element.async = true;
8 element.src = 'https://device.maxmind.com/js/device.js';
9 document.body.appendChild(element);
10 };
11 if (window.addEventListener) {
12 window.addEventListener('load', loadDeviceJs, false);
13 } else if (window.attachEvent) {
14 window.attachEvent('onload', loadDeviceJs);
15 }
16 })();
17</script>
Cookie and web storage usage
The device tracking add-on uses cookies and local storage as methods of distinguishing unique devices across visits and domains.
The add-on sets two types of cookies, both named __mmapiwsid
with two-year expiration:
First-party cookie: Set for the effective second-level domain of your site; for instance, on
www.maxmind.com
, the cookie would be set formaxmind.com
.Third-party cookie: Set by MaxMind’s servers to enable cross-domain device tracking. This allows the same device to be identified when it visits different customer websites using our device tracking.
The local storage key is also named __mmapiwsid
and provides an additional method of
device identification.
MaxMind may use other browser storage techniques in the future to enhance the performance of the device tracking add-on.