All integrations

HTML site logo

Programmatic Tracking API

Programmatic Tracking API

Programmatic Tracking API

Send conversions from your own code, exactly when they happen. Delivered to every ad platform from the server.

Send conversions from your own code, exactly when they happen. Delivered to every ad platform from the server.

One function call from your app fires a standard event with the order value and customer details you already have. PixelFlow handles the rest: hashing, deduplication and delivery via browser & server.

One function call from your app fires a standard event with the order value and customer details you already have. PixelFlow handles the rest: hashing, deduplication and delivery via browser & server.

LIVE CONNECTIONBrowser + server
Your app
Snapchat logo

How the Programmatic API works.

How the Programmatic API works.

One line in your code. PixelFlow handles everything after it.

YOUR APP
pixelFlow.trackEvent("Lead", { value: 50, currency: "USD" })
That's the whole integration. Add products or customer details to the same call if you have them.
You send
  • The event name, like Lead or Purchase
  • Value and currency
  • Products and quantities
  • Customer email, phone and name, if you have them
PixelFlow adds
  • One event ID, so nothing counts twice
  • Time of the event and where it happened
  • Browser and ad click IDs
  • IP address and user agent
  • An anonymous visitor ID
  • Hashing of every customer detail

Why use the Programmatic API?

Why use the Programmatic API?

Why use the Programmatic API?

Most sites never need it. But if you're a developer, there are 2 reasons:

1. Granular Event Control - If you need precise control over when events are sent based on complex business logic, conditional workflows, or specific application states that automatic tracking cannot detect.

  1. Application-Level Data Access - If you have customer or product data available in your application's JavaScript context (user objects, cart state, session variables) that you want to send with events without rendering them to the DOM and assigning CSS classes to appropriate elements.

1

function call per conversion

6

ad platforms from one call

100%

of events sent via browser & server

0

event IDs to manage yourself

What you can do with the Programmatic API.

What you can do with the Programmatic API.

What you can do with the Programmatic API.

Your developer adds one line. PixelFlow does everything after it.

Your developer adds one line. PixelFlow does everything after it.

Fire after validation

Fire after validation

Send a Lead only once your server has approved the form.

Send a Lead only once your server has approved the form.

Single page apps

Single page apps

Track steps in apps where the page never reloads.

Track steps in apps where the page never reloads.

Data you already have

Data you already have

Pass order values and customer details straight from your app.

Pass order values and customer details straight from your app.

Product and cart details

Product and cart details

Value, currency, product IDs and quantities on every event.

Value, currency, product IDs and quantities on every event.

Better match quality

Better match quality

Email, phone and name, hashed before they leave the browser.

Email, phone and name, hashed before they leave the browser.

Automatic deduplication

Automatic deduplication

One event ID for the browser and server copies, set for you.

One event ID for the browser and server copies, set for you.

Standard events

Standard events

Purchase, Lead, AddToCart and every other standard event.

Purchase, Lead, AddToCart and every other standard event.

Every payload logged

Every payload logged

See exactly what was sent for each event in your event log.

See exactly what was sent for each event in your event log.

Three ways to send conversions from your code

Three ways to send conversions from your code

Three ways to send conversions from your code

Call each platform yourself, build your own server, or make one PixelFlow call. Here is how they compare.

Call each platform yourself, build your own server, or make one PixelFlow call. Here is how they compare.

Pixel calls in your code
Your own server build
PixelFlow API
Ad platforms
One snippet per platform, browser only
One build per platform
All six, one call
Deduplication
Not available
Manual event IDs
Automatic
Customer data hashing
Per platform rules
You hash and format it
Hashed for you
Bot blocking
No
Build it yourself
Yes
Logging
No
Build it yourself
Every payload
Attribution
No
No
Yes
Platform API changes
Update each snippet
You maintain every version
Handled by PixelFlow
Setup
Code per platform
Developer, weeks
One script, one line per event
Hosting & cost
Included
Your servers and upkeep
Hosted, from $29/mo

Send conversions from your code to every ad platform

Send conversions from your code to every ad platform

Send conversions from your code to every ad platform

Connect any ad platform in one click. The same call feeds each platform’s conversions API, deduplicated with its pixel, so every Ads Manager sees the same conversion once.

Connect any ad platform in one click. The same call feeds each platform’s conversions API, deduplicated with its pixel, so every Ads Manager sees the same conversion once.

Set it up with your AI agent.

Set it up with your AI agent.

Set it up with your AI agent.

Connect the PixelFlow MCP server to Claude, Cursor or ChatGPT and your agent can install PixelFlow and add the event calls to your code for you.

Connect the PixelFlow MCP server to Claude, Cursor or ChatGPT and your agent can install PixelFlow and add the event calls to your code for you.

Setup

FAQ

Programmatic API questions, answered

Programmatic API questions, answered

Can’t find the answer you’re looking for? Get in touch and we’ll help you get set up.

It is a single JavaScript function, available as soon as the PixelFlow script is on your site, that lets your own code send a conversion the moment it happens. PixelFlow then sends that event via browser and server to every ad platform you connect, with the same deduplication, logging and attribution as every other PixelFlow event.

Usually not. The Visual Tagger, URL triggers and automatic ecommerce events cover page views, clicks, forms and checkouts without any code. Use the API when a conversion only exists in your app's logic, such as a form that has to pass server validation first or a step inside a single page app.

Yes, someone needs to add a line of JavaScript where the conversion happens. Everything after that, hashing, deduplication, delivery and logging, is handled by PixelFlow. An AI coding agent connected to the PixelFlow MCP server can add the calls for you.

Any standard event name, such as Purchase, Lead, CompleteRegistration, AddToCart or Schedule. Custom event names are not supported yet.

Order value and currency, product IDs, names and quantities, the number of items, and the search term for Search events. Customer email, phone and name can go with it to improve match quality. Anything outside that list is rejected, so it never reaches your ad platforms.

Yes. You pass customer details in a clean format, such as a lowercase email and a phone number in digits only, and the PixelFlow script hashes them before they are sent. PixelFlow includes helper functions that format the details for you.

No. PixelFlow creates one event ID for every call and shares it between the pixel and the server copy, so each ad platform counts the conversion once. You never manage event IDs yourself. If the same action is already tracked with the Visual Tagger or a URL trigger, keep one of them.

Every ad platform you connect: Meta, TikTok, ChatGPT Ads, Snapchat, Pinterest and Reddit. One call feeds them all. Plans include one, three or five ad platforms, and you can add more from $10 a month each.

Every event appears in the PixelFlow event log, where you can open it and see exactly what was sent. The call also tells your code whether the event was accepted, and Events Manager shows when Meta received it.

No. Use the Stripe integration or a Purchase trigger with Stripe Checkout instead. Firing Purchase from your own code as well would send the same order twice.

Smarter, server-side tracking

Start sending accurate conversions today - no tag manager, no code, no developer required.

Compatible with

  • GoHighLevel logo
  • Kajabi logo
  • HTML site logo