Home / Docs / Click tracking

Click tracking: URL format

Tracking links, Google Ads tracking templates, postbacks and pixels.

Tracking domain: app.adzvio.com. Your dashboard builds every link for you; this page explains the format.

1. Google Ads tracking template

https://app.adzvio.com/click.php?offer_id={ID}&aff_id={UID}&sub1={gclid}&force_transparent=true&redirection_url={lpurl}

Paste it in Google Ads at account, campaign or ad group level (Tracking template). {ID} is your campaign ID and {UID} your account ID. Google expands {gclid} and {lpurl}. The visitor lands on the ad's Final URL with click_id added. See Google Ads tracking for the full rules.

https://app.adzvio.com/click.php?offer_id={ID}&aff_id={UID}&pub_id={PUB}&p1={your_click_id}&source={sub_id}
ParameterMeaning
pub_idPublisher ID, so the click is credited to them.
p1 to p5Your sub IDs. p1 is usually the publisher's own click ID and is sent back in their postback.
sourceSub-source, such as a channel or placement.

These links go to the campaign URL set in the dashboard. Macros in that URL are replaced: {click_id}, {pub_id}, {campaign_id}, {p1}–{p5}, {source}, {gclid}. If the campaign URL has no {click_id}, we add click_id=… at the end. Each macro needs a parameter name, for example sub1={p1}.

3. Conversion postback (server to server)

https://app.adzvio.com/postback.php?token=YOUR_TOKEN&click_id={click_id}&payout={payout}&txn_id={order_id}

Optional: sale_amount, status (approved, pending, rejected), currency, goal. Your token is in the dashboard under Postback & pixel. A repeated txn_id returns DUPLICATE.

Coupon conversions

https://app.adzvio.com/postback.php?token=YOUR_TOKEN&campaign_id={ID}&coupon={code}&txn_id={order_id}

4. Pixel

<img src="https://app.adzvio.com/pixel.php?campaign_id={ID}&txn_id={order_id}" width="1" height="1" alt="">

Place it on the thank-you page. It matches the visitor to their click with a first-party cookie on app.adzvio.com.

5. Validation and errors

CaseResponse
Google Ads link with invalid or unsafe redirection_urlHTTP 400
Unknown campaign on a normal linkHTTP 404
Paused campaign, full cap, unapproved publisher, blocked traffic302 to your fallback URL, or 403/404 if none is set
Postback with wrong token / unknown click401 / 404
Questions about integration? Email support@adzvio.com.