virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-24

X Ads revenue tracking: see which campaign brings paying customers

By Devendra Variya, co-founder of Virling. Published 2026-11-24.

X Ads revenue tracking is about telling a paid click from the many free ones that reach you through X, and following it to a payment. Promote a post whose website URL carries utm_source=x, utm_medium=paid_social and a utm_campaign, run the Virling script on the landing page, and let checkout carry the visitor ID. Clicks with that medium land in Paid, and each payment they lead to shows up under the campaign name. Without the tag, an ad click looks like a click on any other post: the referrer is t.co at best, and the visit is Social or Direct.

Start free trial

Step 1: tag the ad

Put the tags in the website URL of the ad, with your own campaign name:

https://example.com/pricing?utm_source=x&utm_medium=paid_social&utm_campaign=spring-sale

  • Tag the full URL. In its announcement of a third-party click tag, X lists Google Analytics UTM parameters as an example of parameters added to the destination URL for tracking (source: X Developers, CM360 Click Tag).
  • Type the campaign name. We found no list of placeholder values for campaign names or IDs in X’s Ads API docs, so do not copy the braces from another platform. A typed name needs no placeholder.
  • Link straight to the page. X says not to use redirects in your URLs, because they strip its click ID (source: X, Conversion tracking for websites). A redirect can drop your UTM tags too.
  • Get it right before launch. X’s policy says you may not change the end destination or landing page of a URL after you have promoted it (source: X, URL requirements for advertising). Open the tagged URL yourself first.
  • One spelling per campaign. spring-sale and Spring_Sale are separate rows. You can add utm_content for each ad, which Virling stores with the pageview, but reports group by campaign.

Build the URL with the free UTM builder and paste it into the post.

What a t.co referrer tells you without tags

X says that links shared on X are shortened to a t.co link, and that you cannot opt out (source: X, About X’s link service). A click in a browser can therefore arrive with t.co as the referrer. That names X and nothing more: not the post, not the campaign, and not whether you paid for it. Your tags are part of the destination URL, so they are still there when the short link opens your page.

Links opened inside an app often arrive with no referrer at all. Virling credits some apps from the name in the user agent, but X is not one of them. An untagged click with no referrer is Direct, shown there as X app when the user agent names it. The visit stays Direct either way.

Telling paid posts from organic ones

X has two kinds of post you can promote. Its docs say a promoted-only post does not appear in your public timeline, though it is public, while an organic post is served to your followers and does appear there. Either kind may be promoted, and a published post cannot be changed from one kind to the other (source: X Ads API, Creatives).

PostTag on the linkChannel in Virling
Promoted-only postutm_medium=paid_socialPaid, under its own campaign
Organic postutm_medium=socialSocial, under its own campaign
Organic post you later promoteOne link, so one tag for bothWhatever that tag says, for paid and unpaid clicks alike

So use a promoted-only post for an ad you want to measure, and give it a link of its own. The split is not perfect: a promoted-only post is public, so someone who shares it can send you an unpaid click with the paid tag. For your profile and unpaid posts, see X (Twitter) revenue tracking.

With paid_social on the link, a click from t.co is Paid; without a paid medium it joins your organic posts in Social under one x.com row, and a promoted, cpm or hyphenated paid-social medium is not read as paid. The full order of rules is in how channels are decided.

The twclid on X ad links

X’s docs say that website click-throughs from X ads append twclid to the landing page URL (source: X Ads API, GTM server side). It is the X Click ID, used by the X Pixel and the Conversions API to tie a site action back to an ad. Virling looks only at whether a twclid is present: if the visit would otherwise be Direct, the Direct breakdown shows it as a shared link, unless the user agent already names the X app. The value is not kept and plays no part in the channel, which is why the UTM tags still matter. See click IDs and UTM tags.

Step 2: join the visit to the payment

The Virling script on the landing page sets a first-party visitor ID, and checkout carries it into the payment, so the payment is credited to the ad visit; link checkout to visits has the setup for each provider. Taps in the X app open its built-in browser, so a buyer who comes back later in their usual browser can carry a second visitor ID; see cross-device attribution.

Why X’s conversions differ from your paid invoices

X Ads Manager and Virling count different things, so expect the two to disagree even when both are set up well.

  • A conversion is not a payment. X counts the events you set up for the X Pixel or the Conversions API, such as a signup or a checkout start. Virling counts money that arrived from your payment provider, after refunds. A trial that never pays is a conversion for X and nothing for Virling.
  • Clicks and visits. X says Ads Manager counts a click as soon as it happens, while analytics tools count a visit once the page and their code have loaded (source: X, Common analytics discrepancies).
  • Views count for X. X recommends a default window of 30 days after an engagement and 1 day after a view for website conversions (source: X, Create a website conversions campaign). Someone who saw the ad and later searched for you is a conversion for X, but in Virling the payment goes to the search visit.
  • One payment, one visit. Virling gives each payment to a single visit, by default the latest one that was not Direct in the last 90 days. If the buyer clicked the ad and later came from your newsletter, Virling credits the newsletter while X can still count the ad.

Use X’s numbers to tune bids and creatives inside X, and Virling’s to decide whether the budget pays for itself.

Where X ad revenue shows up

  • Under Paid, the Campaign tab gives each promoted-only campaign a row with visitors, revenue and revenue per visitor.
  • Click Social and open the same tab to see the organic posts you tagged with utm_medium=social, so you can set paid and unpaid reach side by side.
  • Open a payment from the Payments page to see the visits before it.

Type your monthly X budget, together with any other platform you tag as Paid, in Site settings under Monthly spend per channel, such as Paid 1200, and the Profit by channel card shows whether Paid as a whole makes money.

A made-up example

Invented numbers, for the arithmetic only. Ads Manager shows $600 spent on each of two campaigns. Campaign A got 500 clicks and 10 payments worth $1,500, so $1.20 per click and $3.00 of revenue per click. Campaign B got 800 clicks and 6 payments worth $600, so $0.75 per click and $0.75 of revenue per click. At a 60% margin, the break-even cost per click is $1.80 for A and $0.45 for B. A makes money and B loses it, even though its clicks were cheaper. The CPC calculator does the same sum for your margin.

Troubleshooting X ad revenue

  • Promoted clicks are counted as Social. The ad has no paid utm_medium, or you promoted an organic post tagged social.
  • Promoted clicks sit under Direct. The link went through a redirect that dropped the tags, or the ad is untagged and the X app sent no referrer.
  • Paid visits keep coming after the ad stops. The tagged link is still in a post or was shared. Use it in the ad and nowhere else.
  • X shows conversions but Virling shows no payments. The conversions are signups or views, or the visitor ID is not reaching checkout.

B2B ads with long sales cycles are covered in LinkedIn Ads revenue tracking, and another social platform in Meta Ads revenue tracking.

Frequently asked questions

How do I see which X ad campaign brought a paying customer?

Put utm_source=x, utm_medium=paid_social and a typed utm_campaign in the website URL of a promoted-only post, run the Virling script on the landing page, and carry the visitor ID into checkout. Each payment then appears under that campaign in the Paid channel.

Is an X ad click Paid or Social in Virling?

A paid medium such as paid_social makes it Paid, whatever the t.co referrer says. Without a paid medium the click is Social, in the same x.com row as your organic posts, or Direct when it arrives with no referrer and no tag.

Can a t.co referrer tell an ad from an organic post?

No. X shortens the links shared on X with t.co, and the referrer names only that host. Virling puts t.co, x.com and twitter.com in Social, in one row, x.com. Only the tag on the link says that the post was paid.

How do I separate paid posts from organic ones on X?

Give the ad its own promoted-only post with utm_medium=paid_social, and tag the links in your organic posts with utm_medium=social. If you promote a post you already published, the paid and unpaid clicks share one link, so they share one tag and one row.

Does Virling read the twclid?

Only as a hint: a Direct visit carrying a twclid is listed as a shared link, unless the X app already named itself. Virling keeps no copy and the channel ignores it, so leave it in place for the X Pixel.

Why does X report more conversions than I have paid invoices?

X counts the events you set up, such as signups, and credits views and engagements inside its own windows. Virling counts payments from your provider and gives each one to a single visit, so signups that never pay and buyers who came back through another channel show up only on X’s side.

Do I need to link Virling to X Ads Manager?

No. Everything comes from the tagged URL and your payment provider. For profit, enter what Paid costs you each month in Site settings; X spend is part of that one figure.

See which X Ads campaign pays

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo