Event

An event is one recorded action with a name, a time and parameters, such as a page view, an add to cart or a purchase. Analytics tools and ad platforms are built on events; a conversion is the part of them you decide to count.

Daniel Busch
Written by Daniel Busch · Chief of Staff · Updated

In short

  • Is: one recorded action with a name, a timestamp, an identifier and parameters such as value and currency. In GA4, even a page view is an event
  • GA4 event names are case sensitive, so purchase and Purchase are two events. A name can have up to 40 characters and carry up to 25 parameters
  • Meta knows 17 standard events, such as Purchase, AddToCart and Lead. Purchase requires value and currency, and custom event names can have up to 50 characters
  • Sent from browser and server, a purchase counts once only if both copies match: Meta compares event name and ID within 48 hours, GA4 the transaction ID
  • Our view: track raw and name events once, and decide what counts in the conversion, not in the tag

What an event is

An event is the smallest unit of tracking: one recorded action with

  • a name, such as purchase, add_to_cart or Lead;
  • a timestamp;
  • an identifier that ties it to a browser or a person: a cookie ID, a click ID, a hashed email address;
  • parameters that describe it: value, currency, order ID, products.

Google’s definition is short: “An event allows you to measure a specific interaction or occurrence on your website or app” (GA4 Help). In GA4, even a page view is an event, page_view.

The same purchase speaks three vocabularies on a Shopify store:

Shopify customer eventsGA4Meta
Event namecheckout_completedpurchasePurchase
Parameters it needssent by Shopifytransaction_id and items, value with currencyvalue and currency
When it firesonce per checkout, usually on the Thank you pagewhen your tag sends itwhen your pixel or the Conversions API sends it

Sources: Shopify, Google, Meta.

An event is not yet a conversion. A conversion is the part of your events you decide to count, with rules for repeats, dates and value.

Standard events, custom events and naming

Every platform has a vocabulary it understands without setup:

  • GA4 collects some events automatically, more with enhanced measurement, and documents recommended events, “events that you implement, but that have predefined names and parameters”, such as add_to_cart, begin_checkout and purchase. Custom events are “events that you define” (GA4 Help).
  • Meta has 17 standard events, “predefined visitor actions that correspond to common, conversion-related activities”, from ViewContent and AddToCart to InitiateCheckout, Purchase and Lead (Meta). Custom events go out with fbq('trackCustom'), and their names “cannot exceed 50 characters” (Meta).

Naming errors fail silently. In GA4, “Event names are case sensitive”: my_event and My_Event are two events. Names start with a letter and use only letters, numbers and underscores (GA4 Help). A name can have up to 40 characters, an event up to 25 parameters, and a parameter value up to 100 characters. Web streams have no limit on the number of event names (GA4 Help), so a typo simply becomes a new event.

Use the standard name wherever one fits, one spelling everywhere, and put variants into parameters rather than names. GA4’s purchase even has a parameter for the most common variant: customer_type, new or returning.

Browser events, server events and deduplication

A browser event is sent by a tag in the visitor’s browser: the Meta Pixel, the Google tag, a Shopify customer event. It sees the session, the cookies and the click ID, and it gets lost. An ad blocker can stop it, and 30% of internet users run one. A cookie banner can hold it until consent. ITP limits the cookies that recognize a returning visitor on 24% of web traffic. And if Shopify’s Thank you page fails to load, checkout_completed “isn’t triggered at all” (Shopify).

A server event comes from a system that holds the order or the lead: Meta’s Conversions API, a conversion upload to Google Ads, a webhook. No browser can block it, but it knows the visitor only through the identifiers you pass along.

Meta recommends both: advertisers should run the Conversions API “alongside their Meta Pixel”, a setup Meta calls redundant. The two copies of a purchase count once only if they match. Meta treats a browser and a server event as one when the pixel’s eventID equals the Conversions API’s event_id and the event names match, and only “if they are received within 48 hours” (Meta). GA4 “deduplicates purchase events with the same transaction ID”, and it deduplicates every purchase sent with an empty transaction_id as well, so send the order ID, never an empty string (GA4 Help).

A worked example

A shop takes 1,000 orders a month at €80 net of VAT, €80,000. Ad blockers, consent and pages that didn’t load keep its pixel from 180 of them. The server sends all 1,000:

SetupPurchases Meta receivesValue Meta receives
Pixel only820€65,600
Pixel and server, nothing to match them1,820€145,600
Pixel and server, same event name and event ID1,000€80,000

With nothing to match them, every order the pixel saw arrives twice. With a shared ID, Meta keeps one copy per order and still gets the 180 the pixel missed. That’s the whole point of sending both.

How adtribute collects events

Our view: track raw, decide later

Our view: send events as raw as you can, name them once, and make every decision about what counts in the conversion, not in the tag. adtribute’s webhook docs give the same advice: “Track custom interactions as raw as possible. Any interpretation or deduplication can be added later.” The reason is history. A tag that fires only for new customers, or skips orders under €20, can never be read differently later. A raw event can, and adtribute recomputes your history with your current definitions every night (docs: When your data updates).

Ad platforms are the exception, because they optimize on what they receive: there a filtered signal, such as new-customer purchases, is the point, sent under an event name of its own next to your existing one, as the CAPI entry’s section on how adtribute sends events to Meta describes (docs: Meta Ads Conversion Upload (CAPI)).

FAQ about Event

What is the difference between an event and a conversion?

An event is anything recorded: a page view, a click, an add to cart, a purchase. A conversion is the part of your events, or of records such as orders, that you count as a result, with rules for which ones count, how often, on which date and with what value. Most events never become a conversion.

What are standard events?

Event names a platform understands without setup. Meta has 17, such as Purchase, AddToCart, InitiateCheckout and Lead. GA4 calls its equivalents recommended events, such as purchase and add_to_cart, with predefined parameters. Custom events are names you define yourself.

Should we use standard or custom event names?

Use the standard name whenever one fits, because platforms and reports know what it means and which parameters it carries. Use a custom event for actions no standard covers, such as a configurator start, and a new name when you send a platform a deliberately different signal next to an existing one.

What is an event ID?

A unique ID per event, often the order ID, that every copy of the same event carries. Meta matches a pixel event and a server event on event name and event ID, and adtribute’s webhook keeps one event per ID.