Skip to main content
A landing page introduces an offer before a visitor reaches the signup or purchase page. You can use an existing website or page builder, or host a page through Metricanic. To track direct visits to your own offer without a landing, add it as an offer. Then go to Install the tracking script.

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:
  1. Open Landings and click Create.
  2. Choose External URL. Enter Name and the full HTTPS URL.
  3. Choose Country or Global. This setting controls which campaigns can use the landing. It does not filter visitors.
  4. Save the landing. In the campaign’s Rotator, add it to a Landers & Offers path with at least one offer.
  5. Keep the path, landing and offer enabled with positive weights, then save.
To upload a page instead, choose Hosted and follow Host your landing pages. Publish it before selecting it in a rotator. Editing a landing’s URL affects every campaign that uses it. Create another landing for a page version that needs its own report row.

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.
  1. Save the campaign with an active tracking domain, then open Finish.
  2. For Direct script, select the arrival page.
  3. 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.
  4. For a landing, connect offer buttons as shown below. For an offer page, skip the button setup.
  5. Use Traffic URL in your ads for Direct script. Use Tracking link for Redirect.
Install the snippet once per page. Use the same tracking domain for the script and offer links.
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:
Replace the example hostname with your tracking domain. The script connects the link to the selected offer and records the click. Parameters on the click link, such as ?button=hero, pass to the offer URL unless that URL already has those parameters.
Add data-dtp-link to the link element. Leave it empty, or use 1 if your page builder requires a value:
All marked links open the offer selected for the visit and record clicks automatically.

Verify your setup

  1. Open Traffic URL or Tracking link. Check that the page opens and a visit appears in Live Visits.
  2. If you use a landing, click an offer button. Check that the offer opens and one click appears in Live Clicks.
  3. Send a test conversion and check the result.
See Missing visits or clicks if the result differs.

When a visit is reused

For a journey such as start → 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.
The visit can continue for up to 24 hours while the browser keeps the site’s data. Test the journey and check that following site links does not add visits.

Customize the script

If a popup, quiz or page builder adds or changes offer buttons, call generateLinks() 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.

Archive an unused landing

Remove the landing from rotators that use it, then archive it. Its reports remain available. Unpublish a hosted landing before archiving it.