Skip to content
FunnelGuard

Fix guide by FunnelsGuard

X (Twitter) conversion event ID wrong: how to find and fix it

TRK-227Medium impactDetectedBy FunnelGuardPublished Updated
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.

Example X event code (IDs are placeholders)javascript
// 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.

What goes wrong
  • 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.
Where the conversion gets lost
  1. Click X adVisitor lands on your site
  2. Submit formLead or purchase completes
  3. Event hit sentWrong event ID in twq call
  4. Conversion in X AdsNot matched, not counted
  5. OptimisationNo signal to learn from

The visitor converts, but X cannot match the event ID, so nothing is credited.

Reported vs real conversionsExample numbers
Reported vs real conversions (example)Real leads (example): 40 conversions; Reported in X Ads (example): 3 conversions01531403Real leads (example)Reported in X Ads (ex…conversions

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

Compare the ID on your site with the ID in X
  1. 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.

  2. Open your conversion page

    Go through the real journey in a private browser window, for example submit a test lead. Avoid clicking real ads.

  3. Watch the network requests

    Open browser DevTools, go to the Network tab and filter for t.co or ads-twitter.com. Look for the event request after the action and read the event ID it sends.

  4. 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.

Update the event ID by platform
  1. 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.

  2. Paste the correct ID

    Replace the old value with the ID copied from Events Manager. Check for spaces before or after it.

  3. Check the trigger

    Make sure the tag fires only on the conversion step, such as the thank-you page or a form success event.

  4. Preview and publish

    Use Preview mode to confirm the tag fires with the new ID, then Submit and publish.

How to confirm it's fixed

Confirm the event is matched
  1. Repeat the test journey

    Submit a test lead or reach the thank-you page in a private window.

  2. Check the network request

    In DevTools, confirm the event request now carries the correct event ID.

  3. 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.

  4. 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

Habits that stop it coming back
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.