Your X (formerly Twitter) pixel ID is found in Ads Manager under Tools, then Event Manager, then your pixel name, where it shows as a string of numbers. You need it to set up conversion tracking or hand to a developer. If tracking still fails after installing it, the usual causes are a wrong placement, an ad blocker, or the pixel firing before consent is given.
What the X pixel ID is
The X (formerly Twitter) pixel ID is a unique string of numbers tied to your advertising account. It is not a password and it is not secret, but it is specific to you, so copying someone else's will not work.
You need this ID to install the X pixel on your website. Without it, X cannot match website visits and conversions back to your ad campaigns, which means your reporting will be inaccurate or empty.
If you run ads without a working pixel, you are spending money with no clear way to measure what that spend did. That is the main reason to get this right before you launch anything.
Where to find your pixel ID
Log into X Ads Manager. From the main menu, go to Tools, then select Event Manager. This is where X keeps everything related to tracking and conversions.
Inside Event Manager, click on the pixel you have already created, or create a new one if this is your first time. Your pixel ID will be displayed near the top of the page, usually alongside the installation code.
- Open X Ads Manager
- Click Tools in the top menu
- Select Event Manager
- Choose your pixel or create a new one
- Copy the pixel ID shown on screen
Keep this ID somewhere you can find it again, such as a shared document with your developer or marketing team.
Installing the pixel correctly
Once you have the ID, you have two main ways to install it. You can paste the base code directly into the header of every page on your site, or you can use a tag manager such as Google Tag Manager.
If you paste the code manually, it needs to sit between the opening head tags of your website, on every page you want tracked. Missing pages is one of the most common reasons tracking looks broken later.
Using a tag manager is usually cleaner. You create a custom HTML tag, paste in the pixel code with your ID included, and set it to fire on all pages. This avoids touching your site code directly every time something changes.
Fixing a pixel that is not firing
If your pixel ID is correct but data is not showing in Event Manager, start with the basics. Check that the code is live on your site by viewing the page source, not just the file you think you uploaded.
A common cause is the pixel sitting inside a draft or staging version of the site that never went live. Another is a caching plugin serving an old version of the page to visitors and to you.
Ad blockers and browser privacy settings also stop pixels from firing for a portion of visitors. This is normal and expected. You will never see one hundred per cent of traffic reflected in pixel data, and no fix will change that completely.
Consent and tracking rules
If your site uses a cookie consent banner, the pixel may be blocked until a visitor accepts tracking cookies. This is correct behaviour under data protection rules, not a fault.
Check how your consent tool is configured. Some block all scripts until consent is given, others allow certain tags through by default. You need to know which category your X pixel falls into.
If you are unsure whether your setup meets current UK data protection requirements, that is a legal question, not a technical one, and worth checking with someone qualified rather than guessing.
Checking that events are set up
Having the pixel installed is only the first step. You also need specific events set up, such as page views, sign ups, or purchases, depending on what you want to measure.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
Each event needs its own piece of code added to the relevant page, for example on a thank you page after a purchase. The base pixel alone will not automatically track these actions.
In Event Manager, you can use the test events tool to check whether a specific event is firing correctly before you rely on it for live campaigns. This saves you from launching ads based on broken data.
When the pixel ID will not update or save
Sometimes the problem is not the website at all, it is the Ads Manager interface. If changes to your pixel settings are not saving, try clearing your browser cache or using a different browser entirely.
Browser extensions, particularly ad blockers and privacy tools, can interfere with the Ads Manager dashboard itself, not just your website's pixel. Disable them temporarily while you work in Event Manager.
If none of this works, this is a platform issue on X's side, and there is no workaround. You will need to wait or contact X support directly, since there is no setting on your end that can fix a backend problem.
A few things worth saying plainly
There is no way to recover historical data if your pixel was not installed during a past campaign. If it was not tracking then, that data is gone, and no fix now will bring it back.
You also cannot merge two different pixel IDs into one. If you have ended up with duplicate pixels by accident, you need to choose one to keep and reinstall it, rather than trying to combine them.
Finally, X does not currently offer a way to see individual user-level identity data through the pixel beyond aggregated reporting. If someone tells you otherwise, be cautious, because that is not how the tool works.
Frequently asked questions
Where exactly is my X pixel ID located?
It is inside X Ads Manager, under Tools, then Event Manager. Click on your pixel name and the ID appears near the top of the page along with the installation code you need for your website.
Why is my pixel installed but showing no data?
Check the page source to confirm the code is live, not just saved in a draft. Caching plugins, consent banners blocking scripts, and ad blockers are the most common reasons data does not appear.
Can I use the same pixel ID across multiple websites?
Yes, you can install the same pixel ID on more than one site if you want combined tracking. Just be aware this will mix data from both sites together in your reporting, which is not always useful.
Can I recover data from before the pixel was installed?
No. If the pixel was not installed and firing correctly during that period, there is no historical data to recover. This cannot be fixed retroactively, so it is worth checking installation early in any campaign.
More X and Twitter fixes: the X help guide.