TrackPilot

Event Code Generator

Choose an event and fill in value, currency and product ID. Copy the code for every platform — with one shared event ID so browser and server events are de-duplicated.

Questions & answers

Why add an event ID?+

When the same purchase is sent from the browser and from the server, the shared event ID lets Meta and TikTok count it once.

Where do I paste the code?+

On the page or button action where the event happens (e.g. the thank-you page for Purchase), after the base pixel code. With GTM, use the dataLayer version.

Do I need this with TrackPilot?+

Usually not — the TrackPilot plugin and snippet detect standard events automatically. Use the tp.track() line for custom events.

Fix it automatically with TrackPilot

Server-side tracking for Meta, TikTok, GA4, Google Ads and more — one snippet or the WooCommerce plugin, automatic events, COD purchase hold and a live event log.

Start free

More free tools

All free tools →