Tracking

How to track forms on Shopify: newsletters and leads

Shopify does not report newsletter signups, contact forms or quote requests to GA4 or ad platforms. How to track them as lead events, with three examples.

·5 min read·By the ROASaurus team

Key takeaways
  • Shopify and most form tools do not send form submissions to GA4, Meta or TikTok, so campaigns that bring in signups and enquiries look like they convert nothing.
  • Track each meaningful form as a lead event: generate_lead in GA4, Lead in Meta, SubmitForm in TikTok.
  • Count only submissions with an email or phone, skip search, cart and login forms, and respect the visitor's consent.
  • Leads are a step, not the goal: track which leads later buy, so you can judge campaigns on revenue and not only on signups.

To track forms on Shopify, send each meaningful form submission, such as a newsletter signup, a contact form or a quote request, as a lead event to your analytics and ad platforms: generate_lead in GA4, Lead in Meta, SubmitForm in TikTok. Shopify does not do this for you. Without it, a campaign that brings in hundreds of signups shows zero conversions, and the platforms optimize only for the few people who bought right away.

Why form tracking matters

A form submission is a shopper raising a hand before they buy. It tells you more about intent than a page view, and for many stores it is the main way first-time visitors start a relationship:

  • Newsletter and popup signups, often with a discount or a free guide.
  • Contact and enquiry forms for custom products, bulk orders or questions before a big purchase.
  • Quote and consultation requests for B2B, wholesale and high-ticket sales, often handled in a CRM afterwards.

Each of these is a step towards revenue. If none of them is measured, you can only judge marketing on immediate purchases, which undervalues everything that works by building interest first.

The problem: Shopify does not track forms

By default, a submitted form goes to wherever it was built to go: Shopify's customer list for its own newsletter and contact forms, Klaviyo for a Klaviyo popup, a CRM for an embedded CRM form. None of them tells GA4 or the ad platforms that it happened. The consequences:

What you seeWhat actually happened
A Meta campaign with 0 conversions in a week240 people signed up for the newsletter from it
GA4 shows no goal completions for a landing pageThe page's enquiry form brought in 35 quote requests
TikTok optimizes for purchases onlyMost first-time visitors are not ready to buy yet, so it has few examples to learn from
Example data. The forms worked; nobody told the platforms.

Ad platforms can only optimize for events they receive. If you want a campaign to find people likely to sign up or ask for a quote, it needs those events, with enough identifying data to match them.

How form tracking works

Visitor submits a formNewsletter, contact or quote form with an email or phone
Lead eventRecorded once per submission with the visitor's click ids and UTM tags
Analytics and ad platformsGA4 generate_lead, Meta Lead, TikTok SubmitForm and others
A lead event carries the same click context as a purchase, so the platform can tie it to an ad.

A good setup gets four things right:

  1. Count real leads only

    Fire on submit, never while typing, and only when the form contains an email or phone. Skip search, cart, checkout, login and password forms, or you count noise.

  2. Use each platform's lead event

    GA4 has generate_lead, Meta Lead, TikTok SubmitForm. Mark the event as a key event or conversion in each platform if you want to report or bid on it.

  3. Send it server-side as well

    A browser event alone can be blocked like any pixel. Sending the lead from a server too, with the same event id, makes delivery reliable without double counting.

  4. Respect consent

    A form submission with an email is personal data. Send identifying details to ad platforms only for visitors who accepted marketing.

Three examples

Newsletter signups for a store with long buying cycles

A fictional store selling premium kitchen equipment knows that most visitors do not buy on the first visit. It runs Meta ads to a free buying guide behind a newsletter form. With form tracking, every download arrives in Meta as a Lead, the team can see which ads bring in signups at what cost, and later which of those subscribers became customers.

Contact form enquiries for custom products

A fictional furniture store gets bulk enquiries through Shopify's built-in contact form. Tracked as leads, those enquiries show up in GA4 next to purchases, so campaigns that mostly drive enquiries no longer look unprofitable at first sight.

Quote requests for wholesale

A fictional packaging wholesaler handles quotes in its CRM. Tracking the quote form on the site shows which channels bring in requests. Connecting the CRM adds what happens next, from qualified lead to won deal, and lets that outcome go back to the ad platforms as an offline conversion.

From leads to revenue

Lead counts on their own can mislead: a campaign can bring in many signups that never buy. Measure the step after the lead too:

  • How many leads from each campaign placed a first order, and how fast.
  • The revenue and profit from customers who started as a lead.
  • For B2B, how many leads became qualified, became an opportunity and were won.

That is how you compare a lead campaign with a sales campaign on the same footing. Our guide to multi-channel attribution covers how to credit the channels that started the journey.

Form tracking in ROASaurus

ROASaurus captures forms on your storefront as leads, under Customers › Leads & pipeline. The setting Capture forms submitted on any page as leads (on CRM, calls & forms) is on by default. It records a lead when a form with an email or phone field is submitted, only with marketing consent; cart, checkout, account, search and password forms are skipped, and you can exclude any form by adding data-roasaurus-ignore to it.

gclid → /pages/wholesaleA visitor lands from a Google ad
submit #quote-form · emailThey request a quote; a lead is recorded with the click id
Meta: Lead · TikTok: SubmitFormBrowser and server send the lead with the same event id
GA4: generate_leadThe lead appears in analytics
HubSpot: deal wonLater the CRM stage arrives and is credited to the same click
Example lead in a fictional store, from ad click to won deal.

Each lead goes to every destination that has a lead event, including Meta, TikTok, GA4 and Google Ads; untick Lead on a pixel to stop it there. Under CRM, calls & forms you can also connect a CRM such as HubSpot, Salesforce or Pipedrive, booking tools and call tracking, so later stages (qualified, opportunity, won) are credited to the click that brought the lead in. Forms that do not submit a regular HTML form, such as some embedded popups, can send a lead with one line of code from the tracking script.

Next step

Sources

  1. Google Analytics: Recommended events (generate_lead)
  2. Meta Business Help: Standard events for the Meta Pixel
  3. TikTok for Business: Standard events and parameters
  4. Shopify Help Center: Contact form

In ROASaurus

Keep reading

AttributionMulti-channel, cross-channel and omnichannel attributionMulti-channel, cross-channel and omnichannel attribution compared: what each one credits, the models they use, a worked example and the usual pitfalls.Tracking"No recent conversions" in Google Ads: causes and fixesWhat "No recent conversions" (now "Awaiting conversions") means in Google Ads, how to tell a quiet week from a broken tag, and the fix.TrackingCookieless tracking for online stores: what still worksCookieless tracking for online stores: server-side events, modeling and fingerprinting compared, what each still measures and what consent requires.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How do I track newsletter signups on Shopify?

Send each signup as a lead event to GA4 (generate_lead) and your ad platforms (Lead in Meta, SubmitForm in TikTok), with the visitor's click ids. Shopify and most email tools do not do this for you.

Can I track Shopify contact form submissions as conversions?

Yes. Record the submission as a lead event when the form contains an email or phone, then mark that event as a key event in GA4 or a conversion in your ad platform.

How do I track Klaviyo or HubSpot forms on Shopify?

Forms that submit a normal HTML form can be captured on submit. Embedded forms that work in their own frame or script often need an extra line of code that sends the lead event, or a connection to the tool itself.

Should I optimize Meta or TikTok ads for leads instead of purchases?

For campaigns that build interest before a sale, leads can be a useful goal. Check which leads later buy, so the platform is not rewarded for cheap signups that never convert.

Is server-side form tracking better than browser tracking?

It is more reliable, because ad blockers cannot stop it. Run it next to the browser event with the same event id, and send identifying details only with marketing consent.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.