A thin loader package for MaxMind's minFraud device tracking system. This package dynamically loads the device fingerprinting module from MaxMind's servers at runtime, ensuring you always get the latest version without updating the npm package.
The package itself contains no fingerprinting logic — it validates inputs, loads the remote module, and returns the tracking token.
npm install @maxmind/device-trackingimport { trackDevice } from '@maxmind/device-tracking';
const result = await trackDevice({ accountId: 123456 });
console.log(result.trackingToken);If you proxy MaxMind's device tracking through your own subdomain (to avoid
ad-blockers), pass the host option. The module will be loaded from your
custom host, and the host value is passed to the remote module for its own use:
const result = await trackDevice({
accountId: 123456,
host: 'tracking.yourdomain.com',
});For performance or compatibility, you can disable WebGL hash collection:
const result = await trackDevice({
accountId: 123456,
disableWebglHash: true,
});Loads the device tracking module (if not already cached) and collects a device fingerprint.
| Property | Type | Required | Description |
|---|---|---|---|
accountId |
number |
Yes | Your MaxMind account ID (positive integer) |
host |
string |
No | Custom hostname for ad-blocker bypass |
disableWebglHash |
boolean |
No | Disable WebGL hash collection |
| Property | Type | Description |
|---|---|---|
trackingToken |
string |
Opaque device tracking token |