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: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 totrack.adscrush.com. To use a custom tracking
domain, set it once in window.adscrushConfig — it is used by both
trackLead() and trackConversion():
trackLead() — this overrides the config value for this
call only:
https://; full URLs (http:// or https://)
are used as-is (trailing slashes are stripped).
