Add the X Pixel
You can add the pixel in chat or in Site settings.Add it with Replo
Give Replo your Pixel ID and ask it to add the pixel, then publish.tw-<pixel ID>-…), include them in the same request. Replo maps only the events you provide.
Add it in Site settings
- Open the Site Builder.
- Open Settings in the top bar and choose Site settings.
- Select the Scripts & Pixels tab and click X Pixel.
- Paste the pixel ID from X Ads → Tools → Events Manager (the value in
twq('config', '…')in your base code). - Click Connect.
- Publish your site to make the pixel live.
If this site’s SDK is older than X Pixel support, Replo asks you to update the site’s
@replohq/sdk first and does not change your scripts. Add the pixel after that update.Add the pixel only once. If Google Tag Manager, Elevar, or Segment already fires X, skip connecting it here. If the site already loads
static.ads-twitter.com/uwt.js as custom code, reuse that pixel ID and remove the old tag so visits are not counted twice.Map conversion events
The pixel ID alone records site visits and landing page views. To count conversions, create each event in X Ads Events Manager, then paste its event ID.- Open X Pixel in Scripts & Pixels after it is connected.
- Under Conversion events, paste an event ID for each event you want Replo to send. Leave a field blank to skip that event.
- Click Save events.
- Publish your site to make the updated event mappings live.
tw-<your pixel ID>-abcde. An ID from a different pixel is rejected.
- Page view: landing page and in-site page changes, after consent allows tracking
- Product view: a visitor opens a product. X has no product-view type; use a Custom event
- Add to cart: a visitor adds a product to the cart
- Checkout started: a visitor starts checkout. X has no checkout type; use a Custom event. Skipped when Shopify hosts checkout
- Purchase: only when your site reports the order. Skipped when Shopify hosts checkout; use X’s Shopify app for those purchases
Finding your Pixel ID
- Log in to X Ads.
- Open Tools, then Events Manager.
- Your Pixel ID is the value in
twq('config', '…')in the base code.