Tracking best practices for GA4, Google Tag Manager and Meta Pixel
A checklist for GA4, Google Tag Manager and Meta Pixel on Learnyst: tracking plan, install once, purchase values, testing before ads and privacy.
Good tracking tells you which ads and posts bring paying learners, so you can spend your marketing budget where it works. This checklist collects the official Google and Meta recommendations for GA4, Google Tag Manager and the Meta Pixel, and shows how each applies on Learnyst. Each point links to its source.
Step-by-step guides: GA4, Google Tag Manager, Google Ads conversions, Meta Pixel, Meta Purchase tracking, domain verification, what you can and can't track and the troubleshooting checklist.
1. Plan before you install
- Write a one-page tracking plan. For each action, note the GA4 event, the Meta event, the values it needs, the Learnyst place it fires from and who owns it. For example: learner signs up = GA4
sign_up/ MetaCompleteRegistrationfrom Signup Tracking Code; course bought = GA4purchase/ MetaPurchasewith value, currency and order ID from Order Tracking Code. The event names and required values come from Google: Recommended events and Meta: Meta Pixel reference. - Use the standard event names exactly. GA4:
sign_up,begin_checkout,purchase,generate_lead(Google: Recommended events). Meta:CompleteRegistration,InitiateCheckout,Purchase,Lead, with the same capital letters (Meta: Meta Pixel reference). - Keep one GA4 property with one web stream for your school website (Google: [GA4] Google Analytics account structure), and one Meta Pixel for the site (Meta: Get started with the Meta Pixel).
- Keep a list of what is installed: each ID (
G-,GTM-,AW-, pixel ID), where it is pasted in Learnyst, who owns it and when it was added. In GTM, use version names and notes as your change log (Google: Publishing, versions, and approvals).
2. Install each tool once
- One install method per tool. "You should only use either the Google tag or Tag Manager, not both" (Google: [GA4] Troubleshoot tag setup on your website). "Don't add more than one Google tag to each page" (Google: Add a Google Analytics property (to a site that already has Analytics)). Duplicate Meta base code creates duplicate events (Meta: Meta Ads Data Advisor).
- Base code in one Learnyst place: Site Body Code in Code Snippets, plus the website builder's Header Code for builder pages. Sign-up code in Signup Tracking Code, purchase code in Order Tracking Code. See Add tracking code to your Learnyst website.
- Load base code in the page head. Google asks for the Google tag right after
<head>(Google: Add a Google Analytics property (to a site that already has Analytics)) and the GTM container as high in<head>as possible (Google: 2. Install a web container); Meta asks for the pixel between<head>and</head>(Meta: Get started with the Meta Pixel). Code in Site Body Code loads inside the<head>of your school site.

3. Send purchases with value, currency and a unique ID
- GA4
purchaseneedstransaction_idanditems, andcurrencywhenever you sendvalue(Google: Recommended events). Use a unique ID per order, never empty (Google: Minimize duplicate key events with transaction IDs). On Learnyst, usereceiptNumberandproductPricefrom Order Tracking Code. - Meta
Purchasemust includevalueandcurrency(Meta: Meta Pixel reference). - Google Ads: pass the value per order and a transaction ID, "the recommended option for purchases" (Google: Track transaction-specific conversion values; Google: Use a transaction ID to minimize duplicate conversions).
- Use one Purchase source per tool. If you also send server events to Meta (Conversions API), use the same event ID in the pixel and the server event so Meta can remove duplicates (Meta: Handling Duplicate Pixel and Conversions API Events). See Send your Learnyst school events to Meta and Google Conversions API.
4. Track pages by address, not by clicks
- Learnyst learner pages are built from web components, so click-based tracking (GTM Click triggers or button picking in Meta's setup tool) only sees the outer component, not the button. Use Signup Tracking Code and Order Tracking Code for sign-ups and purchases, and page address rules for page visits.
- Page changes inside the learner site still send a new page view with the new address. Build checkout events from addresses that contain
fast-checkout: a GTM Page View or History Change trigger (Google: History change trigger), or a GA4 event created frompage_view(Google: Rename and generate new events). - Limit event triggers to the pages that need them; never fire a purchase tag on all pages (Google: Page view triggers).
5. Test before you spend on ads
- Do one real sign-up and one paid test purchase (free courses don't create an order), then check every tool.
- GA4: Realtime for page views (Google: Realtime report) and DebugView for events and their values (Google: Monitor events in DebugView).
- GTM: always use Preview before Submit (Google: Preview and debug containers). Enter the exact address of your Learnyst site in Tag Assistant (Google: Troubleshoot with Tag Assistant).
- Meta: Test Events in Events Manager and the Meta Ads Data Advisor browser extension (formerly Meta Pixel Helper), with your ad blocker off (Meta: Meta Ads Data Advisor).
- Test on public pages in a private window, and test a website builder page and a school page separately.
6. Fix these GA4 settings on day one
- Check Data retention and choose 14 months (Google: Data retention).
- Add your payment gateway domains to unwanted referrals, so sales are credited to your campaigns, not the gateway (Google: Identify unwanted referrals).
- Filter out internal traffic; test the filter before making it active (Google: Filter out internal traffic).
- Mark
purchaseandsign_upas key events (Google: Create or modify key events). GA4 now calls conversions "key events" (Google: Conversions vs. key events in Google Analytics). - Tag campaign links with lowercase
utm_source,utm_mediumandutm_campaign(Google: URL builders: Collect campaign data with custom URLs).

7. Keep GTM safe
- Name every version and describe the change; publish the previous version if something breaks (Google: Publishing, versions, and approvals).
- Give Publish access only to people who need it, and keep two administrators (Google: Managing users and permissions).
- Review a gallery template's permissions before you add it (Google: Community Template Gallery).
- Check Tag Diagnostics regularly (Google: Troubleshoot tag issues with Tag Diagnostics).
8. Respect privacy
- No personal data in GA4: don't send email addresses, phone numbers or names in events or page addresses (Google: Best practices to avoid sending Personally Identifiable Information (PII)). Don't pass the Learnyst
emailormobileNumbervariables to GA4. - Meta: don't send sensitive information, show a clear notice on pages that use the pixel, and get consent where the law requires it (Meta: Meta Business Tools Terms).
- Learners in the EEA: collect consent and pass consent signals with consent mode (Google: Updates to consent mode for traffic in European Economic Area (EEA); Google: Consent mode on websites and mobile apps). In GTM, add consent checks to non-Google tags such as the Meta Pixel (Google: Tag Manager consent mode support).
- Check your own legal obligations for the countries you sell in.
Common mistakes
- The same tag in several places: two Code Snippets tabs, Code Snippets and GTM, or website and page level in the builder (Google: [GA4] Troubleshoot tag setup on your website).
- Purchase code in Site Body Code, so a purchase fires on every page.
valuewithoutcurrency, or an empty or repeated transaction ID (Google: Minimize duplicate key events with transaction IDs).- Two Meta Purchase sources (for example a URL rule and code, or pixel and server events without a shared event ID) (Meta: Handling Duplicate Pixel and Conversions API Events).
- Click triggers on learner pages instead of page address rules or sign-up and order code.
- Publishing GTM without Preview (Google: Preview and debug containers).
- Judging tracking from a page visit only, or testing with an ad blocker, behind login, or on the wrong domain.
- Mixed-case UTMs that split one source into several rows (Google: URL builders: Collect campaign data with custom URLs).
What to do next
- Add tracking code to your Learnyst website
- Set up Google Analytics 4 on your Learnyst website
- Install Google Tag Manager and track sign-ups and purchases
- Set up the Meta Pixel
If you have questions, contact us at support@learnyst.com.