Decide what you want to measure
Use Landers & Offers to measure both visits to a landing and clicks on its offer buttons. Use Offers only when visitors go straight to the offer. A click on an offer button is separate from a conversion. To record a lead or sale, connect an incoming event.Add the page to your campaign
For a page hosted elsewhere:- Open Landings and click Create.
- Choose External URL. Enter Name and the full HTTPS URL.
- Choose Country or Global. This setting controls which campaigns can use the landing. It does not filter visitors.
- Save the landing. In the campaign’s Rotator, add it to a Landers & Offers path with at least one offer.
- Keep the path, landing and offer enabled with positive weights, then save.
Install the tracking script
Install the script on an external landing or on your own offer page in an Offers only path. It records direct arrivals and connects landing buttons. On a redirect landing, it continues the visit from the tracking link. For a Hosted landing, turn on Add Direct Tracking, select a Tracking domain, and publish. Skip the manual installation below.- Save the campaign with an active tracking domain, then open Finish.
- For Direct script, select the arrival page.
- Copy the complete Include in <head> snippet into the page’s
<head>. Keep its meta tag. Place the snippet before scripts that change the page address. - For a landing, connect offer buttons as shown below. For an offer page, skip the button setup.
- Use Traffic URL in your ads for Direct script. Use Tracking link for Redirect.
Allow the tracking domain in a Content Security Policy
Allow the tracking domain in a Content Security Policy
If your page uses a Content Security Policy, allow your tracking domain in
connect-src. The script needs this permission for browser checks and events.Connect an offer button
For Direct script, copy CTA click link from Finish. For Redirect, use the click URL shown in Finish. Put it in your page’s HTML:?button=hero, pass to the offer URL unless that URL already has those parameters.
Mark a link with data-dtp-link
Use an attribute in a page builder
Use an attribute in a page builder
Add All marked links open the offer selected for the visit and record clicks automatically.
data-dtp-link to the link element. Leave it empty, or use 1 if your page builder requires a value:Verify your setup
- Open Traffic URL or Tracking link. Check that the page opens and a visit appears in Live Visits.
- If you use a landing, click an offer button. Check that the offer opens and one click appears in Live Clicks.
- Send a test conversion and check the result.
When a visit is reused
For a journey such asstart → quiz → results → offer:
- Install the same script on the first page and each page with offer buttons. Other intermediate pages need no script or separate landing records.
- Keep those pages on the same website, with the same protocol, hostname and port.
- Use ordinary site links between pages. Use Traffic URL only for campaign entry, because opening it starts a new visit.
Customize the script
If a popup, quiz or page builder adds or changes offer buttons, callgenerateLinks() after the update. See Connect buttons added later.
Tracking script functions also let you pass the click ID to a form, build custom buttons and send events.
Use Landing protection to require a campaign link before opening a redirect landing. Leave it off for the first page of Direct script.