Tracking is usually the last thing anyone thinks about on a new site. The designs are signed off, the developers build it, and a week before launch someone asks what GA4 should be measuring.

By then every answer costs a change. So I've built a tool that starts where the site starts: the Figma file.

  • 33real Figma files it has been trained on, from shops and food delivery to travel, banking and apps
  • 1,035screens read, in eight languages
  • 0of the 33 designs had a cookie banner, though tracking can't start without one
  • 5order confirmation screens with no order number, which a purchase event needs

What it does.

Give it a link to a Figma design and it works through every screen, the way I would with a printout and a pen.

It decides what each screen is (a homepage, a product page, the basket, a checkout step, the confirmation, a sign-in), finds the buttons and forms that matter on each, and writes the tracking spec from that.

  1. Step 1

    Read the file

    Every page and frame, through Figma's API, with read-only access.

  2. Step 2

    Work out each screen

    From its name, its title and the words on it, in that order of trust.

  3. Step 3

    Find what people do

    Add to basket, checkout, sign up, book, donate, ask for a quote.

  4. Step 4

    Write the spec

    GA4's recommended events, the dataLayer push for each, and a hook for every button.

  5. Step 5

    Test the build

    The same spec becomes the acceptance tests for the finished site.

What you get.

The developer spec

Everything needed to build it.

  • Every event, the screen it fires on and the exact moment it fires
  • The dataLayer push for each one, with GA4's own parameter names
  • A data-track hook for every button, so a redesign never breaks tracking
  • A link to the exact Figma layer for each one

The measurement plan

One row per event and screen.

  • Ready for the business to review and sign off
  • Key events marked, custom events labelled as custom
  • The questions a design can't answer, listed for the people who can

Acceptance tests

The finished build checked against the plan.

  • One test per event, using the same hooks
  • Run by my automated testing once the site is on staging
  • A purchase checked to fire once, and not again on a refresh

It also reads the design for problems that will break tracking later, and lists them first, so they're fixed while they're still a change to a drawing:

Found in the 33 designsWhy it matters
No cookie banner, in all 33In the UK and EU, analytics and ad tags wait for consent. The banner needs designing too, with "Reject all" as easy as "Accept all".
A confirmation page with no order number, in 5A purchase needs a unique transaction ID, or refreshes and duplicates can't be told apart.
A shop with no confirmation page, in 4Without a page that loads once per order, there's nowhere reliable to send the purchase.
A shop with no basket, in 4If the real site has one, it needs view_cart and remove_from_cart, and the developers need to see it.

What 33 real designs taught it.

A tool like this is easy to build for a tidy example file and hard for real ones. So I trained it on 33 Figma files people have shared publicly, fixed every screen it got wrong, and kept each fix as a test, so it can't make the same mistake twice. Some of what real files threw at it:

  • Frame names lie. A frame called "PAYMENTS" was a product page, and two frames were both called "PAST ORDERS", one of them a checkout. The tool now trusts what's on a screen over its name, and lists the frames worth renaming.
  • Many screens have no name at all. "iPhone 13 Pro Max - 7" says nothing, so it reads the screen's own title instead, such as "My Orders" or "Change Password"
  • A calendar looks like a price list. A month of dates is a column of numbers, so it only counts something as a price if it has a currency, decimals or at least three figures.
  • Not every thank-you is a purchase. "Thank you for your contribution" and a password reset "Confirmation" aren't orders. A confirmation now needs an order, a booking or a payment on it.
  • Not every app is a shop. In a banking app, a list of balances isn't a product list. Without a shop in the file, it tracks sign-ups, transfers and new cards instead.
  • A budgeting category called "Cookie" isn't a cookie banner. That one was briefly counted as the only banner in all 33 files.

It now also handles hotel and car bookings, one-step food ordering, insurance quotes, demo requests, free trials, plan choices and donations, and screen names in English, Spanish, Portuguese, French, German, Italian, Vietnamese and Japanese.

Why before the build.

Most of the tracking problems I find in audits were decided long before anyone opened Tag Manager. A confirmation page that can be refreshed. A button with no stable name to hang a tag on. A checkout that skips a step the reports expect. Each one is cheap on a design and expensive on a live site.

Starting from the design also means the developers get the tracking in the same ticket as the page, not as a separate job after launch. And because the spec, the hooks and the acceptance tests all come from one place, what's measured on launch day is what was agreed.

What it can't do.

A design shows what a visitor sees, not what the business needs. It can't know which events matter most, what your product IDs look like or how refunds are handled, so those come back as questions. Figma's API can't open Community templates or Figma Sites files directly, and a file needs to be shared with read access.

The tool writes the first draft in minutes. Deciding what matters, and making sure it's built properly, is still my job.

If you have a site or app in design now, I can turn the Figma file into a reviewed spec and test the build before launch: that's launch-ready tracking. For a quick start on the business side, try the measurement plan builder.

Sources.

Sources checked on 19 November 2026.