Everything you need to get started and master the platform.
Learn what nTrackr is and its core capabilities
nTrackr is a comprehensive analysis and tracking platform for websites and mobile applications. It provides advanced tools to understand visitor behavior, increase conversion rates, and improve user experience.
nTrackr can be used across a wide range of platforms — from e-commerce sites to corporate websites, from blogs to mobile apps. It's ideal for anyone who wants to understand visitor behavior and take action accordingly.
Add and manage your domains
You can add domains you want to track in nTrackr and manage your existing domain settings.
example.com covers both example.com and www.example.com; other subdomains are added as separate domains. On the domain edit page you can switch:
| Session replay | Record sessions for playback. Typed text is masked by default. |
| Capture typed text in replays | Off by default. When on, regular fields are recorded; password, card, CVV, OTP, IBAN and national ID fields stay masked. |
| Heatmaps | Clicks, mouse movement and scroll depth. |
| Form analytics | Which fields were used, fill time and abandoned forms. Field values are never collected. |
| Anonymize visitor IPs | Stores IPs shortened (IPv4 /24, IPv6 /48). Location, blacklists and risk still use the full address at request time; IP exclusion exports then contain shortened addresses. |
| Minimal tracking | No replay, heatmaps or form analytics and only basic device data is stored; visitor recognition becomes less accurate. |
Install the tracking code on your website
To integrate nTrackr with your website, first get the tracking code. You can find this code on the domain settings page.
<script src="https://ntrackr.com/js/ntrackr.js" defer></script>
Add the tracking code to all pages of your website. This is typically placed between the <head> tags.
After adding the tracking code, verify your setup from the nTrackr dashboard.
Plugins such as LiteSpeed Cache, WP Rocket or Autoptimize on WordPress combine and minify JavaScript files and may keep a copy on your own server. If the nTrackr script ends up in that copy, your site keeps running an old version whenever we update the script, which can leave recordings (session recordings especially) incomplete or blank.
The tracker works on its own after the script tag. These optional commands are available on the page:
| ntrack('event', 'purchase', { value: 149 }) | Send a custom event (also usable as a goal and in webhooks). |
| ntrack('identify', { userId, email, hmac }) | Link the visitor to your user (HMAC required, see Visitor Identify). |
| ntrack('getVisitorId') / ntrack('getSessionId') | IDs to send to your backend for the Verdict API. |
| ntrack('consent', 'granted' | 'denied') | Start or stop tracking when consent mode is on (see Privacy & Consent). |
| data-ntrack-event="signup_click" | HTML attribute: clicking the element sends that custom event. |
| data-ntrack-mask | HTML attribute or ntrack-mask class: the element is always masked in recordings. |
Consent mode, masking and what is collected
If your visitors must consent first (e.g. GDPR), set requireConsent before the script. Nothing is collected or stored until you call ntrack('consent', 'granted') — typically from your cookie banner. 'denied' stops tracking and removes the stored IDs. The choice is remembered in the browser.
<script>window.ntrackConfig = { requireConsent: true };</script>
<script src="https://ntrackr.com/js/ntrackr.js" defer></script>
// Consent mode
ntrack('consent', 'granted'); // or 'denied'
| Form field values | Only which field was used and when. |
| Passwords and payment data | Masked in recordings regardless of settings. |
| Typed text in recordings | Masked by default unless you enable capture for the domain. |
Origin validation, rate limiting & HMAC signing
nTrackr protects your tracking data with multiple security layers. Regular tracking (page views, events, clicks) works automatically without any configuration. The identify command requires an additional HMAC signature generated from your backend to prevent unauthorized user identity manipulation.
Tracking requests from browsers must come from the registered domain (or its www twin): the Origin or Referer header has to match. This stops other websites from writing into your data from a browser; scripts can forge headers, so use the server-side Verdict API for decisions.
API requests are rate-limited per IP address: 120 requests/minute for general tracking and 10 requests/minute for identify calls. This prevents abuse and ensures service stability.
The identify command requires a server-side HMAC-SHA256 signature. Your backend signs the user ID — plus the email, when you send one — with your API Secret. This ensures only your server can authorize identity calls.
Follow these three steps to secure your identify calls with HMAC verification:
Step 1: Get your API Secret
Find your API Secret in the domain settings page of your nTrackr dashboard. Keep this secret safe — never expose it in client-side code.
Step 2: Generate HMAC on your backend
// Message: userId, or "userId\nemail" when you also send an email
// (email lowercased + trimmed)
// PHP
$message = $email ? $userId . "\n" . strtolower(trim($email)) : $userId;
$hmac = hash_hmac('sha256', $message, $apiSecret);
// Node.js
const crypto = require('crypto');
const message = email ? `${userId}\n${email.trim().toLowerCase()}` : userId;
const hmac = crypto.createHmac('sha256', apiSecret)
.update(message).digest('hex');
// Python
import hmac, hashlib
message = f"{user_id}\n{email.strip().lower()}" if email else user_id
signature = hmac.new(
api_secret.encode(), message.encode(),
hashlib.sha256
).hexdigest()
Step 3: Pass the HMAC to the frontend
ntrack('identify', {
userId: 'usr_12345',
hmac: hmacFromBackend, // Generated by your backend
email: '[email protected]',
name: 'John Doe'
});
The SDK automatically sends the hmac value as an X-NTrack-Signature header. The server looks up your domain's API Secret and computes the expected HMAC over the userId, or over "userId\nemail" when an email is sent. If the signature doesn't match, the request is rejected with a 403 error. A legacy userId-only signature is still accepted, but any email in that call is ignored.
Rule actions run in the visitor's browser, so a bot that does not execute the script is never stopped by them. To actually protect a signup, checkout or ad conversion, call the verdict endpoint from your backend with the visitorId or sessionId (read them in the browser with ntrack('getVisitorId') / ntrack('getSessionId') and submit them with your form).
curl "https://ntrackr.com/api/v1/verdict?visitorId=VISITOR_ID" \
-H "X-NTrackr-Domain: shop.example.com" \
-H "Authorization: Bearer YOUR_API_SECRET"
// PHP (Laravel) — before accepting a signup / checkout / ad conversion
$verdict = Http::withToken($apiSecret)
->withHeaders(['X-NTrackr-Domain' => 'shop.example.com'])
->get('https://ntrackr.com/api/v1/verdict', ['sessionId' => $sessionId])
->json('data');
if ($verdict['recommendation'] === 'block') {
abort(403);
}
{
"success": true,
"data": {
"visitorId": "Ab12Cd34Ef56Gh78",
"sessionId": "x9Y8z7W6v5U4t3S2r1Q0",
"recommendation": "review",
"reasons": ["risk_score_elevated", "datacenter_ip"],
"riskScore": 62,
"trustScore": 31,
"blocked": false,
"override": null,
"blacklist": null,
"tags": ["paid_traffic"],
"identified": false,
"country": "DE",
"anonymousIp": false,
"datacenterIp": true
}
}
Authenticate with your domain's API Secret — never call this from the browser. recommendation is block when a block override, a blacklist block rule or your Fraud label matches, or riskScore >= 80; review at >= 50, for other blacklist matches or a form filled in under 3 seconds; otherwise allow. A whitelist override always returns allow. reasons lists why; paidClick describes ad clicks. Rate limit: 600 requests/minute. Available from the Starter plan.
Never expose your API Secret in client-side JavaScript. The HMAC must always be generated on your backend server. If you suspect your secret has been compromised, rotate it immediately from the domain settings page.
Understand your visitors and assess risks
nTrackr deeply analyzes every visitor to your site, helping you understand not only who they are but also how trustworthy they are.
Detects VPN, Proxy, Tor usage and hosting IPs. Analyzes geographic location, country, city, and ISP information. Anonymous connections indicate higher risk levels.
Browser fingerprinting with dozens of parameters, consistency scoring across sessions, and detection of advanced masking techniques like WebRTC leaks and Canvas fingerprinting.
Analyzes mouse movements, clicks, scroll depth, and interaction patterns. Detects abnormally fast form filling, unusual navigation paths, and bot-like behavior.
You received a high-value order but the system flagged it with a Risk Score of 85.
Visits from paid ads are recognised automatically from the landing URL (gclid, msclkid, ttclid and other click IDs, or a paid utm_medium). The Ad Click Fraud report on the domain page shows which paid clicks look invalid (high risk, datacenter or VPN IP, repeat clicks, instant form fills), the estimated wasted spend, and exports the suspicious IPs for Google Ads IP exclusions. Ad platforms decide on invalid-click credits themselves; nTrackr data supports a request but cannot guarantee a refund.
Paid clicks, suspicious ones and what they cost
A session is a paid click when its landing URL has an ad click ID (gclid, gbraid, wbraid, dclid, msclkid, ttclid, li_fat_id, twclid, epik) or a paid utm_medium (cpc, ppc, paid, display, paid_social...). fbclid alone does not count — Facebook adds it to organic links too; use utm_medium=paid_social on Meta ads. Keep auto-tagging on in Google Ads.
| High risk score | Visitor risk score 70 or more |
| Datacenter IP | The click came from a hosting / cloud provider |
| VPN / proxy | Anonymized connection |
| Blocked visitor | Blocked by an override |
| Repeat clicks | 3 or more paid clicks by the same visitor within 24 hours |
| Instant form fill | A form was submitted in under 3 seconds |
Leaving within a few seconds is shown as context only; real people bounce too.
| Period | 7, 30 or 90 days: paid clicks, suspicious clicks and their share |
| Breakdown | Daily chart, platforms, campaigns (utm_campaign) and reasons |
| Estimated waste | Suspicious clicks × the average CPC you enter |
| IP exclusions | Download suspicious IPs (top 500) and paste them into Google Ads > Campaign settings > IP exclusions; the CSV keeps platforms, campaigns and reasons |
| Accuracy | Mark flagged clicks as Fraud or False alarm after watching the session: the report shows precision, false alarms and missed fraud. A visitor marked Fraud is blocked by the Verdict API. |
Ad platforms decide on invalid-click credits themselves; nTrackr data supports a request but cannot guarantee a refund.
Watch session replays and analyze heatmaps
Session replay allows you to watch your visitors' behavior in a video-like format. It records mouse movements, clicks, scrolling, and form interactions, giving you first-hand observation of user experience.
Shows where users click most. Red areas are most clicked, blue areas least clicked.
Shows where users hover their mouse. Helps understand attention areas that catch the eye but aren't clicked.
Shows how far users scroll down the page. Helps determine where to place your most important content.
You think your "Get Started" button isn't getting enough clicks.
Track and optimize form interactions
Forms are one of the most important ways to interact with users and collect data. nTrackr's Form Analytics lets you track in detail how visitors interact with your forms. This helps you optimize forms, increase conversion rates, and improve user experience.
You noticed users start filling out the registration form but don't complete it.
Form Analytics clearly reveals which steps users struggle with, which fields are confusing, and overall form performance with concrete data. This data is invaluable for improving UX and increasing conversions.
Automate actions based on visitor behavior
Rules & Actions let you react to visitors automatically. While a page is open the tracker asks for actions about every 15 seconds, and once more on exit intent: on desktop when the cursor leaves through the top of the window, on phones and tablets when the visitor flicks quickly back up the page or returns to the tab after switching away. Active rules are evaluated against the current visitor and session; the first matching rule (by priority) runs its actions in order. Each rule can have multiple condition groups (OR between groups, AND within a group). Browser actions are not a security boundary — use the server-side Verdict API for critical decisions.
Use these attributes in your rule conditions to target specific visitors:
landing_page
Landing Page URL
current_url
Current Page URL
referrer
Referrer URL
is_paid_click
Is paid ad click (true/false)
ad_platform
Ad platform (google, meta, microsoft, tiktok, linkedin, x, pinterest, other)
utm_source
UTM source
utm_medium
UTM medium
utm_campaign
UTM campaign
country_code
Country Code (ISO 2)
city_name
City Name
browser_language
Browser Language
device_platform
Device Platform
risk_score
Risk Score
trust_score
Trust Score
session_count
Total Session Count
sessions_7d
Sessions in the last 7 days
page_view_count
Page Views (Current Session)
time_on_page
Time since session start (seconds)
form_fill_seconds
Form fill time (seconds, last submitted form)
exit_intent
Exit intent: cursor leaves the top of the page, or a fast flick up / tab return on mobile (true/false)
ip_page_views_1h
Page views from this IP in the last hour
is_anonymous
Is Anonymous (VPN/Proxy/TOR)
is_datacenter
Datacenter / hosting IP (true/false)
is_webrtc_leak
WebRTC Leak Detected
isp
ISP
asn
ASN Number
connection_type
Connection Type
is_identified
Is Identified
identified_user_id
Identified User ID
identified_email
Identified Email
has_tag
Has Tag
not_has_tag
Does Not Have Tag
Actions are executed in order when all conditions match:
show_message
Show a message. Plain text appears as a small notice; a JSON value shows a modal or banner with a title, text and an optional button, e.g. {"type":"modal","title":"Don't leave!","body":"Use code STAY10 for 10% off","button":"Back to cart","url":"/cart"}. Each message is shown once per browser session.
redirect
Redirect the visitor to a specified URL.
block
Block the visitor from accessing the site.
trigger_custom_event
Run your own code. Fires a JavaScript event with the name you enter on window, e.g. window.addEventListener('vip-offer', e => openChat(e.detail.visitorId)); the event detail carries visitorId and sessionId. Open a chat, switch prices, call your API: whatever your code does. Fires once per page view.
send_webhook
Send an HTTP POST request to your webhook URL with visitor data.
add_tag
Add a tag to the visitor for segmentation and future targeting.
remove_tag
Remove a previously added tag from the visitor.
add_css_class
Add a CSS class to an element on the page.
set_cookie
Set a cookie on the visitor's browser.
modify_content
Modify HTML content of an element on the page.
Show a feedback form to visitors who stay on your cart page for too long, collect abandonment reasons, and tag them for retargeting.
current_url contains /cart
AND
time_on_page > 30
Target repeat visitors browsing specific product categories with personalized on-site promotions and notify your CRM.
current_url contains /electronics
AND
visit_count >= 3
Automatically detect and block visitors with abnormal browsing patterns that indicate bot or scraping activity.
ip_page_views_1h > 100
AND
browser_language != tr
Show a retention modal with a discount code to a visitor who is about to leave the cart page, encouraging them to complete their purchase.
current_url contains /cart
AND
exit_intent = true
AND
not_has_tag = exit_intent_shown
Request phone numbers from engaged potential customers who have been tagged but haven't left their contact info yet.
has_tag = potansiyel_musteri
AND
visit_count >= 5
AND
not_has_tag = telefon_birakti
Detect bot traffic from paid ad campaigns to protect your advertising budget and collect evidence for refund claims.
is_paid_click = true
AND
risk_score >= 70
AND
is_datacenter = true
Offer personalized first-purchase discounts to loyal visitors who keep coming back but haven't converted yet.
has_tag = sadik_ziyaretci
AND
session_count >= 3
AND
current_url contains /cart
AND
not_has_tag = indirim_teklifi_gordu
Integrate with third-party services
Webhooks automatically send instant notifications (HTTP POST requests) to your specified URL when certain events occur in nTrackr. This lets you integrate nTrackr with your other applications and automate your workflows.
View all your created webhooks in a table on the Webhook Management page. The table shows each webhook's name, target URL, trigger events, and active/inactive status. You can edit or delete any webhook from this table.
| visitor_created | A new visitor is recognised |
| session_started | First page view of a session |
| form_submitted | A form is submitted |
| form_abandoned | A visitor leaves the page after starting a form without submitting |
| risk_score_high | A visitor's risk score crosses 70 (once per crossing) |
| bot_detected | Bot signs: bot User-Agent, headless/automated browser (navigator.webdriver), bot-like headers or a spoofed User-Agent (once per visitor) |
| blacklist_match | A blacklist rule matches (any action; hourly per IP) |
| traffic_anomaly | Traffic spike, risk increase or low traffic quality (checked every 5 minutes) |
| goal_completed | A page containing one of your goal URLs, or a goal event (once per session and goal) |
| custom_event | A custom event from ntrack('event') or data-ntrack-event (not the tracker's own telemetry) |
| js_error | A JavaScript error on the page |
| rule_triggered | A rule's Send webhook action whose value is rule_triggered (a URL value posts straight to that URL) |
Requests are JSON POSTs; the event field says which event it is. With a secret, the X-NTrackr-Signature header holds sha256=<HMAC-SHA256 of the raw body>. URLs must be public http(s) addresses (private and local networks are refused, redirects are not followed). 5xx and 429 responses are retried up to the configured count.
Block unwanted traffic proactively
Blacklist management is a powerful security feature that lets you proactively block unwanted or malicious traffic to your website. nTrackr supports flexible blacklist rules based on various criteria, allowing you to easily block bot traffic, spammers, unwanted visitors from specific countries, and more.
Block all traffic from a specific IP address or IP range. Ideal for known attack or spam source IPs.
Block all visitors from a specific country using ISO 3166-1 alpha-2 country codes (e.g., "US" for United States, "CN" for China).
Block browsers or bots containing specific User-Agent text. Useful for targeting malicious bots or legacy browsers.
Block by browser fingerprint hash — the unique ID created from browser and device characteristics. Most effective way to block a specific user/bot even when IP changes.
Adding a new rule is simple. Click "Add New Rule" and fill in the form:
All created rules are listed in the main table. You can view each rule's type, value, action, and expiry date, and easily remove rules you no longer need with the "Delete" button.
| Block | Tracking is not started for the visitor. |
| Increase risk | The visitor is tracked and Action value points (default 30) are added to the risk score. |
| Log only | The match is recorded (and the blacklist_match webhook fires). |
IP rules take a single address (203.0.113.7) or a CIDR range (203.0.113.0/24, IPv6 too). User-Agent rules match text contained in the browser's User-Agent, case-insensitive.
Comprehensive risk assessment tools
nTrackr analyzes visitor behavior and technical characteristics to identify potential risks. This section details the "Risk Analysis" tab on the visitor detail page and the reports it contains.
Shows how risky the visitor is on a 0-100 scale. High score indicates a potential threat. Calculated from IP signals (Tor exit nodes from the Tor Project list, hosting and VPN networks, timezone mismatch, WebRTC address mismatch), device signals (automation and spoofing indicators, blocked fingerprinting; emulator and root/jailbreak in the mobile SDK), HTTP header patterns and behaviour: forms submitted without any pointer, key or touch input, forms filled in under 3 seconds, repeated ad clicks within 24 hours and many visitors behind one IP within 10 minutes. The "Why this score" list on the Risk Analysis tab shows exactly which signals counted. Behaviour signals count once a day; a previous high score decays with a one-week half-life.
Shows how trustworthy the visitor is on a 0-100 scale. High score indicates a legitimate user.
Detects when a visitor uses multiple IPs, which may indicate identity concealment. Shows IP change timeline with all IPs used, time ranges, and geographic locations.
Detailed analysis of the current IP including risk score, anonymity detection (VPN/Proxy/Tor) and hosting provider check. Threat types are derived from this IP analysis; nTrackr does not query external spam/botnet lists.
Fingerprint uniqueness score, browser security level, device consistency across sessions, WebRTC leak detection, advanced device info (CPU cores, memory, screen resolution).
Session count, average duration, interaction and anomaly scores. Bounce rate, pages/session, scroll depth. Status info (blocked, whitelisted, rule-based). Form & event analysis (filled forms, triggered events, error rates).
Based on analysis results, nTrackr recommends specific security actions like "Immediate Block", "Close Monitoring", or "Request Additional Verification" based on risk score. Also suggests network-level measures like geo-blocking and rate limiting based on IP analysis. A summary table shows all main scores (Overall Risk, IP Risk, Fingerprint, Trust) at a glance.
Match your logged-in users with nTrackr visitors
The Visitor Identify feature allows you to associate your own application's user data (user ID, email, name, and unlimited custom metadata) with nTrackr visitor records. This creates a bridge between your application's users and nTrackr's analytics data.
When a visitor logs in to your website, you can send their user information to nTrackr using the identify command. This data is stored as a JSON object on the visitor record and is visible in the dashboard, searchable, and usable in rule conditions.
Minimal — just a user ID:
ntrack('identify', {
userId: 'usr_12345',
hmac: 'your_hmac_signature'
});
Full — with all fields and custom metadata:
ntrack('identify', {
userId: 'usr_12345',
hmac: 'your_hmac_signature',
email: '[email protected]',
name: 'John Doe',
meta: {
plan: 'premium',
company: 'Acme Inc.',
role: 'admin',
signup_date: '2025-01-15'
}
});
Update only metadata (merges with existing data):
ntrack('identify', {
userId: 'usr_12345', // always required with hmac
hmac: 'your_hmac_signature',
meta: { last_order: '#1234', vip: true }
});
Each identify call deep-merges with existing data. Previously sent fields are preserved, new fields are added, and updated fields are overwritten. Meta keys are also merged individually.
// First call
ntrack('identify', {
userId: 'usr_12345',
hmac: 'your_hmac_signature',
meta: { plan: 'free' }
});
// Second call — adds email, updates plan
ntrack('identify', {
userId: 'usr_12345',
hmac: 'your_hmac_signature', // signs "usr_12345\[email protected]"
email: '[email protected]',
meta: { plan: 'premium', company: 'Acme' }
});
// Result: all data merged
// { userId: 'usr_12345', email: '[email protected]',
// meta: { plan: 'premium', company: 'Acme' } }
To remove a previously set meta key, send it with a null value:
ntrack('identify', {
userId: 'usr_12345',
hmac: 'your_hmac_signature',
meta: { old_key: null } // This key will be removed
});
Identified visitors show a verification badge in the visitor list. In the visitor detail page, a dedicated "Identified User" card displays all sent data including custom meta key-value pairs. You can also search visitors by user ID, email, or name.
You can use identification status in your automation rules. Available conditions: "is_identified" (boolean), "identified_user_id" (matches user ID), and "identified_email" (matches email). Combine these with other conditions to create powerful targeting rules.
You are responsible for ensuring that any personal data sent via the identify command complies with applicable privacy regulations (GDPR, CCPA, etc.). Only send data that you have consent to process. nTrackr stores this data securely alongside the visitor record.
What happens when a monthly quota is used up
Each plan has monthly page view, session recording and custom event quotas, a domain limit and a rule and webhook limit (see pricing). The ad fraud report, the Verdict API and heatmaps start with Starter; the mobile SDK with Basic. Risk scores, bot detection, replay and form analytics are on every plan. Usage is shown on the domain page.
| Page views used up | New sessions are not started until next month or until you upgrade. |
| Recordings used up | Session replay is switched off for the rest of the month. |
| Custom events used up | Events are accepted but not stored; page views and forms keep working. |
| Domain limit | Adding a domain beyond the limit is refused. |
| Rule or webhook limit | Creating more than your plan allows is refused; existing ones keep working. |
| Expired subscription | The account returns to Free plan limits. |
Existing data, reports and the Verdict API keep working when a quota is used up.
Get help when you need it
If you encounter any issues or need assistance, you can easily reach our support team through the Support section in your customer panel.