Skip to main content
The SDK automatically uses the click ID captured from the landing page URL.
name and phone are required — the tracking API rejects leads missing either. email and all other fields are optional.

Parameters

Examples

With Address Details

With Sub-Fields

With Callbacks

Key Mapping

Fill lead fields automatically from URL parameters on the current page:
Lead fields: name, phone, email, address, pincode, city, state, sub1–sub5, payout, currency. Explicitly provided values always win over keymapped values.

Postback Method

Custom Tracking Domain

By default the SDK posts to track.adscrush.com. To use a custom tracking domain, set it once in window.adscrushConfig — it is used by both trackLead() and trackConversion():
Or pass it directly to trackLead() — this overrides the config value for this call only:
Bare hostnames are normalized to https://; full URLs (http:// or https://) are used as-is (trailing slashes are stripped).

Deduplication

The SDK prevents duplicate leads for the same click ID. Second calls are skipped automatically. See also: Track Clicks · Track Conversions · API Reference