On this page
What this issue is
The X pixel (also called the X Pixel or Twitter base code) has two parts. The base code loads once on every page and holds your pixel ID. Then an event code runs on the action you want to count, such as a lead or purchase. The event code carries an event ID, a short code that tells X which conversion event this hit belongs to.
The problem happens when that event ID is wrong. It may be a typo, an ID copied from an old or deleted event, an ID from another account, or the pixel ID pasted where the event ID should go. The tag still fires, so it looks fine on the page, but X cannot link the hit to your conversion.
// Base code (on every page) contains your pixel ID
twq('config', 'o1abc');
// Event code (on the conversion step) contains the event ID
twq('event', 'tw-o1abc-o2xyz', {
value: '49.00',
currency: 'USD'
});Why it costs you leads or sales
If X cannot match the hit, the conversion is not counted. Your campaign reports show few or no results even when people are buying or sending forms. That hurts in three ways.
- Reports undercount conversions, so good campaigns look like they fail.
- Conversion-based bidding and optimisation learn from missing data and spend less efficiently.
- You may pause ads that were working, or fund ones that were not.
- Audiences built from converters stay empty or small.
- Click X adVisitor lands on your site
- Submit formLead or purchase completes
- Event hit sentWrong event ID in twq call
- Conversion in X AdsNot matched, not counted
- OptimisationNo signal to learn from
The visitor converts, but X cannot match the event ID, so nothing is credited.
Example: 40 real leads in a week, but only 3 are reported while the event ID is wrong. Numbers are illustrative.
How to check if your site has it
Find the correct event ID
In X Ads Manager open Tools, then Events Manager. Select your pixel and open the conversion event. Copy its event ID from the event code snippet.
Open your conversion page
Go through the real journey in a private browser window, for example submit a test lead. Avoid clicking real ads.
Watch the network requests
Open browser DevTools, go to the Network tab and filter for
t.coorads-twitter.com. Look for the event request after the action and read the event ID it sends.Compare the two
If the ID differs by even one character, or is the pixel ID, you have the issue. Also check Events Manager: an event with no recent activity despite real conversions is a warning sign.
How to fix it
The fix is always the same: replace the wrong ID with the correct one copied from Events Manager. Where you do that depends on how the pixel was added.
Open the X tag
In Tags, open your X conversion tag. If you use a Custom HTML tag, find the
twq('event', ...)line. If you use a template, find the event ID field.Paste the correct ID
Replace the old value with the ID copied from Events Manager. Check for spaces before or after it.
Check the trigger
Make sure the tag fires only on the conversion step, such as the thank-you page or a form success event.
Preview and publish
Use Preview mode to confirm the tag fires with the new ID, then Submit and publish.
Find where the code lives
It may be in a plugin that adds header or footer scripts, in your theme, or in a form plugin's success script. Search for
twq(in these places.Edit the event call
Replace the wrong ID in
twq('event', ...)with the correct one.Clear caches
Purge your caching plugin and CDN so visitors get the updated script.
Open customer events
In Settings, then Customer events, open your X pixel if you added it as a custom pixel.
Fix the event call
Update the ID in the purchase or lead event code to the correct one from Events Manager.
Check app settings
If an app or channel adds the pixel, check its event ID fields instead and save.
Open custom code
Check Site settings, then Custom code, and the page-level custom code of your thank-you page.
Replace the ID
Edit the
twq('event', ...)line with the correct event ID, then publish the site.
Search your codebase
Search for
twq('event'and any old event IDs.Use the right ID
Update each call to the ID from Events Manager and deploy. Keep the ID in one config value if you have several calls.
How to confirm it's fixed
Repeat the test journey
Submit a test lead or reach the thank-you page in a private window.
Check the network request
In DevTools, confirm the event request now carries the correct event ID.
Check Events Manager
Open the event in X Events Manager. Its status and last-received time should update. This can take a while to show, so allow time.
Watch real conversions
Over the next days, compare conversions in X Ads with your CRM or orders. They should be much closer.
How to prevent it happening again
- Keep a list of your pixel ID and each event ID in one shared document.
- Copy IDs from Events Manager; never retype them.
- Re-test after you rebuild a form, change theme or edit the tag manager container.
- Do not delete or recreate events in X without updating the site code.
- Give each ID one owner so changes are not made in several places.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real customer journey on a schedule, such as a lead form or checkout, and checks the tracking hits sent to ad platforms including X. It looks at the hit sent at the conversion step and flags it when the X event does not look right. If the check fails, it is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.
Test traffic is marked (utm_source=funnelguard, fg_test=1) and never clicks real ads or enters real card details. The Free plan covers 1 site and 2 journeys with daily checks, no card needed. Paid plans have a 3-day free trial.
Questions people ask
Why is my X ads conversion not tracking?
The most common cause is a wrong event ID in your twq('event', ...) code, so X cannot match the hit to your conversion event. Other causes are the base pixel missing on the page or the tag firing on the wrong step. Compare the ID in your code with the one in X Events Manager.
Where do I find my X conversion event ID?
Go to X Ads Manager, open Tools, then Events Manager, and select your pixel. Open the conversion event and copy the ID from its event code snippet. Use that exact value in your tag.
What is the difference between the X pixel ID and the event ID?
The pixel ID identifies your whole pixel and goes in the twq('config', ...) base code. The event ID identifies one conversion event and goes in twq('event', ...). Pasting one where the other belongs breaks matching.
How do I test the X pixel event ID?
Complete the conversion in a private browser window, open DevTools and the Network tab, and look for the X event request. Check that the event ID in it matches Events Manager. Then check the event's last-received time in X.
Why does my X event show no activity in Events Manager?
The tag may not fire at all, may fire with the wrong event ID, or may be blocked by consent settings or an ad blocker in your test. Check the network request first to see which ID is sent.
Can a wrong event ID affect my X ad optimisation?
Yes. If conversions are not matched, X has no signal to optimise toward, and your reports undercount results. That can lead to wasted spend or pausing ads that work.
Can FunnelGuard detect a wrong X event ID?
Yes. FunnelGuard runs your real journey on a schedule, checks the X tracking hit at the conversion step, and alerts you with a screenshot and a likely cause if it looks wrong.
Related issues
- TRK-201TikTok Pixel missingFix guide
- TRK-204TikTok event fires twiceFix guide
- TRK-206TikTok Events API dedup event_id mismatchFix guide
- TRK-203TikTok SubmitForm / CompletePayment missing on conversionFix guide
- TRK-224Snapchat Pixel missing or wrong IDFix guide
- TRK-225Snapchat PURCHASE / SIGN_UP event missingFix guide