X Pixel & Conversions API
SonoTrix add-on for CS-Cart that loads the X (Twitter) Universal Website Tag and sends conversions through the Web Conversions API using OAuth 1.0a credentials.
What you need from X Ads
- X Pixel ID (Universal Website Tag / pixel ID)
- Purchase Event UUID (required for purchase tracking)
- Optional: Page View Event UUID and Add to Cart Event UUID
- OAuth app credentials:
- OAuth Consumer Key
- OAuth Consumer Secret
- OAuth Access Token
- OAuth Access Token Secret
Install the add-on
- Download the X Pixel & Conversions API package.
- Go to Add-ons → Manage add-ons.
- Upload, install, and enable the add-on.
See also: How to Install CS-Cart Add-ons.
Part A — X Ads Manager setup
Step 1: Create the website pixel / Universal Website Tag
- Sign in to X Ads Manager.
- Open Tools → Events Manager (or Conversion tracking / Pixel, depending on UI).
- Create a website pixel / Universal Website Tag if needed.
- Copy the Pixel ID into the add-on X Pixel ID field.
Step 2: Create conversion events and copy Event UUIDs
- In Events Manager, create conversion events for your funnel (at least Purchase).
- Open each event and copy its Event UUID.
- You will paste:
- Purchase Event UUID (required for purchase browser + CAPI)
- Optional Page View Event UUID
- Optional Add to Cart Event UUID
Without the Purchase Event UUID, purchase events will not fire.
Step 3: Create Ads API OAuth credentials
- In the X developer / Ads API area linked to your ads account, create or open an app with Ads API access.
- Generate or copy:
- Consumer Key
- Consumer Secret
- Access Token
- Access Token Secret
- Use credentials that can call the Web Conversions API for your ad account.
note
OAuth screens are account-specific and often behind login. Keep secrets out of tickets and chat logs. Leave secret fields blank in the add-on when saving if you only want to keep existing values.
Part B — Configure the CS-Cart add-on
Go to Add-ons → Manage add-ons → X Pixel & Conversions API → Settings.
Pixel Credentials
Fill in:
- X Pixel ID
- OAuth Consumer Key
- OAuth Consumer Secret
- OAuth Access Token
- OAuth Access Token Secret
- Purchase Event UUID (required)
- Optional Page View Event UUID / Add to Cart Event UUID
Save.
Pixel Events (browser)
Enable:
- Page View
- Add to Cart
- Purchase
Conversion API Events (server)
Enable:
- Purchase
- Add to Cart
Storefronts Pixels
Per storefront: Disabled, Default, or Custom (full credential override).
Verify
- Complete a test purchase on the storefront.
- In X Ads Events Manager, confirm purchase conversions.
- If purchases are missing, re-check the Purchase Event UUID and OAuth secrets.
Official X help
- X Ads API — Web Conversions
- X Ads Manager → Events / conversion tracking