Conversion Tracking
Conversion tracking lets you measure the actions visitors take on your site after clicking a Wortise ad — purchases, sign-ups, or any custom event you care about.
This page covers the standard JavaScript tag setup, alternative integration methods (image pixel and server-to-server), and the cookie used to attribute conversions.
Quick Start
Section titled “Quick Start”-
Add the global snippet to ALL pages
Place this snippet in the
<head>or at the top of the<body>on every page of your website:<script async src="https://cdn.resources.wortise.com/sdk/wtag.js"></script><script>window.wDataLayer = window.wDataLayer || [];function wtag(){wDataLayer.push(arguments);}wtag('config');</script>This does two things:
- Loads the tracking script asynchronously (non-blocking).
- When a visitor arrives via a Wortise ad click, captures the click ID (
wclid) from the URL and stores it in a first-party cookie.
-
Track conversions
On the page where a conversion happens (e.g., order confirmation, sign-up thank-you page), add:
<script>wtag('event', 'conversion', {type: 'purchase',value: 29.99});</script>Parameter Type Required Description typestring No Conversion type (e.g. purchase) valuenumber No Monetary value of the conversion
How It Works
Section titled “How It Works”- A user clicks a Wortise ad and is redirected to your site with a
?wclid=xxxparameter in the URL. - The SDK detects this parameter and stores it in a
_wclfirst-party cookie (30-day expiry, scoped to your root domain). - When the user completes a conversion, the SDK reads the cookie and sends a request to the Wortise conversion endpoint.
- The cookie works across subdomains (a click on
www.example.comis tracked oncheckout.example.com).
Alternative Integration Methods
Section titled “Alternative Integration Methods”Image pixel
Section titled “Image pixel”For simple tracking without JavaScript:
<img src="https://delivery.wortise.com/log/conversion?wclid=CLICK_ID&type=purchase&value=9.99" width="1" height="1" style="display:none" />Replace CLICK_ID with the wclid value from the URL.
Server-to-server (S2S)
Section titled “Server-to-server (S2S)”Your backend can call the conversion endpoint directly:
GET https://delivery.wortise.com/log/conversion?wclid=CLICK_ID&type=purchase&value=9.99Cookie Details
Section titled “Cookie Details”| Property | Value |
|---|---|
| Name | _wcl |
| Expiry | 30 days |
| Domain | Root domain (e.g. .example.com) |
| Path | / |
| SameSite | Lax |
© 2026 Wortise. All rights reserved.