X (Twitter) Conversions API

Connect TrackFlow to X (Twitter) Conversions API to send purchase and conversion events directly from your server.

Why Use X Conversions API?

  • Server-side reliability: Events sent directly without browser limitations
  • Better attribution: More accurate conversion tracking
  • Privacy-compliant: Works with browser privacy features
  • Improved optimization: Better data for campaign optimization

Step 1: Get Your Pixel ID

  1. Go to X Ads Manager
  2. Click ToolsEvents Manager
  3. Select your pixel (or create one under Add event source)
  4. Copy your Pixel ID

Step 2: Generate Conversions API Key

  1. In Events Manager, click on your pixel
  2. Go to Implementation tab
  3. Select Conversions API
  4. Click Generate API Key
  5. Copy and save the key securely

Important

The API key is shown only once. Store it securely - you'll need to generate a new one if lost.

Step 3: Add Pixel to TrackFlow

  1. Go to your store in TrackFlow
  2. Click Pixels tab
  3. Click Add Pixel
  4. Select X (Twitter) Ads
  5. Enter your Pixel ID and API Key
  6. Click Save Pixel

Events Sent to X

TrackFlow EventX EventParameters
PageViewpage_viewpage_url
ViewContentcontent_viewcontent_id, content_price, currency
AddToCartadd_to_cartcontent_id, price, currency, quantity
InitiateCheckoutcheckout_initiatedcontent_id, price, currency
Purchasepurchasecontent_id, price, currency, order_id, quantity

User Data for Matching

TrackFlow sends hashed user data for improved matching:

  • hashed_email: SHA256 hashed email address
  • hashed_phone_number: SHA256 hashed phone with country code
  • twclid: Twitter click ID from URL parameter
  • ip_address: Customer IP address
  • user_agent: Browser information

Troubleshooting

Events Not Appearing

  • Verify your Pixel ID is correct
  • Check that your API key is valid and hasn't been regenerated
  • Allow up to 24 hours for events to appear in reporting

Low Match Rate

  • Ensure twclid parameter is preserved in landing page URLs
  • Capture customer email at checkout
  • Include country code in phone numbers

Next Steps