Event naming conventions for Mixpanel, Amplitude, PostHog and GA4

A useful event naming convention gives each event a stable identifier, precise meaning and explicit destination mapping. Use a consistent object-and-action pattern for custom events, keep variable details in properties and separate the stored name from its display label. For a new multi-tool implementation, lowercase snake_case is a practical default, with destination-specific mappings for recognised events such as GA4 purchases.

Jafrin Akter AloLast updated 13 min read
On this page
A pink stamp marks three white tags with matching lime symbols, beside Event Naming Conventions.

Report Created, report_created and reportCreated may look equivalent to a person. A destination can treat them as different events. Worse, two developers can send the same name for different moments: one when the customer clicks a button and another when the report finishes successfully.

The first problem fragments your charts. The second makes a clean-looking chart answer the wrong question. Naming rules need to address both.

What business fact should the event name describe?

Name a specific business fact and its counting unit before choosing the casing. Start with the object and the completed action. For a reporting product, report_created should represent an agreed creation outcome. If the system needs several minutes to generate the report, use separate names such as report_generation_requested, report_generation_succeeded and report_generation_failed when those distinctions support a real decision.

Do not call all three report_created and hope that a success property will make every analyst select the right rows. It can be better to use one event with an explicit outcome when the analysis consistently needs all attempts, but make that design choice deliberate.

Define the trigger, non-trigger and counting unit beside the name. An event could mean one completed job, one saved object or one user's interaction. Those units produce different totals.

What business fact should the event name describe?
NameTriggerMust not trigger forCounting unit
report_generation_requestedA valid generation request is acceptedA button click rejected by validationOne accepted request
report_generation_succeededThe expected report is committed and availableA queued or still-running jobOne successful generation job
report_generation_failedA job reaches the defined terminal failureA retryable intermediate attemptOne terminally failed job

These are example contract choices. If the business needs retry-attempt analysis, give attempts their own identity and meaning rather than increasing the count of terminal failures. Our product analytics implementation connects these definitions to the producer and the receiving report.

Twilio's collection best practices recommend an object-and-action structure, consistent casing and properties for variable context. The convention works because a person can infer the general meaning, while the event definition supplies the details a name cannot carry.

How should canonical names and display labels differ?

The canonical name is the stable identifier used by producers and data consumers; the display label is for people reading the interface. For a new multi-tool implementation, use this custom-event policy:

  • Use lowercase snake_case, starting with a letter.
  • Choose a domain object followed by a specific action or outcome.
  • Keep names short enough for the most restrictive destination you intend to use.
  • Put identifiers, plan names, dates and UI locations in properties.
  • Keep a readable display label and full description in the tracking plan.
  • Reserve tool-specific names and fields for their documented functions.

Examples include workspace_created, member_invitation_accepted, report_export_succeeded and subscription_cancellation_requested.

This is an implementation recommendation, not a universal requirement from Mixpanel, Amplitude or PostHog. An established, consistently implemented Title Case taxonomy can be perfectly usable. Do not migrate it merely to make the raw names match someone else's preference.

Use the display or analysis layer when the problem is readability. Keep the raw identifier stable unless the business definition actually needs to change.

Keep canonical identifiers stable across interface languages when the business meaning is unchanged. Store locale in an approved property and translate readable descriptions where useful. This naming policy does not imply that every destination rejects non-English names.

These features improve presentation or analysis; they do not all perform a raw-data rename.

How should canonical names and display labels differ?
Platform featureWhat changesWhat remains separate
Mixpanel Lexicon display nameName shown in the interfaceDatabase event name
Amplitude display nameUI label for supported tracked events/propertiesRaw event data; custom events have separate rules
PostHog ActionAnalysis definition combining matching eventsOriginal captured events

Sources: Mixpanel Lexicon, Amplitude display names and PostHog Actions. Amplitude limits this display-name feature to active events and user properties in the tracking plan; it does not apply to custom events.

For example, the raw name report_export_succeeded can display as “Report Export Succeeded” without requiring every producer, warehouse query and integration to change.

Which GA4 event naming rules must the convention satisfy?

GA4 requires a valid case-sensitive name as well as the correct business meaning. Google's event naming rules require event names to start with a letter and use letters, numbers and underscores rather than spaces. Names are case sensitive. Google also maintains reserved names and prefixes, with differences between web and app contexts.

The collection limits set a 40-character event-name limit for tag and SDK collection. Our example custom-name validator below caps names at 39 characters as a stricter internal policy. That is not a different Google limit. Choose the policy deliberately and apply it consistently.

When naming events you will mark as key events, keep the successful outcome distinct from a UI interaction. Check event names, parameter names and user-property names separately. Their limits and reserved fields are not interchangeable. A parameter being accepted in an event does not necessarily mean you can register the same name as a new custom dimension.

Do not reuse automatically collected names for unrelated business facts. For instance, calling a completed application report page_view makes its meaning conflict with page measurement. Also avoid inventing custom fields that shadow a destination's identity or timestamp fields.

Maintain the relevant reserved-name checks from the current documentation. A short copied list in an old spreadsheet will eventually become incomplete.

Can Segment Title Case events reach GA4 correctly?

Yes, when the configured destination transforms or explicitly maps the event name correctly. Segment recommends Title Case in its collection guidance, while GA4 rejects spaces in raw names. The receiving name depends on the selected mapping.

The current GA4 Cloud destination documentation says Segment replaces spaces with underscores and offers a Lowercase Event Name option for custom events. It also supports explicit action mappings.

The practical problem is knowing which transformation your configured path performs. Report Created could become Report_Created or report_created, depending on that configuration. A separately instrumented browser event might use a third spelling.

Record the final destination name rather than relying on a connector's default. Test the transformation before approving the registry.

The following is a synthetic naming fixture using the documented space replacement and optional lowercasing. It tests name transformation only; it does not establish identity or delivery correctness.

Can Segment Title Case events reach GA4 correctly?
Source nameSpaces replaced, casing keptSpaces replaced and lowercasedCheck
Report CreatedReport_Createdreport_createdMatch the separately instrumented browser route
Plan SelectedPlan_Selectedplan_selectedCan collide with an existing snake_case producer
plan_selectedplan_selectedplan_selectedSame output as the row above after lowercasing

Treat the collision as a review decision. Equivalent triggers may intentionally share one destination event under a deduplication rule; different business facts need different names.

A successful transformation also does not prove that properties, identity or timestamps mapped correctly. Inspect a received event in the destination.

When should a canonical event map to a standard destination event?

Map to a standard destination event only when its trigger, counting unit and required fields match the canonical fact. Some destination event names carry documented semantics and parameters. Google publishes a recommended event reference, including events for sign-up, login and purchases.

Map your canonical event to one of those only when the meaning matches. user_registered can represent a completed sign-up if that is its trigger. A click on “Create account” does not establish the same fact.

Similarly, a GA4 purchase mapping needs a real purchase definition and the relevant transaction and item data. Renaming a billing-page visit to purchase will make a conversion number move without improving measurement.

An illustrative registry can keep these mappings visible:

YAML
events:
  user_registered:
    display_name: User Registered
    trigger: persisted_user_registration
    unit: newly_registered_person
    destinations:
      mixpanel: user_registered
      amplitude: user_registered
      posthog: user_registered
      ga4: sign_up
  report_export_succeeded:
    display_name: Report Export Succeeded
    trigger: export_job_completed_successfully
    unit: export_job
    destinations:
      mixpanel: report_export_succeeded
      amplitude: report_export_succeeded
      posthog: report_export_succeeded
      ga4: report_export_succeeded

This is a planning format, not vendor configuration. The real adapter also needs approved property mappings, identity, timestamps and event-delivery rules. You do not have to send every event to every destination; list only the routes that support a defined use. Review AppsFlyer revenue events sent by both app and server as a concrete case where a correct name still needs one authoritative sender.

How the workflow fits together
Event registry workflow from business fact through validation and mapping to received-payload and report checks
Read diagram as text
  • Business fact and counting unit to Canonical event registry.
  • Canonical event registry to Producer validation.
  • Producer validation to Explicit destination mapping.
  • Explicit destination mapping to Received payload check.
  • Received payload check to Documented reports and metrics.
  • Documented reports and metrics to Change impact review.
  • Change impact review to Canonical event registry
Open full diagram

Which context belongs in event properties?

Put variable context in approved typed properties while keeping the event name stable. Prefer report_export_succeeded with export_format: pdf over separate event names for every file format. Prefer plan_selected with a stable plan code over names that embed a changing commercial plan label.

Keep property names and types consistent. A boolean should not alternate between true, "true", 1 and "yes". A duration needs a documented unit such as milliseconds. A money amount needs a currency and a clear representation.

Use enumerated values when a property supports a limited set of choices. For example, export_format might allow pdf and csv. Introduce a new value through the same review process as a new event if it changes reporting or downstream behaviour.

Avoid putting arbitrary user text, email addresses, tokens or full URLs with sensitive query parameters into event names. Review property contents too. Moving a value from the name into a property does not make it appropriate for every destination.

Preserve actor context too. An administrator creating a report for a customer should not silently increase that customer's self-service activation count. Define the reporting exclusion, or use a distinct event when the action represents a different business fact.

Separate properties recorded at event time from a person's current profile. If you need to know which plan the account had when the export occurred, record that context with the event or join to reliable historical state. A current profile value can answer a different question.

The tracking plan guide provides the wider contract for triggers, fields, ownership and allowed destinations.

How do you validate names and mapping collisions before release?

Validate syntax, destination names and the expected business occurrence separately. A syntax check catches spaces, unexpected casing and overlong names; a received-payload and known-action test establishes the meaning.

The following Python example implements the conservative custom-name policy above and rejects duplicate destination names. It is intentionally stricter than some vendor APIs, and it is not a complete GA4 reserved-name validator.

Python
import re

def validate_custom_mapping(mapping, reserved_names):
    seen = {}
    for canonical, destination in mapping.items():
        for name in (canonical, destination):
            if not re.fullmatch(r"[a-z][a-z0-9_]{0,38}", name):
                raise ValueError(f"Invalid custom event name: {name}")
        if destination in reserved_names:
            raise ValueError(f"Reserved destination name: {destination}")
        if destination in seen:
            raise ValueError(
                f"Collision: {canonical} and {seen[destination]}"
            )
        seen[destination] = canonical
    return True

custom_events = {
    "report_export_succeeded": "report_export_succeeded",
    "workspace_created": "workspace_created",
}

validate_custom_mapping(custom_events, {"page_view", "session_start"})

The two names in the example denylist are illustrative, not Google's full list. Keep standard-event mappings in a separately reviewed registry so an intentional sign_up or purchase mapping is not confused with an arbitrary custom event.

If two producers intentionally map to the same event, require equivalent triggers and an agreed deduplication rule. Do not bypass a collision check merely because both teams prefer the same dashboard label.

Use the event naming convention skill to lint the registry, check destination-name collisions and draft a rename plan that preserves readable history.

How do you rename events without double counting?

Classify the change before deciding whether to modify a label, producer or reporting definition. A friendly label change and a new business outcome have different migration requirements.

How do you rename events without double counting?
ChangeWhat to preserveWhat to updateAcceptance evidence
Display label onlyRaw event identity and meaningSupported display configurationUI label changes; exported name remains expected
Compatible optional propertyExisting trigger and counting unitSchema and consumers that use the propertyOlder producers remain interpretable
Trigger or unit changesThe historical definition and boundaryNew event or explicitly versioned metricOld and new results are distinguishable
Destination mapping changesBusiness occurrence identityAdapter and dependent queriesOne real action is counted once

If only the label is unclear, a display-name update may be enough. If the trigger or counting unit changes, treat it as a semantic change. A historical click and a future completed operation should not be presented as one unchanged measure.

Before changing a raw event name:

  1. Inventory its producers, destination mappings, saved reports, audiences, experiments and warehouse models.
  2. Record the old and new definitions, the reason for the change and the release boundary.
  3. Update consumers to understand the transition where appropriate.
  4. Test the new producer in a separate environment or controlled release.
  5. Compare known actions against received events and published metrics.
  6. Remove obsolete production emissions after the agreed migration period.

Avoid dual-emitting old and new events into a metric that counts both. Ten real exports can become twenty events without one extra customer action. If a migration requires overlap, preserve an operation identifier and define how each report avoids double counting.

PostHog's Actions documentation describes combining related events for analysis and giving them a useful name. That is an analytical definition over events, not proof that historical raw records have been rewritten. Document equivalent distinctions in each destination.

An offline producer may deliver the old contract after the cutover. Preserve its version and occurrence time, apply a compatible mapping deliberately and keep incompatible meanings distinct. Give unresolved late legacy records a migration owner.

For an incompatible definition change, use a new event or a versioned metric and annotate the reporting break. Keeping a continuous line is less valuable than keeping a truthful one. Follow the reporting migration checks to preserve the old evidence and validate the new interpretation.

Review why event naming becomes expensive to change before changing a published event contract; a new label can affect collection, models, reports and audiences.

Who should own and approve the naming convention?

Give each event a business owner for meaning and a technical owner for production behaviour. Store the registry near the implementation or in a controlled tracking-plan tool. Each event should have an owner, purpose, definition, properties, destinations and the reports that depend on it.

A proposed event earns its place when someone can name the decision or debugging question it supports. “We might need it later” is a weak reason to collect a new stream of detailed customer behaviour.

Review changes at the same time as the product change. The engineer knows where success is actually committed; the product or growth owner knows which outcome matters. Agree before a name becomes part of production history.

Checklist

  • The event describes a specific fact, with a documented counting unit.
  • Its custom identifier follows the chosen syntax and length policy.
  • Variable values live in approved, typed properties.
  • Tool-managed events and fields retain their documented meaning.
  • Final destination names and standard-event mappings are explicit.
  • Mapping transformations cannot create an unintended collision.
  • Received payloads have been checked in each destination.
  • Display-name changes are distinguished from raw-data changes.
  • Renames account for existing charts, audiences and dual-emission risks.
  • An owner can explain and approve future changes.

Use the event naming convention skill to lint names and property types, check destination collisions and prepare a rename plan for review.

For the wider implementation, use the SaaS product analytics setup guide. If the existing taxonomy is already fragmenting decisions across tools, our product analytics service can help map the definitions and migrate the events without disguising changes in meaning. Get the $99 martech audit or request a detailed product analytics scope with the affected events and reports.

Keep reading

Browse all Tracking & Attribution guides

Questions people ask

Should a keyboard shortcut and a button click use different event names?

Use the same event for the same authoritative business outcome, regardless of the interaction that initiated it. Record keyboard or button as an approved interaction-method property when that distinction supports a useful question. Keep interface intent separate from backend success: a shortcut attempt does not prove completion. Ensure one completed operation emits once, rather than independently emitting success from both the interface handler and the backend.

How should sampled telemetry differ from complete business-event counts?

Keep the business meaning stable and record the collection policy and sampling basis alongside the dataset. An event recording completion does not establish a complete transaction count. Reports need to identify which observations were eligible for collection and how any estimate is produced. Keep unsampled financial or operational evidence separate where the decision requires an exact count, and make the coverage boundary visible.

How should two products combine their event registries?

Compare definitions before adding product prefixes or collapsing names. The same name may represent different outcomes, while different names may describe equivalent facts. Keep a product or application namespace in the registry and record which consumers need a combined measure. Approve shared canonical events only after the triggers and counting units agree; a common company owner does not make the data semantics identical.

How should one batch action that creates several files be named?

Give batch completion and individual file creation separate counting units when both matter. One successful export job can produce several files without representing several successful jobs. Link the records with an approved job identifier and define when partial output counts. Name each event for the fact it establishes, then keep job-level and file-level totals separate in reports instead of adding them together.

Should a production validation failure silently discard the event?

Use an explicit failure policy with an owner, diagnostic evidence and a controlled repair path. A schema error should not disappear merely because the destination rejected it, nor should a retry invent a new name until something passes. Protect sensitive values in logs and preserve the business operation reference. Test whether the failed observation can be repaired without duplicating an event already accepted elsewhere.

Sources

  1. Twilio Segment: Data collection best practices.
  2. Mixpanel: Lexicon.
  3. Amplitude: Event and property display names.
  4. Google Analytics: Event naming rules.
  5. Google Analytics: Event collection limits.
  6. Twilio Segment: GA4 Cloud destination.
  7. Google Analytics: Recommended events.
  8. PostHog: Actions.
Portrait of Jafrin Akter Alo

Written by

Jafrin Akter Alo

Data Engineer and Co-founder at Martechdevs and Growth and Analytics Partners

Jafrin writes practical guides to marketing technology, customer data, analytics and AI workflows. Martechdevs is a Growth and Analytics Partners company.

View LinkedIn profile

Book a Free Call

Thirty minutes on your stack and what it needs. Free, and no pitch.

Thirty minutes, and you leave with a plan

We look at what you have, what it is costing you and what to do about it first.

  • 30 minutes
  • Video call, link on booking
  • No obligation

What we'll cover

  • Your current stack and where it hurts
  • Quick wins we can ship first
  • An integration roadmap
  • Timeline, scope and next steps

Calendar not loading? Open it in a new tab or email hello@martechdevs.com.