Decide what you want to measure
Suppose 1,000 people visit a comparison page and 200 press Continue. The campaign has 1,000 visits and 200 tracked offer clicks, giving that page a 20% CTR. A later sale is a separate conversion event. Connecting the CTA is what makes that middle step measurable. Use a Landers & Offers path for this flow. If you send visitors straight to an offer, use Offers only instead. You do not need to create a dummy landing to record a visit.Add the page to your campaign
- Open Landings and click Create.
- Enter a recognizable Name and the full HTTPS URL of your page.
- Choose Country or Global for asset compatibility. This field does not block visitors by location.
- In the campaign’s Rotator, select the landing in a Landers & Offers path and add at least one offer.
- Keep the path, landing, and offer enabled with positive weights, then save.
Connect the page and its buttons
Direct Script Mode
Visitors open the page before reaching Metricanic. The tracking script registers their visit, receives the selected offer, and connects CTA links to it. You can identify those links by their tracker/click URL or by adding the data-dtp-link attribute.
- Select Direct Script Mode in the campaign and save.
- Open Finish and select the arrival page.
- Copy Include in <head> into the end of the page’s
<head>. Keep the generated attributes and any accompanying meta tag. - Copy CTA click link into the buttons that lead to the offer, or mark the links with
data-dtp-link. - Use Traffic URL as the destination in the traffic source.
302 Redirect Mode
Metricanic records the visit before sending the visitor to the landing. A CTA such ashttps://YOUR_TRACKING_DOMAIN/click then uses the existing visit context to reach the selected offer.
You can also install the landing script below. It reads valid context carried from the redirect and prepares the CTA without relying only on cookies on the tracking domain. Keep the campaign parameters added to the arrival URL intact until the script has loaded.
The script reuses a visit when it can recover valid context for that campaign and page. This is not an unconditional promise that every reload is deduplicated. If context has been cleared or expired, a new visit may be registered.
Script for a redirect landing, or a manual installation
Script for a redirect landing, or a manual installation
For a direct campaign, prefer the generated snippet in Finish. For a redirect landing, replace the tracking domain and campaign ID below with the values from its Tracking link. The campaign ID is the identifier after the domain in that link.Place it at the end of
<head>. Keep its normal loading order and do not add async or defer. If the page URL contains cmpid, that value takes precedence over data-campaign-id. Keep both aligned when reusing a page.What belongs on a CTA
Set the button’s link to the tracker URL, using your actual domain:Mark a link with data-dtp-link
Usedata-dtp-link when you want the script to recognize an offer button by an HTML attribute instead of a /click URL. Install the campaign’s tracking script as described above, then add the attribute to the <a> element:
data-dtp-link as the attribute name. Leave its value empty, or use 1 if the builder requires a value. Check that the builder adds it to the actual link.
Once the visit and page elements are ready, the script replaces href with the selected offer URL and connects click reporting. No separate onclick code is needed. In this example, # is only a placeholder. If the script cannot finish setting up the visit, this link will not reach the offer.
The attribute marks a link for processing. Its value does not choose an offer or an offer number. All ordinary CTA links on the page use the offer selected for that visit, whether they were identified by /click or data-dtp-link.
Use this on a landing page in a Landers & Offers path. The script does not generate offer links on a page identified as the offer itself. A link added after the initial scan needs another scan, as shown below.
Verify the whole journey
- Enter through Tracking link for redirect tracking or Traffic URL for direct tracking. Opening the landing alone can skip required context.
- Check that a new visit appears in the campaign report for the correct date and timezone. Allow for processing before refreshing.
- Inspect the prepared CTA. For
data-dtp-link, confirm thathrefnow contains the selected offer URL instead of#. Use a normal left click and check both the reached offer and the report’s Clicks count. - Send the test conversion using Incoming events. Opening an offer alone does not record a conversion.