Skip to Content
Tracking SetupReport Conversions With Direct Offer Tracking

Report Conversions With Direct Offer Tracking

Use this guide when a campaign path uses Transition to offer: Direct and the offer has Direct Tracking switched on. By the end, your confirmation page will report each sale to Nitoriq and the conversion will appear in Event Logs.

In this setup the visitor goes straight from your lander to your offer page. Nothing passes through a Nitoriq redirect, so the offer page is never given a NIQ Click ID and the postback URL has nothing to substitute. The page reports the sale itself instead.

Preparation

Before you start

  • confirm the path uses Transition to offer: Direct
  • confirm the offer has Direct Tracking switched on
  • have edit access to every page a buyer passes through
  • know whether your confirmation page is on the same domain as the offer page
  • keep Logs > Event Logs open to validate the result

How The Page Knows Which Click To Credit

When Nitoriq hands a visitor to a direct-tracked offer, it adds a signed credential to the offer URL as niq_tid. This is not a click ID. It is a short-lived token that can do one thing, report one conversion for one click, and it is checked against the offer it was issued for.

The Nitoriq script on the offer page takes that credential out of the URL, stores it for the rest of the browser tab, and removes it from the address bar. Later pages in the same funnel read it back from storage, which is why your checkout and confirmation pages do not need it in their own URLs.

Report conversions from your offer pages

Add the offer script to every page in the funnel

Open Assets > Offers, open the offer, and copy its Nitoriq script.

Place it on every page a buyer passes through: the offer page, the cart or checkout, and the page that confirms the sale.

A page without the script cannot read the stored credential. A confirmation page that is missing it will report nothing.

Copy the conversion script from the campaign

Open the campaign, go to the Tracking step, and copy the value shown as Conversion Script (direct offer).

Nitoriq shows this form of the script only when the campaign actually hands visitors to a direct-tracked offer. If you see Conversion Tracking Script with a REPLACE_CLICK_ID value instead, the path or the offer is not set to direct, and you should fix that before continuing.

Place the script on the page that confirms the sale

Add the snippet below the offer script, and replace the two values with the real order total and your own order ID.

<!-- Nitoriq: report the sale. Place on your confirmation page, after the offer script. --> <script> NitoriqDirect.reportConversion({ revenue: 0, // order total, e.g. 49.99 txid: "", // your order id, so a refresh cannot count twice }); </script>

Send txid. It is what stops a buyer who refreshes the confirmation page from being counted twice.

You can also send ct to record a custom conversion type, and params or conversionParams for anything else you want on the event.

Carry the credential across a domain or tab boundary

The credential is stored per browser tab and per domain. Skip this step if your whole funnel runs on one domain in one tab.

If the buyer moves to a hosted payment page, a separate checkout subdomain, or a new tab, read niq_tid on the offer page and append it to the link or form that sends them onward:

https://checkout.example.com/pay?niq_tid=THE_VALUE

The Nitoriq script on the receiving page picks it up from the URL and stores it under that domain.

Trigger one real conversion and confirm it arrived

Complete one purchase through the funnel, then open Logs > Event Logs and find the conversion event.

Confirm it carries the revenue and order ID you sent, and that it belongs to the campaign you tested.

When Nothing Arrives

Open your browser console on the confirmation page first. When a page reports a sale it cannot attribute, Nitoriq says so there and names the likely cause.

You can also check the page yourself at any point:

NitoriqDirect.getSession(); // null means this page has no identity to report with

Then work through these in order:

  • the confirmation page is missing the offer’s Nitoriq script
  • the buyer crossed a domain or tab boundary and niq_tid was not carried
  • the offer does not have Direct Tracking switched on, so no credential was ever issued
  • the conversion happened after the attribution window closed
Validation

Direct offer conversion review

  • the offer script is present on every page in the funnel
  • the campaign Tracking step shows Conversion Script (direct offer)
  • the confirmation page calls reportConversion with a real revenue and order ID
  • niq_tid is carried across any domain or tab boundary in the funnel
  • Event Logs show a conversion row for the tested campaign
  • the browser console reports no missing identity on the confirmation page

Was this page helpful?