Conversion Tracking (Goals & Events in GA4)
Conversion tracking is the technical foundation of all marketing measurement. Without it, you're flying blind — unable to measure which campaigns generate revenue, which channels are profitable, or whether your CRO tests are working. Setting up complete, accurate conversion tracking is the most high-leverage technical task in digital marketing.
GA4 Events & Conversion Events
- In GA4, a conversion is any event you mark as important. There are no more 'Goals' like in Universal Analytics — everything is event-based.
- Automatically collected events: page_view, session_start, first_visit, user_engagement — collected with no extra setup.
- Enhanced measurement events: scroll (90% depth), click (outbound), view_search_results, video_start/progress/complete, file_download — enabled in Data Stream settings.
- Recommended events: GA4 has a list of standardized event names for common actions. For e-commerce: purchase, add_to_cart, begin_checkout, view_item. For leads: generate_lead, sign_up, contact.
- Custom events: Any event you define yourself. Example: 'pricing_page_clicks', 'demo_video_played', 'chat_initiated'. Requires code implementation or GTM tags.
Setting Up Key Conversion Events
- Thank-you page trigger: Simplest setup — fire a conversion event when the user lands on /thank-you or /order-confirmation page. Works well for lead gen and e-commerce confirmation pages.
- Purchase event with revenue: For e-commerce, pass transaction value with the purchase event: event('purchase', {transaction_id, value, currency, items:[]}). This enables revenue-based ROAS reporting.
- Form submission event: Fire form_submit or generate_lead event on successful form completion. Set up via GTM's form submission trigger.
- Button click event: Track clicks on specific CTAs — 'Book a Demo', 'Start Free Trial'. Use GTM click trigger with CSS selector to target specific buttons.
- Mark as Conversion in GA4: Admin → Events → Find event → Toggle 'Mark as conversion'. Now this event appears in Conversion reports and is used for attribution.
Google Tag Manager (GTM) for Conversion Tracking
- What GTM is: A tag management system that lets you add and manage tracking code on your website without editing the source code. One GTM snippet on your site, infinite tags manageable through the GTM interface.
- Why use GTM for conversions: Add Google Ads conversion tracking, Meta Pixel events, GA4 custom events, LinkedIn Insight Tag all through GTM — no developer needed for each implementation.
- GTM core concepts: Container (your GTM account for a website), Tags (the tracking code snippets that fire), Triggers (conditions that cause a tag to fire — page view, button click, form submission, etc.), Variables (dynamic values like page URL, click text, transaction value)
- Preview mode: GTM's built-in debugger shows exactly which tags fired on each page interaction — essential for verifying tracking implementation before publishing.
Tip
Tip
Practice Conversion Tracking Goals Events in GA4 in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
Focus on CLV > CPA — acquire customers worth more than they cost
Practice Task
Note
Practice Task — (1) Write a working example of Conversion Tracking Goals Events in GA4 from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with Conversion Tracking Goals Events in GA4 is skipping edge case testing — empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready digital marketing code.
Key Takeaways
- Conversion tracking is the technical foundation of all marketing measurement.
- In GA4, a conversion is any event you mark as important. There are no more 'Goals' like in Universal Analytics — everything is event-based.
- Automatically collected events: page_view, session_start, first_visit, user_engagement — collected with no extra setup.
- Enhanced measurement events: scroll (90% depth), click (outbound), view_search_results, video_start/progress/complete, file_download — enabled in Data Stream settings.