Who this is for: Media buyers and ad ops teams using HeavySet’s server-side Facebook Conversions API (CAPI) integration.
The Problem
Facebook Events Manager includes a Test Events tab that shows server-side events in real time, but only when the request includes a test_event_code.
Without that code, events won’t appear in the live view, making it difficult to confirm that Lead and Schedule events are firing correctly during a test submission.
The Fix
HeavySet now supports a test mode flag.
Append testEvent=true to any landing page URL, and all CAPI events generated from that session will automatically route through Facebook’s Test Events tool.
Example:
https://yourlandingpage.com/book?testEvent=trueThat’s it. Share that URL with your team for testing.
Production traffic — URLs without the parameter — is completely unaffected.
How to Validate
- Open Facebook Events Manager.
- Select your Pixel.
- Go to the Test Events tab.
- Copy your
test_event_codefrom that screen. It will look something likeTEST12345. - Enter the code in the Test Events tool so Facebook knows to listen for it.
- Load your landing page with
?testEvent=truein the URL. - Submit a test lead and/or book a test appointment.
- Watch for the Lead and Schedule events to appear in the live view within seconds.
Notes
- The
testEvent=trueparameter is stripped from theeventSourceUrlsent to Facebook. It will not pollute your event data or appear in reports. - This works for all three event types: ViewContent, Lead, and Schedule.
- If the parameter appears anywhere in the page URL, including after a redirect, test mode will activate for that session.
Comments
0 comments
Please sign in to leave a comment.