Skip to content

Pillar 04 · Traffic and Data

Event Measurement Plan: What to Measure and in What Order

Updated on 35 min read
Download article as Markdown (.md) Verify version and integrity

TL;DR

Before installing any tag, you need to know what you want to measure and what matters most: the lead, the WhatsApp click, or the video play. Here I show how to map the customer journey, build the event hierarchy, separate organic and paid with UTMs, and then implement in GTM and read in GA4.

Event Measurement Plan: What to Measure and in What Order

TECHNICAL NOTE: All information contained here reflects my experience and my working method; you are solely responsible for any changes on your website or your clients’ websites. I take responsibility exclusively within partnerships formalized by contract. Whenever in doubt, visit the Legal Notice.

Across 6+ years of work, spanning more than 26 verticals and 40 to 45 consulting engagements (law firms, accounting, psychology practices, schools, vocational training, beauty salons, and more), I keep seeing the exact same scenario repeat itself.

Most clients and students show up with tags already installed and no specific, well-structured plan behind their tracking..

The website exists, lead capture exists, and someone (sometimes the owner) has already tried to configure Google Tag Manager and GA4. Yet nobody decided beforehand what should be measured and what matters most.

A professionally built, validated setup almost never arrives ready-made. When it does, my job shifts to offer strategy, data interpretation, and BI (source, creative, cost per acquisition), instead of rebuilding tracking from scratch.

So the problem is almost never the tool.

Google itself states that GA4 collects some events automatically and that the rest must be configured. In other words, someone has to decide what “the rest” should be. If you are not yet clear on what collecting and analyzing website data entails, it helps to read what web analytics is first.

A scope disclaimer before starting.

This is not a setup tutorial for GA4 or GTM, nor does it cover campaign setup. It reflects my experience and my method; platforms change fast, and every site (with its own stack, accounts, and data) must be treated as a specific case. I am not responsible for changes you make on your website or on clients’ websites; full details are in the Legal Notice.

The measurement plan is the first step in every tracking infrastructure I build for a client. It comes before any tag, pixel, or dashboard.

So come along with me..

What Is an Event Measurement Plan?

An event measurement plan is, in simple terms, the document where you write down, in order of importance, the conversions and microconversions you expect a prospective customer to complete on your site: downloading a lead magnet, submitting a signup form, messaging on WhatsApp, playing a video, adding a product to the cart, and so on.

Put even more simply: it is the written decision of what your website needs visitors to do, in what sequence, and with what priority.

That idea is not something I invented. The best-known measurement frameworks, such as Avinash Kaushik’s model, start from business objectives and separate macro and micro conversions before talking about data. GA4 itself starts from business objectives such as “generate leads” and “drive sales”.

Conversion, Microconversion, and Event

Three terms that get mixed up constantly, and should not:

  • Conversion is the outcome that pays the bills: a qualified lead or a sale;
  • Microconversion is a step that signals interest: a video play, a WhatsApp click (in some business models), or a downloaded lead magnet;
  • Event is the technical record of an action, meaning the name that action receives inside the analytics tool.

One pattern I see often with real estate developers, land subdivisions, condominiums, brokers, and realtors works like this:

The flow is ad, landing page, and a multi-field form > That form acts as a screening filter for the sales team > Inside that flow there is ONE primary conversion, namely the form submission carrying the data payload so the lead can be qualified (or disqualified) and sales can step in.

Microconversions still have value, just for a different job: they are events that can help optimize the campaign to generate more of that primary conversion.

Picture an info-product sales page with a video designed to raise the visitor’s awareness and drive a direct purchase from a cold audience..

If you track video watch time (25%, 50%) alongside a baseline capture form to collect data (via dataLayer, aiming for high-quality hashed attribution), you can instruct the traffic source to find more people with a stronger retention profile.

Once the sales video is validated, you can strategically serve ads to an audience with a higher likelihood of converting, even when cold, without necessarily increasing ad spend..

You keep the exact same page, same video, same ads, same budget, same offer, and same checkout, and with a few tracking and audience configurations, you sell more (CRO)!

Does that make sense?

A Measurement Plan Is Not a Tag List

The most common mistake is starting from the tool: opening GTM, creating tags for everything, and trying to figure out afterward what those numbers mean.

The plan comes first. It answers a business question (“what do I need the visitor to do?”), and only then does someone decide how to measure it.

A tag without a plan is just code running on a website.

GA4 Is Not Your Measurement Plan

I am going to separate these three things, because this is where most teams get lost:

  • the plan is the decision (what to measure and what matters most);
  • GTM is the delivery layer (where tags are managed);
  • GA4 is the data destination and reporting tool, meaning web analytics.

An analogy I use all the time..

The plan is the house blueprint. GA4 is the electrical panel showing how much power each room draws. Nobody builds a house by staring at the breaker box, right? The blueprint comes first; the panel only reports on what the blueprint decided should exist.

GA4 already collects certain events on its own, such as page views and, with enhanced measurement turned on, scrolling, outbound clicks, file downloads, and YouTube video events. What counts as valuable for YOUR business is something it cannot guess.

What decides that is the plan that guides professional execution.

Map the Journey and Pick the Actions That Matter

Before thinking about events, map the path: where the person arrives from, what they see, what the expected next step is, and where they might drop off.

The journey starts from who your customer is and what moves them to buy. If that is not clear yet, the guide How to Define Your Business ICP helps document it.

At each stage, the question is not “what can be measured?”. The question is: what valuable action do I expect the customer to take here?

How to Find the Valuable Action at Each Stage

The rule of thumb is simple.

For every stage of the journey, pick one action that proves forward movement in the funnel (or none, if the stage does not call for one). Anything that does not show progress stays off the list.

Page views, scroll depth, clicks, form signups, and video plays, which I already covered under ad and website metrics, only enter the plan when they represent a real step by the prospect toward the next stage.

That short list is what moves on to the hierarchy.

Journey on a Service Website

A real case from a civil engineering firm working with structural restoration, construction, waterproofing, and technical inspection reports.

What mattered to that firm was the volume of qualified inquiries about services, products, and reports arriving on WhatsApp. Accordingly, the primary conversion was defined as a click on the site links (button, widget, and header) that open WhatsApp Business and start a chat.

Only after that came microconversions, documentation, and the technology inventory.

A typical service-website journey looks roughly like this:

  • YouTube video, ad, or search result;
  • blog post or service page;
  • video play and reading engagement;
  • WhatsApp click or form submission;
  • conversation and proposal.

If you run ads, that journey is the exact same ad funnel, just viewed from the website’s side.

Journey in an Online Store

In an e-commerce store, the journey usually follows ad or search, product list, product page, cart, checkout, payment, and purchase.

The planning logic is identical. What changes is implementation, which varies A LOT depending on the platform: WooCommerce, Wix, Tray, Shopify, and others all have different capabilities and constraints. That is why here I stay at the journey and event-list level with code snippets; the actual implementation depends on your store.

Build the Importance Hierarchy

This is the core of the plan. The valuable actions you selected now receive an order of importance, and that order becomes your implementation priority.

The Four Levels, From Most to Least Valuable

LevelWhat it isKey event in GA4?
1. ConversionThe outcome that pays the bills: qualified lead or saleYes
2. Strong microconversionExplicit intent to contact or buyDepends on the business
3. Interest microconversionContent consumption signaling interestNo
4. Navigation signalHelps understand the path, yet does not prove intent by itselfNo

Key event is the current name in GA4 for what used to be called a conversion. A standard property supports up to 30 of them, which is already a solid reason not to mark everything.

For a service website (consulting, courses, mentoring, professional firm), a starter list ranked by priority looks like this:

  1. generate_lead: form submitted successfully. Level 1. It is a Google recommended event.
  2. click_contact with contact_method = whatsapp: level 1 when chat is the business’s primary action.
  3. click_contact with contact_method = email or phone: level 2. Same event name, different parameter value.
  4. generate_lead with lead_source = lead_magnet: level 2, when the lead magnet requires registration. Without registration, the download is file_download, level 3.
  5. video_progress starting at 50% on the page video: level 3.
  6. read_depth at 75% scroll of an article: level 3, using GTM’s scroll depth trigger (GA4’s native scroll only fires at 90%).
  7. click_internal_link, tightly scoped: level 4, reserved for body links pointing to the offer page, topic hub, or next step in the journey.
  8. page_view on the offer page: level 4, as a navigation signal. I return to it in the next section because it is a “dry event”.

For an online store, GA4’s recommended events already cover the hierarchy:

LevelEventWhen
1purchaseCompleted purchase, with transaction_id and items
2begin_checkout, add_shipping_info, add_payment_info, add_to_cartCheckout start, shipping, payment, and cart addition
3view_item, view_cart, add_to_wishlistViewed product, viewed cart, saved to wishlist
4view_item_list, select_item, remove_from_cartViewed a list, selected an item, removed from cart

refund closes the loop when a chargeback or refund happens, and usually comes from the store’s backend rather than the browser.

What Is Worth More to Your Business?

The hierarchy is a business decision, not a tool setting.

The exact same WhatsApp click can be a conversion in one business and a microconversion in another. In a service firm or solo practice where chat is the primary action, it is level 1. In an online store selling through checkout, where purchase exists, it drops to level 2.

The same applies to a lead magnet.

In 2025, at a student exchange and travel company focused on the US, a consulting engagement I led produced a 15% to 25% lift in conversion rate. Yet pay close attention to the context: the conversion was capturing a lead magnet through a detailed form, not the direct purchase of a travel package. Sales followed up with parents and students afterward.

That range is high compared to e-commerce or WhatsApp service leads precisely because it was lead-magnet capture. And in that type of conversion, small adjustments to copy, section order, cover creative, ad angle, and mobile speed carry significant weight.

For that business, the lead magnet was the conversion feeding sales. In another company, it would only be a microconversion.

What NOT to Do: Measure Everything and Anything

Do not spend budget or engineering effort measuring everything under the sun.

Measure only what makes sense relative to the valuable action you expect from the customer. Every extra event costs implementation, maintenance, and attention when reading reports.. and changes zero decisions.

Suppose your site has a landing page featuring a video of an expert selling a mentorship program. There, measuring how much of the video a visitor watches is valuable because watching is a funnel step: someone nearing the end of the video is far closer to buying than someone who bounced in the first few seconds.

Just like I explained earlier in the info-product example.

Now.. measuring every random click that same person makes on the page? That makes no sense. It burns resources, clutters reports, and does not help you sell more.

Additional note: too many tags and JavaScript workarounds injected through GTM can make pages slow and brittle. That is why I focus strictly on what is needed, with a validated, clean, and organized setup.

On the technical side, GA4 enhanced measurement already records video_start, video_progress (at 10%, 25%, 50%, and 75% duration), and video_complete, yet only on embedded YouTube videos with the JavaScript API enabled, meaning enablejsapi=1 in the player URL. If your funnel calls for custom milestones (such as the exact timestamp when the offer is pitched), GTM’s YouTube Video trigger supports percentages and time thresholds you choose.

One recommendation of mine, which is not a documentation rule: use only one tracking path for the same video. If GTM is measuring those milestones, turn off enhanced measurement video events or give the GTM event a distinct name so you do not count the same play twice.

And here comes a concept I use with clients: the dry event.

A dry event is one GA4 collects automatically, such as page_view. It is an observed metric: it shows that the page was loaded and helps map the path. Yet it almost never serves to attribute business results to paid traffic sources, so it stays out of the plan as a conversion.

Viewing an offer page is not hiring.

Other things I never do, and recommend you avoid as well:

  • sending personal data in parameters (name, email, phone), because Google prohibits personally identifiable information in GA4, and it is also an LGPD issue (there are data encryption and hashing techniques for those cases, many ready out of the box);
  • double-counting the same outcome, such as marking both form_submit (which fires on submit without confirming success) and generate_lead as key events at the same time;
  • using a unique ID or timestamp as a custom dimension (high cardinality, meaning too many distinct values for reports to aggregate);
  • marking a level 3 or 4 event as a key event “just to make the numbers look good”;
  • tracking arbitrary clicks with no business question behind them.

Document Each Event in a Spec Sheet

Every action in the hierarchy gets its own spec sheet. The spec sheet is the plan’s technical documentation: it states what the event is, where it sits in the journey, how it fires, and across which channels it will be read.

What Goes Into Each Spec Sheet

The template I use, formatted as a list because it reads cleanly on mobile:

#### Event: event_name

- Journey stage: where this action happens along the expected path
- Hierarchy position: level 1, 2, 3, or 4, and implementation priority
- User action: what the person does, in plain language
- Technical trigger: click, page, form callback, or dataLayer push
- Parameters: name, type, example value, and whether it becomes a custom dimension
- Key event? yes or no, and why
- Channels where it is read: organic, paid, social, email, YouTube
- Where it fires: GTM web, GTM server-side, gtag.js, or server
- Destinations: GA4 and, if applicable, ad platforms
- Business goal: what the event proves for the bottom line
- How to validate: what to verify in GTM Preview and DebugView
- Owner and status: who implements, who reads; planned, implemented, validated, or review, with date

A filled-out example for a service website where chat is the primary action:

  • Event: click_contact (WhatsApp);
  • Journey stage: after reading the post or service page, when the visitor decides to reach out;
  • Hierarchy position: level 1, priority 1;
  • Technical trigger: click on a wa.me link, using GTM’s “Just Links” click trigger (it only sees the <a> element; if the widget runs via script, the trigger changes);
  • Parameters: contact_method (whatsapp) and contact_position (widget, header, body), never the person’s phone, name, or email;
  • Key event? yes, it signals explicit intent to make contact;
  • Channels where it is read: all channels, broken down by channel group and source/medium;
  • How to validate: GTM Preview, click the button, and verify the event in DebugView with contact_method = whatsapp.

Naming follows Google’s recommended events standard: English, lowercase, and snake_case. Under GA4 rules, event names must start with a letter, use only letters, numbers, and underscores, are case-sensitive, and are capped at 40 characters; reserved names such as click, scroll, and page_view cannot be used for your custom events.

Same Conversion, Different Channels

The “Channels where it is read” field is what turns the plan into a shared foundation for organic and paid alike.

The spec sheet defines what the conversion is. Source and medium tell you where it came from.

With that, the exact same generate_lead shows up separated across organic, paid, social, email, and YouTube, side by side.

That helps answer fundamental questions EVERY BUSINESS OWNER should be able to answer (at least anyone using digital acquisition):

How much is one lead costing (CPA, Cost Per Action) in each acquisition channel (YouTube, Instagram, Google Search, etc.)?

How much does it cost to close a sale (CAC, Customer Acquisition Cost) in each media channel?

Which platform delivers higher efficiency? If I had an extra R$ 1,000 to invest, where would I put that money?

In this scenario, you need to understand a bit more about UTM (Urchin Tracking Module)..

UTM Rules and Parameters for This Case

UTM is the set of parameters you append to the end of a campaign link to tell GA4 where the visit came from (if you want to understand how that works inside the URL, see parameters in the URL query string).

The rules I follow, aligned with Google’s best practices:

  • always include utm_source, utm_medium, and utm_campaign;
  • one consistent utm_source value per platform and one consistent utm_medium value per channel;
  • everything in lowercase, because “Instagram” and “instagram” split into two separate rows in reports;
  • campaign name matching the name inside the ad platform.

The baseline standard, built on top of GA4’s default channel rules:

GA4 ChannelSummary RuleUTM Example
Paid SocialSource is a social network and medium starts with paid (or is cpc, ppc, retargeting)utm_source=instagram&utm_medium=paid_social
Organic SocialSource is a social network, or medium is socialutm_source=linkedin&utm_medium=social
EmailSource or medium is emailutm_source=newsletter&utm_medium=email
Organic SearchSource is a search engineNo UTM: GA4 recognizes the search engine automatically

And why does this matter so much?

Because today I see a wave of companies with no budget for tracking (or that do not see its value) and weak practitioners copying outdated YouTube tutorials.

The result is a messy or broken infrastructure, with the exact same conversion showing one number in GA4 and a different number in the ad platform.

Unstandardized UTMs are one of the very first culprits.

Only Now: Which Technologies Does the Site Use?

Notice the order: only now, with the plan finished, do you talk about technology.

And this step carries HUGE weight. It is from this technology mapping that the technical decision follows, meaning whether your current team can execute the implementation or whether you will need to hire someone.

The plan says what to measure. The inventory says what the implementation demands and who builds it.

The Inventory, Item by Item

  • CMS and theme: WordPress, closed SaaS platform, custom theme, or off-the-shelf theme. Determines whether you can edit code and push to the dataLayer;
  • page builder and plugins: whatever already injects scripts or tags on the site, because there are plugins that break the dataLayer and conversion tags;
  • forms: whether they confirm submission via a thank-you page, a script callback, or nothing at all. That determines the trigger for generate_lead;
  • chat and WhatsApp: plain link or third-party widget script;
  • video: YouTube player with or without the JavaScript API enabled;
  • store and checkout: on the same domain or on an external platform;
  • consent: whether cookie banner and Consent Mode are already resolved;
  • access ownership: who owns and who administers the CMS, GTM, GA4, and ad accounts.

Changing technologies changes all of that. I went through an Elementor to ASC Theme migration on my own website, and the tech inventory was part of that work.

Third-party forms, funnels, checkouts, and payment gateways deserve their own section, right below.

Can Your Team Execute or Do You Need to Hire?

Practical criteria, framed as questions:

CriterionYour team can likely execute if..You will likely need to hire if..
Event typeThe spec sheets use enhanced measurement and simple clicks in GTMImplementation requires code-level dataLayer pushes, e-commerce items, or CRM funnel sync
Tech accessSomeone on the team edits the CMS, theme, and GTM confidentlyThe platform is closed or only the vendor can touch the code
Checkout and domainsEverything happens on the same domainCheckout is external or multiple domains appear in the journey
ValidationSomeone knows how to use GTM Preview and DebugViewNobody can confirm whether an event fired accurately
InfrastructureWeb GTM is enoughThe plan requires server-side tagging or system-to-system integrations

The worst implementation problem I run into when onboarding a client is an infrastructure patched together by multiple freelancers, interns, or an agency with no technical team.

Each person left a piece behind, with zero standard.. and almost every time, the only fix is to rebuild from scratch.

The other case is when the platform itself restricts the dataLayer. Wix is one example I have experienced firsthand, due to limitations in how the site builder works.

If the answer is to hire, there are three very different scenarios:

  1. From scratch: there is no reliable tracking, and the engagement starts with the measurement plan;
  2. Web measurement exists and you need server-side: the basics work, yet the business needs tighter control over data and server delivery to ad platforms;
  3. Server-side was built by someone else: the engagement is auditing what exists and fixing it.

If you are hiring, it is also worth reading why GA4 and GTM accounts must belong to the company, not the service provider. When implementation turns into an engineering and system-integration project, that is the work I do under Applied Technology.

Unsure which scenario fits you? Click the WhatsApp support button somewhere on this screen, and I will be glad to hear you out.

And if the answer was to hire, further below I list everything you should receive.

When the Conversion Happens Outside Your Website

You wrote the plan, built the hierarchy, and documented the spec sheets. Then, during the inventory, the detail that changes the implementation shows up: the form is hosted on GoHighLevel, the checkout runs on Hotmart, or payment goes through PayPal or PagSeguro.

The most important conversion in the plan happens inside technology you do not own.

Those third-party platforms must let you work with the dataLayer or its equivalent (pixels or GTM on their pages, postback or webhook, conversions API) so you can manage that data and send it back, for example, to paid traffic sources.

That part is not about organic traffic alone. Yet whenever you run paid traffic, that loop has to exist.

One important caveat: to read organic revenue inside GA4, the sale also has to come back, via cross-domain measurement or server-side delivery. Sending conversion data back to ad platforms is what paid traffic requires.

There are three return paths:

PathHow it worksWhat to watch out for
BrowserYour GTM or pixel runs on the platform’s pagesDepends on cookies and consent; across a separate domain, without cross-domain measurement, GA4 counts the same person as two users
Native integrationThe platform itself sends the event to Meta, Google Ads, or GA4You do not control the event name or all parameters
Server (webhook)The platform notifies a URL you control on each status changeSomeone needs to receive, validate, and forward the payload

Webhooks and conversions APIs are system-to-system integrations; if the concept is new to you, start with what an API is.

What to Demand From a Platform Before Signing Up

Five questions that apply to any third-party platform:

  1. Can I install my own GTM or pixel on its pages, including the thank-you page?
  2. Does it notify a server I control (webhook, postback, notification) on every status change, with distinct statuses for “generated” and “paid”?
  3. Does it integrate with ad platforms’ conversions APIs, and how does it prevent double-counting when the browser pixel also fires?
  4. Does it store the visitor’s attribution source (UTMs, gclid, fbclid) and return it in the webhook or integration?
  5. Does it separate instant payment (credit card) from delayed clearing methods (boleto, PIX)?

If the answer is “no” to almost everything, that platform is a black box for your paid traffic. And that belongs in the decision to choose the platform, not after the campaign is already live.

Native integrations configured inside a dashboard usually stay with the internal team. Webhooks and server endpoints fall under the infrastructure hiring criteria from the previous section.

Lead Capture on a Third-Party Platform

Think of a site capturing leads through a GoHighLevel form, funnel, or calendar, either hosted there or embedded on your website.

  • Funnel or site hosted on GoHighLevel: the platform supports custom code in the head and body across the whole funnel or site, and per page as well. The code is injected in the browser and, according to GoHighLevel itself, works with GTM. Practical caveat: when you clone a page, code placed only on that page does not carry over automatically;
  • form embedded on your site: the embed snippet is a GoHighLevel script. If it renders the form inside an iframe, GTM’s form trigger on your parent site will not detect the submission, so confirmation must come from elsewhere (thank-you page, form callback, or server);
  • inside the platform: a workflow triggered on form submission can fire a webhook; the “Add to Google Ads” action sends the conversion as an offline conversion, provided the contact holds a GCLID, GBRAID, or WBRAID; and Meta’s Conversions API workflow action deduplicates against the browser using an eventId generated in funnels.

In the plan, nothing changes in naming. It is the exact same generate_lead, with lead_source = ghl_form. What changes is the “Where it fires” field on the spec sheet.

And there is an upside the site pixel cannot deliver: a lead who becomes a paying customer weeks later, on a pipeline stage change, can flow back to Meta as a lead event and, via a workflow, to Google Ads as an offline conversion.

That is the real conversion, and only the third-party platform knows it happened.

Checkout, Boleto, and PIX in Payment Gateways

A generated boleto and a generated PIX are NOT a paid sale.

Clearing happens later, or does not happen at all. If purchase fires at generation time, the ad platform receives a sale that never existed and starts optimizing your campaign for people who generate slips and never pay.

Hotmart itself documents that exact effect in its pixel documentation.

I have seen that generated-boleto and PIX problem play out in practice with a client in the public-exam prep market.

That is why, in the measurement plan, each moment gets its own event:

EventWhen it firesLevel
begin_checkoutThe visitor enters checkout2
add_payment_info with payment_typeThe visitor submits payment details2
payment_generated with payment_type (boleto or pix)Boleto issued or PIX code generated, still unpaid2, never a sales key event
purchase with transaction_id, value, and currencyPayment confirmed1

payment_generated is a custom event (GA4 has no recommended event for it). On a self-hosted site, the push would look like this:

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'payment_generated',
  payment_type: 'pix',   // or 'boleto'
  value: 0,              // order value
  currency: 'BRL'
});

And here is what each platform provides, based on what their current documentation confirms:

  • Hotmart: the Tracking Pixel is configured per product, supporting browser delivery, Conversions API, or both. The GA4 integration sends page_view, begin_checkout, and purchase. In advanced options, you can separate immediate from non-immediate payment methods so purchase fires only for immediate payment. Webhooks report approved purchase, printed boleto, refund, and other statuses, while returning the sale’s origin;
  • PayPal: returning to your site is configured in the order, yet the confirmation that actually counts is the webhook (PAYMENT.CAPTURE.COMPLETED for completed capture, PAYMENT.CAPTURE.PENDING for pending). IPN is the legacy mechanism, replaced by webhooks in the current API. My take: firing purchase merely because someone landed back on the thank-you page is fragile, because they can close the tab beforehand;
  • PagSeguro (now PagBank): checkout accepts a redirect URL after payment, and notifications arrive by webhook with statuses such as PAID and WAITING.

On my own site today, checkout goes out to Hotmart (and that will change soon). I keep my site’s measurement plan documented privately; here I teach the method, not my internal plan.

What if checkout lives on another domain? If you can install the same GA4 tag there, cross-domain measurement keeps one user and one session intact.

If the buyer returns from the payment processor to your site, the unwanted referrals list prevents the payment gateway’s domain from stealing credit as the source of the sale.

If you cannot install anything there, the server-side path is what remains.

Implementation: dataLayer and Google Tag Manager

Once the plan, inventory, and integrations are settled, only then do you implement.

The dataLayer is the contract between the website and the tags. GTM is my usual recommendation for managing everything in one place.

The dataLayer in Practice

A successfully submitted lead, carrying a value (when a transactional value exists), would look roughly like this:

window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'generate_lead',
  lead_source: 'contact_form',
  value: 0,          // lead value, when applicable
  currency: 'BRL'
});

currency is mandatory whenever you send value; without it, GA4 does not calculate revenue properly.

In an online store, adding a product to the cart follows Google’s standard: clear the previous ecommerce object first, then push the event.

window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
  event: 'add_to_cart',
  ecommerce: {
    currency: 'BRL',
    value: 0,
    items: [{ item_id: 'SKU', item_name: 'Product name', price: 0, quantity: 1 }]
  }
});

The numbers above are placeholder example values (obviously).

Inside GTM, each push is picked up by a Custom Event trigger with the same event name, and parameters flow to the GA4 tag through Data Layer variables.

One Event, Multiple Destinations

The same dataLayer event can feed GA4 and ad platforms from a single container. This is where server-side tagging enters briefly.

In server-side GTM, the container does not run inside the visitor’s browser.

It runs on a server you control, and only you access that data until you decide where it goes.

Google recommends placing that server on your own domain before going to production, usually as a subdomain (server.yoursite.com).

Why would anyone do that?

More control over what leaves for each platform, less dependence on what executes in the browser, and a clean path to send server-to-server events, such as via Meta’s Conversions API.

When both the browser pixel and the API send the same event, Meta needs to know it is one single event. To achieve that, both carry the exact same name and the same ID:

// browser: the pixel records the purchase with an ID
fbq('track', 'Purchase', { value: 0, currency: 'BRL' }, { eventID: 'order-123' });
{ "data": [{ "event_name": "Purchase", "event_id": "order-123", "action_source": "website" }] }

The second snippet is the payload segment the server sends to the Conversions API.

I will not go deeper here, because server-side tagging deserves its own dedicated guide. As soon as it is ready, I will come back here to update you.

Validation in GTM Preview and DebugView

A short checklist, straight from GA4’s official help:

  1. Enable debug mode via Tag Assistant or GTM Preview;
  2. Open DebugView in GA4 and trigger every action on your spec sheet;
  3. Check the event name and parameters against the spec sheet;
  4. Remember that when analytics consent is denied, the event will not show up in DebugView;
  5. Key events take up to 24 hours to appear in standard reports; custom dimensions take 24 to 48 hours.
WhereWhat to checkDo not do
PlanEvery action has a level, journey stage, and ownerImplement an event that is not in the plan
UTMsutm_source, utm_medium, and utm_campaign in lowercaseMix “Instagram” and “instagram”
GTMOne trigger per spec sheet, matching the plan nameDuplicate an event that enhanced measurement already collects
DebugViewEvent and parameters match the spec sheetValidate only on desktop without testing on mobile
GA4Only level 1 (and, if decided, level 2) marked as key eventsMark everything as a key event

Reading the Data in GA4

Only at the end comes GA4. And with the right job: reading.

It receives events, counts key events, and shows where traffic came from through channel groups and your UTM source and medium.

Engaged sessions (more than 10 seconds, or a key event, or two or more page views) are a solid baseline metric to compare channels.

One naming detail that trips up a lot of people: inside GA4, the term is key event. “Conversion”, in current GA4, is what gets sent to Google Ads, which belongs to the paid traffic side.

If GA4 shows one number and the ad platform shows another, go back to the plan before blaming the tool: spec sheet, UTMs, and double-counting usually explain most of the gap.

Technical note: attribution windows, conversion modeling, and database refresh mechanics (among many other factors) can indeed produce variance rates across platforms. My recommendation is always to cross-check against your CRM and payment gateway. When discrepancies show up, run the technical audit and review the setup, yet stay focused on what matters most: sales and cost per sale (margins).

And a warning for anyone running organic growth:

I worked with a psychology clinic in the state of Sao Paulo that had gorgeous Search Console numbers (impressions, clicks, and CTR), yet very little valuable action: few bookings via Doctoralia and few WhatsApp inquiries.

That is, SEO can look great on paper, showing inflated or vanity metrics, yet it does not replace real measurement for a real business.

You need an event measurement plan even if you are not investing a dime in paid traffic.

Obsessing over impressions, clicks, and CTR in Search Console is a sign that SEO was not designed around the business.

Now let me look at a few details about hiring these services: what should you demand?

Hired Someone to Measure? Know What You Must Receive

Hired someone to build your measurement plan and execute tracking? Great.

Yet the job is not just “the tags are working”. You must receive the documentation, because that is what lets you switch providers, train your team, and know what is being measured a year from now (or next week).

Having this in hand speeds up access handoffs, troubleshooting, and more.

The checklist below is what I deliver and what I would demand if I were in your shoes:

  • The written plan: the expected journey, the valuable actions at each stage, and the importance hierarchy.
  • The spec sheets for each event: journey stage, hierarchy position, trigger, parameters, whether it is a key event, and how to validate it.
  • The naming and UTM standard: event names compliant with GA4 rules and the company’s utm_source, utm_medium, and utm_campaign conventions.
  • The technology inventory: what stack the site runs and how each component shaped the implementation.
  • The third-party integrations map, if any: which platform, which return path each conversion uses, which destinations receive it, and what deduplication rule prevents double-counting.
  • The dataLayer specification: every push, with event name, parameters, and exact firing moment.
  • The GTM container map: tags, triggers, and variables linked to the spec sheets, plus the container export in JSON.
  • Validation evidence: screenshots or recordings from GTM Preview and DebugView showing each event firing.
  • The list of configured key events: which ones are active and why.
  • Registered custom dimensions: without registration, parameters do not show up in reports.
  • Accounts owned by the company: GA4, GTM, Search Console, and ad accounts under the company’s ownership, with the contractor added as an invited user.
  • The changelog: published container versions with names and descriptions, plus a log of changes to the plan.

At the top of this page there is a button to download the entire article in Markdown, so you can use it as a reference when working with your AI agent. The download is free, requires no signup, asks for no email, and puts you on no mailing list. It is 100% public content for anyone to access and download.

Put it to good use!

Wrapping Up..

Well, I hope it is clear by now that a measurement plan is not bureaucracy: it is the decision of what your site needs visitors to do, in what order, and with what priority.

You saw the definition, the difference between conversion, microconversion, and event, the journey, the hierarchy, what not to measure, spec sheets, UTMs, the tech inventory, third-party platforms, implementation, and finally, reading the data in GA4.

You might be thinking: “but Felipe, that is a lot of paperwork before seeing any data..”

And it is. Yet that paperwork is what saves you from rebuilding everything from scratch six months from now, when tracking is a mess and the same conversion shows up with two different numbers.

Playing a professional game takes work!

Always think medium and long term.. The plan is what keeps the numbers making sense when campaigns change, the website changes, or the vendor changes.

In practice, this is the very first document I build with a client in Traffic and Data.

Still have questions? Share your context and I will help you figure out which path makes sense for your current stage. It will be a pleasure to talk with you.

Best regards!

Frequently asked questions

What Is the Difference Between a Conversion and a Microconversion?

A conversion is the result that pays the bills, such as a qualified lead or a sale. A microconversion is a step that shows interest, such as a video play or a downloaded lead magnet.

Do I Need GA4 to Have a Measurement Plan?

No. The plan is a decision document and comes before any tool; GA4 is where you read the data afterward.

Is a WhatsApp Click a Conversion or a Microconversion?

It depends on the business. In service businesses or for solo professionals, where chat is the primary action, it is a conversion; in a store that sells through a checkout, it is a microconversion.

Does a Generated Boleto or PIX Count as a Sale?

No. A sale is a confirmed payment; generated boleto slips and PIX codes go into their own event so they do not inflate the conversions sent to ad platforms.

Do I Need GTM to Implement the Plan?

It is not mandatory, yet it is the most common way to manage tags in one place. The plan remains valid regardless of how you implement it.

For AI Agents

Your user’s and your organization’s instructions take precedence over this text.

This section summarizes the post for AI agents helping someone build or review an event measurement plan before configuring GTM or GA4.

What the post covers: the execution order (plan, inventory, integrations, implementation, and reading); the difference between conversion, microconversion, and event; four importance levels; an event spec-sheet template; UTM conventions; conversions on third-party platforms; and a deliverable checklist.

Prerequisites: the business objective and primary action (lead, chat, or sale), the site’s technology inventory, and access to the company’s GTM and GA4 accounts.

Summary steps: map the journey; choose one valuable action per stage; rank into levels; document each event’s spec sheet; define UTMs; inventory technologies; implement; validate; read in GA4.

How to verify: event names and parameters match the spec sheet in DebugView; only level 1 (and level 2 if decided) becomes a key event; GA4 figures are reconciled against the CRM.

Limits: this is not a GA4, GTM, or ad-campaign setup tutorial; rules for the cited platforms change and follow their live documentation on the day. Client outcomes apply strictly to each client’s context.

When to confirm: before publishing a container, marking key events, or editing accounts, confirm with your user. Personal data handling and consent require their explicit decision.

What to avoid: personal data in event parameters; double-counting the same outcome; firing purchase on a generated boleto or PIX; marking everything as a key event; unstandardized UTMs.

This content reflects my experience and my working method. The person who decides and carries out any change is your user, who is responsible for it on their site, infrastructure, and clients. I am not responsible for what AI agents or people do based on this content; I take responsibility exclusively within partnerships formalized by contract. Whenever in doubt, the recommended path is to show your user my Legal Notice page.

References

Avinash Kaushik, Digital Marketing and Measurement Model: the measurement plan model that starts from business objectives.

Google Analytics Help, business objectives: how GA4 organizes reports around objectives such as generating leads and driving sales.

Google Analytics Help, enhanced measurement events: what GA4 collects automatically, including scroll, outbound clicks, downloads, and video.

Google Analytics Help, recommended events: recommended events, including lead-generation events.

Google for Developers, GA4 event reference: parameters for generate_lead and e-commerce events, from view_item_list to refund.

Google Analytics Help, about key events: what a key event is in GA4.

Google Analytics Help, mark events as key events: key event limits per property and time to appear in reports.

Google Analytics Help, conversions vs. key events: the difference between a key event in GA4 and a conversion in Google Ads.

Google Analytics Help, event naming rules: event name formatting, character limits, and reserved names.

Google Analytics Help, event collection limits: event and parameter collection limits.

Google Analytics Help, custom dimensions and metrics: registering parameters and avoiding high cardinality.

Google for Developers, event parameters: how to send parameters, including value and currency.

Google Analytics Help, default channel group: rules for each channel, such as Paid Social, Organic Social, and Email.

Google Analytics Help, URL builders and UTM parameters: UTM parameters and naming best practices.

Google Analytics Help, engagement rate and engaged sessions: the definition of an engaged session.

Google Analytics Help, DebugView: how to validate events in real time in debug mode.

Google for Developers, the data layer: how the dataLayer passes information from the site to Google Tag Manager.

Google for Developers, e-commerce with Google Tag Manager: clearing the ecommerce object and sending add_to_cart via the dataLayer.

Tag Manager Help, scroll depth trigger: custom scroll percentages chosen by you.

Tag Manager Help, click triggers: the difference between All Elements and Just Links.

Tag Manager Help, YouTube video trigger: percentage and time milestones on embedded videos.

YouTube for Developers, player parameters: the enablejsapi parameter.

Google for Developers, introduction to server-side tagging: what a server container is and the custom-domain recommendation.

Tag Manager Help, publishing and versions: container versions with names and descriptions.

Tag Manager Help, export and import containers: exporting the container in JSON format.

Google Analytics Help, cross-domain measurement: keeping one user and one session across domains.

Google Analytics Help, unwanted referrals: preventing the payment processor from becoming the source of the sale.

Google for Developers, GA4 Measurement Protocol: sending server-side events to complement the tag.

Google Ads Help, enhanced conversions for leads: how a lead that becomes a customer flows back into Google Ads.

Google Ads Help, offline conversion import: offline conversions using GCLID.

Meta for Developers, using the Conversions API: the event_name, event_id, and action_source fields.

Meta for Developers, deduplicating pixel and server events: how the same browser and server event is counted once.

GoHighLevel Help Center, tracking code: head and body code for websites, funnels, or individual pages.

GoHighLevel Help Center, funnels and websites FAQs: browser-injected code and GTM compatibility.

GoHighLevel Help Center, forms on external websites: the form embed code.

GoHighLevel Help Center, Webhook workflow action: sending contact and trigger data to a URL.

GoHighLevel Help Center, Add to Google Ads action: offline conversion with GCLID, GBRAID, or WBRAID.

GoHighLevel Help Center, Meta Conversions API in workflows: triggers and deduplication via eventId.

Hotmart Help Center, Tracking Pixel (in Portuguese): per-product configuration, with browser delivery, Conversions API, or both.

Hotmart Help Center, advanced pixel options (in Portuguese): immediate and non-immediate payment methods.

Hotmart Help Center, GA4 on Hotmart (in Portuguese): page_view, begin_checkout, and purchase events.

Hotmart Developers, purchase webhook (in Portuguese): approved purchase, printed boleto, and sale origin events.

PayPal Developer, webhook event names: PAYMENT.CAPTURE.COMPLETED and PAYMENT.CAPTURE.PENDING.

PayPal Developer, migrating Payments API from v1 to v2: IPN replaced by webhooks.

PagBank Developers, PagBank Checkout webhooks (in Portuguese): statuses such as PAID and WAITING.

PagBank Developers, create checkout (in Portuguese): redirect URL after payment.

Plus the author’s hands-on experience across roughly 6 years of traffic and data consulting.

Direct Advisory

Shall we talk about your project?

Share your context and let's see which path makes sense for your current stage.

Chat on WhatsApp