100% Free - No Account Required

Free Conversion Event Code Generator

Generate properly formatted conversion event code for Meta CAPI, Google Analytics 4, and TikTok Events API. Our free event code generator includes advanced matching parameters to improve your attribution accuracy.

Event Data

Advanced Matching

Recommended

Add user data for better conversion attribution. Data should be hashed (SHA-256) before sending to the API.

Your internal customer ID for cross-platform tracking

Products / Items

Generated Code

Skip the Code - Use PixelFly

Set up server-side tracking in 5 minutes without writing any code. PixelFly automatically handles event formatting, hashing, and deduplication.

Start Free Trial

How Our Free Event Code Generator Works

Generate properly formatted conversion events in seconds. Our event code generator supports all major advertising platforms and includes advanced matching for better attribution.

1

Select Platform

Choose Meta CAPI, GA4, or TikTok Events API

2

Choose Event Type

Select from Purchase, AddToCart, Lead, and more

3

Add Event Data

Enter values, user data, and product details

4

Copy & Implement

Copy the generated code and add to your server

Supported Conversion Events

Our event code generator supports all standard e-commerce and lead generation events across major platforms

E-commerce

  • Purchase
  • AddToCart
  • InitiateCheckout
  • ViewContent
  • AddPaymentInfo
  • AddToWishlist

Lead Generation

  • Lead
  • Contact
  • CompleteRegistration
  • Subscribe
  • SubmitApplication

Engagement

  • PageView
  • ViewContent
  • Search
  • FindLocation
  • Schedule

SaaS / Subscriptions

  • StartTrial
  • Subscribe
  • CompleteRegistration
  • CustomizeProduct

Why Use Server-Side Conversion Events?

Client-side tracking is unreliable. Server-side events give you accurate data that advertising platforms can trust.

30%

of events are lost to ad blockers with client-side only tracking

95%

Event Match Quality achievable with proper server-side setup

2x

Better attributed conversions with server-side + client-side tracking

Event Code Generator FAQ

Common questions about our free conversion event code generator

Yes, this conversion event code generator is completely free to use. You can generate unlimited event code without creating an account. We built this tool to help developers and marketers implement tracking events correctly.
Our event code generator supports Meta Conversions API (Facebook CAPI), Google Analytics 4, and TikTok Events API. Each platform has specific event types and parameters that our generator handles automatically, ensuring your code follows the correct format.
Advanced matching allows you to send hashed customer information (like email, phone, name) with your conversion events. This helps platforms like Meta match conversions to users more accurately, improving your attribution and ad optimization. The more matching parameters you provide, the higher your Event Match Quality score.
For server-side tracking, you should hash sensitive data like emails and phone numbers using SHA-256 before sending. Our generator shows you the correct format. The data should be lowercase and trimmed before hashing. PixelFly automatically handles hashing for you when you use our server-side tracking solution.
Client-side events fire from the user's browser using JavaScript and can be blocked by ad blockers, privacy extensions, or browser settings. Server-side events are sent from your server directly to the platform's API, bypassing all client-side restrictions. For best results, use both together with proper deduplication.
When using both client-side and server-side tracking, you need to send the same event_id for both events. The platform will automatically deduplicate events with matching event_id values. Our generator includes the event_id field in the output. PixelFly handles deduplication automatically for you.

Ready for Effortless Server-Side Tracking?

Skip the manual code. PixelFly sets up Meta CAPI, GA4, and TikTok Events API in 5 minutes with no coding required.

No credit card required. Cancel anytime.

We use cookies to enhance your experience, analyze site traffic, and for marketing purposes. By continuing to use our site, you consent to our use of cookies. Learn more