Getting Started
How It Works

How Convultra Works

Convultra uses a multi-layered approach to achieve 95-98% conversion tracking accuracy. This page explains the data flow and key concepts.

Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                           Your Website                                   โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”‚
โ”‚  โ”‚  Convultra SDK (ultra.js)                                        โ”‚   โ”‚
โ”‚  โ”‚  โ€ข Captures click IDs (gclid, fbclid, msclkid)                  โ”‚   โ”‚
โ”‚  โ”‚  โ€ข Stores in localStorage (90-day retention)                     โ”‚   โ”‚
โ”‚  โ”‚  โ€ข Tracks sessions and page views                                โ”‚   โ”‚
โ”‚  โ”‚  โ€ข Sends conversions to Convultra                                โ”‚   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
                                   โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                         Convultra Platform                              โ”‚
โ”‚                                                                          โ”‚
โ”‚  โ€ข Receives and validates conversion events                             โ”‚
โ”‚  โ€ข Deduplicates across all sources                                      โ”‚
โ”‚  โ€ข Enriches with stored click history                                   โ”‚
โ”‚  โ€ข Forwards to connected ad platforms                                   โ”‚
โ”‚  โ€ข Powers real-time analytics dashboard                                 โ”‚
โ”‚                                                                          โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
                                   โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        Ad Platforms                                      โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”       โ”‚
โ”‚  โ”‚ Google Ads  โ”‚ โ”‚  Meta Ads   โ”‚ โ”‚ Microsoft   โ”‚ โ”‚  TikTok     โ”‚       โ”‚
โ”‚  โ”‚ Offline API โ”‚ โ”‚ CAPI        โ”‚ โ”‚ Offline API โ”‚ โ”‚ Events API  โ”‚       โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Phase 1: Capture

When a user lands on your website, the SDK immediately captures:

Click IDs

// Automatically captured from URL parameters
{
  gclid: 'Cj0KCQjw...',     // Google Ads
  fbclid: 'IwAR3x...',       // Meta/Facebook Ads
  msclkid: 'abc123...',      // Microsoft Ads
  ttclid: 'xyz789...',       // TikTok Ads
  twclid: '...',             // Twitter Ads
  li_fat_id: '...'           // LinkedIn Ads
}

UTM Parameters

{
  utm_source: 'google',
  utm_medium: 'cpc',
  utm_campaign: 'summer-sale',
  utm_term: 'best widgets',
  utm_content: 'ad-variant-a'
}

Session Data

{
  session_id: 'ses_1234567890_abc',
  landing_page: 'https://yoursite.com/?gclid=...',
  referrer: 'https://google.com/search?q=...',
  start_time: 1704067200000
}

Phase 2: Store

All captured data is stored in localStorage with 90-day retention:

// Click history - stores all paid clicks with full context
cvl_click_history: [
  {
    id: 'clk_1704067200000_abc123',
    key: 'gclid',
    platform: 'google_ads',
    click_id: 'Cj0KCQjw...',
    captured_at: '2024-01-01T12:00:00Z',
    landing_page: 'https://yoursite.com/pricing',
    utm_source: 'google',
    utm_campaign: 'summer-sale'
  }
]
 
// Session data - current user session
cvl_session: {
  id: 'ses_1704067200000_xyz',
  startTime: 1704067200000,
  pageViews: 5,
  gclid: 'Cj0KCQjw...',
  landingPage: 'https://yoursite.com/pricing'
}

Why localStorage?

Unlike cookies which are limited to 7 days on iOS Safari, localStorage persists for 90+ days. This means we can attribute conversions even when users return weeks after clicking an ad.


Phase 3: Forward

When a conversion occurs, the SDK sends the event to Convultra with all relevant attribution data:

// What gets sent on conversion
{
  event_type: 'purchase',
  
  // Conversion data
  value: 99.99,
  currency: 'USD',
  order_id: 'ORDER-12345',
  
  // Attribution (from stored click history)
  gclid: 'Cj0KCQjw...',
  
  // User data for Enhanced Conversions (hashed)
  user_data: {
    email: 'hashed_email',
    phone: 'hashed_phone'
  }
}

Convultra then:

  1. Validates and deduplicates the event
  2. Enriches with any additional stored data
  3. Formats for each connected ad platform
  4. Forwards via server-side APIs

Example: Google Ads format:

{
  conversionAction: 'customers/123/conversionActions/456',
  gclid: 'Cj0KCQjw...',
  conversionDateTime: '2024-01-15 12:30:45-05:00',
  conversionValue: 99.99,
  currencyCode: 'USD',
  orderId: 'ORDER-12345',
  userIdentifiers: [
    { hashedEmail: 'sha256_hash' },
    { hashedPhoneNumber: 'sha256_hash' }
  ]
}

Example: Meta Conversions API format:

{
  event_name: 'Purchase',
  event_time: 1704067200,
  action_source: 'website',
  user_data: {
    em: ['sha256_email_hash'],
    ph: ['sha256_phone_hash'],
    fbc: 'fb.1.1704067200.IwAR3x...',
    fbp: 'fb.1.1704067200.abc123'
  },
  custom_data: {
    value: 99.99,
    currency: 'USD',
    order_id: 'ORDER-12345'
  }
}

Phase 4: Recover

Convultra tracks which conversions would have been lost by traditional tracking:

Recovery Classification

A conversion is marked as "recovered" when:

ConditionWhy It Would Be Lost
iOS Safari + click age > 7 daysSafari ITP deletes cookies after 7 days
Click age > 30 daysStandard cookies expire
Platform cookie missingUser cleared cookies or uses private browsing
Ad blocker detectedPlatform pixel was blocked

What You See in Dashboard

  • Recovery Rate - Percentage of conversions that would have been lost
  • Tracking Uplift - How much more you're tracking vs. platform pixels alone
  • Recovered Revenue - Total value of recovered conversions

Deduplication

Convultra prevents duplicate conversions through a multi-tier system:

Priority 1: Conversion ID (24-hour window)
โ”œโ”€โ”€ orderId, leadId, signupId, subscriptionId
โ””โ”€โ”€ Same ID = duplicate blocked

Priority 2: Click ID + Value (1-hour window)
โ”œโ”€โ”€ gclid/fbclid/msclkid + event_type + value
โ””โ”€โ”€ Same combination = duplicate blocked

Priority 3: Event ID (5-minute window)
โ”œโ”€โ”€ SDK-generated unique event ID
โ””โ”€โ”€ Same ID = duplicate blocked (page refresh protection)

Data Flow Summary

User clicks ad โ†’ Landing page with gclid
        โ”‚
        โ–ผ
SDK captures & stores click ID (localStorage, 90 days)
        โ”‚
        โ–ผ
User browses site โ†’ Page views tracked
        โ”‚
        โ–ผ
User converts โ†’ SDK sends conversion with click history
        โ”‚
        โ–ผ
Convultra processes โ†’ Dedup โ†’ Recovery classification
        โ”‚
        โ–ผ
Forwarded to ad platforms โ†’ Google Ads, Meta, Microsoft, TikTok
        โ”‚
        โ–ผ
Dashboard updates โ†’ Analytics, conversions, recovery stats

Performance

MetricValue
SDK SizeUnder 15KB gzipped
Page Load ImpactUnder 50ms
Tracking LatencyUnder 200ms
Platform ForwardingUnder 5 minutes
Dashboard UpdatesReal-time

Next Steps