Why Server-Side Beats Client-Side

Traditional browser pixels fire JavaScript in the visitor's browser. This creates several failure points:

Server-side forwarding eliminates all of these issues. VSLStats captures events at the server level (plays, completions, CTA clicks, conversions) and forwards them to your chosen ad platforms using their server-to-server APIs. No browser required.

Industry benchmark: Teams switching from browser-only to server-side forwarding typically recover 15–35% of previously lost conversion signals. This directly improves ROAS reporting and ad algorithm optimization.

Connecting Meta Conversions API (CAPI)

  1. In VSLStats, go to Settings → Integrations → Meta CAPI.
  2. Enter your Meta Pixel ID (found in Meta Events Manager under your dataset).
  3. Generate a CAPI Access Token in Meta Events Manager → Settings → Conversions API → Generate access token. Paste it into VSLStats.
  4. Select which events to forward: ViewContent (play), VideoProgress (milestones), Lead (opt-in), Purchase (conversion).
  5. Enable Event Deduplication - VSLStats sends a unique event_id so Meta can deduplicate if both browser and server events fire for the same action.
  6. Click Save & Test. VSLStats will fire a test event you can verify in Meta Events Manager's Test Events tab.

Connecting Google Analytics 4 (GA4)

  1. Go to Settings → Integrations → Google Analytics.
  2. Enter your GA4 Measurement ID (format: G-XXXXXXXXXX).
  3. Generate an API Secret in GA4: Admin → Data Streams → your stream → Measurement Protocol API secrets → Create.
  4. Paste the API secret into VSLStats.
  5. Map VSLStats events to GA4 event names. Defaults: video_start, video_progress, video_complete, generate_lead, purchase.
  6. Save. Events will appear in GA4's DebugView within a few minutes during testing.

Connecting TikTok Events API

  1. Go to Settings → Integrations → TikTok.
  2. Enter your TikTok Pixel ID from TikTok Ads Manager → Assets → Events.
  3. Generate an Access Token in TikTok Ads Manager → Assets → Events → your pixel → Settings → Generate Access Token.
  4. Paste the token into VSLStats and select which events to forward.
  5. Save and use the TikTok Event Tester to verify events are arriving.

Testing Your Setup

After connecting each platform, verify events are flowing correctly:

Common issue: If you see duplicate events in your ad platform, ensure Event Deduplication is enabled in VSLStats. Both browser and server pixels may fire for the same action - deduplication uses the shared event_id to collapse them into one.

Privacy & Compliance

Server-side forwarding sends hashed user identifiers (email, phone, IP) to ad platforms for matching. Ensure your privacy policy discloses this data sharing. VSLStats automatically hashes all PII using SHA-256 before transmission - raw email addresses and phone numbers are never sent in plaintext.

For GDPR-compliant setups, use VSLStats' Consent Gate feature to pause event forwarding until the visitor accepts your cookie/tracking consent banner.