When a visitor clicks a Connextify short link, scans a dynamic QR code, or enters an A/B split test, our edge router automatically appends a unique click token to your destination URL: ?cnfy_click_id=clk_.... By capturing this click ID and firing a conversion event when the visitor signs up or checks out, you can attribute revenue and conversion rates directly to specific links, campaigns, or A/B test variants.

How it works

  1. Capture: When the visitor lands on your site, read cnfy_click_id from the URL parameters.
  2. Persist: Save the click ID to a 30-day first-party cookie named _cnfy_cid (SameSite=Lax; Secure) so it survives multi-page navigation.
  3. Fire event: When a goal happens (signup, lead form submit, purchase), send the click ID to POST https://connextify.com/api/v1/analytics/convert.

Client-side tracking snippet

Add this lightweight script tag inside the <head> of all pages on your website:
<script id="connextify-sdk" src="https://connextify.com/sdk.js" async></script>
<script>
  window.connextify = window.connextify || function(){(connextify.q=connextify.q||[]).push(arguments)};
</script>
The script automatically reads incoming cnfy_click_id tokens from the URL, writes the first-party cookie, and strips the query parameter from the browser address bar for clean analytics.

Code examples

1. Lead or signup form

document.getElementById('signup-form').addEventListener('submit', async (e) => {
  e.preventDefault();

  // Run your actual signup logic...
  await submitUserRegistration();

  // Record conversion in Connextify
  window.connextify('convert', 'signup', {
    metadata: {
      plan: 'pro_trial',
      source: 'pricing_table'
    }
  });
});

2. E-commerce checkout confirmation

// On your order confirmation / thank-you page
window.connextify('convert', 'purchase', {
  value: 79.00,
  currency: 'USD',
  metadata: {
    order_id: 'ord_12345',
    coupon: 'SAVE20'
  }
});

Server-to-server tracking

If you verify payments or activate accounts asynchronously on your backend (e.g. from a Stripe webhook), you can report conversions directly from your server. Just pass the visitor’s cnfy_click_id along with their signup payload:
curl -X POST https://connextify.com/api/v1/analytics/convert \
  -H "Content-Type: application/json" \
  -d '{
    "cnfy_click_id": "clk_1234567890abcdef",
    "event_name": "purchase",
    "value": 79.00,
    "currency": "USD",
    "metadata": {
      "order_id": "ord_12345",
      "gateway": "stripe"
    }
  }'
Server-side conversion calls do not require an Authorization header. The cnfy_click_id token is cryptographically signed and maps directly to the originating short URL, campaign, and user account.

Closed-Loop CAPI Conversion Relay

When a conversion is recorded (either via the client SDK or direct API call) for a visitor who originated from a short link or dynamic QR code with Meta CAPI or TikTok Events API pixels attached, Connextify’s background workers perform an automated closed-loop relay:
  1. Click Context Lookup: The worker reads the cached click context (click_capi:${clickId}) to identify which ad pixels were present on the originating link.
  2. Server-to-Server Event Dispatch: Connextify formats and sends a server-side Purchase event directly to Meta Graph API and TikTok Events API.
  3. Deterministic Match Data: The payload includes the original click ID (fbclid converted to _fbc, ttclid), client IP address, and browser user agent.
  4. Zero-Setup Server ROAS: You receive 100% verified ad platform attribution and return on ad spend (ROAS) reporting in Meta Ads Manager and TikTok Ads Manager without configuring server-side Google Tag Manager (sGTM) containers.