How to track online marketing results (GA4, Pixel, ROI)

Laptop with Google Analytics and marketing dashboard

Without tracking, marketing is guessing. You spend 1,000 EUR per month on Google Ads, you see that 'some people are coming' - but you don't know which campaign, which ad and which keyword actually brings sales. In this guide we walk through a complete tracking setup, step by step: GA4, Tag Manager, Meta Pixel and conversions in Google Ads. Professional setup is part of our advertising service and internet marketing - but you can start the basics yourself.

Table of contents:

Before the tools: define what you measure

The most common mistake we see in practice: a company installs GA4 and Pixel 'because you're supposed to', but nobody in the company knows what a conversion actually is for that business. Tools are just pipes - if you don't know what you want to measure, you'll get a pile of numbers and zero decisions.

So before writing any code, answer three questions:

  1. What is a conversion for you? For e-commerce it's a purchase, for a service business a submitted form or a call, for SaaS a signup.
  2. How much is that conversion worth in euros? If an average inquiry leads to a 500 EUR job and you close every fifth one, a single inquiry is worth 100 EUR.
  3. Which micro-steps do you track along the way? Pricing page views, add to cart, clicks on the phone number - the signals that precede a conversion.

With these answers, the whole setup takes a day or two. Without them, tracking becomes decoration in a dashboard nobody opens.

Google Analytics 4 (GA4)

GA4 is Google's analytics platform that replaced Universal Analytics in July 2023. The key difference: event-based tracking (everything is an event, not just a page load), better support for mobile apps, and machine learning that 'fills in' conversions that can't be measured directly.

Setup step by step
  1. At analytics.google.com create an Account - one per company.
  2. Inside the account create a Property for your site: name, time zone and currency (EUR or your local currency). Set the currency right away - changing it later doesn't fix historical data.
  3. Create a Web Data Stream with your site's URL - that's where you get the Measurement ID (format G-XXXXXXX).
  4. Don't paste that ID directly into the site's code - add it through Tag Manager (next section). It's cleaner and easier to maintain.
  5. In the Admin area mark your key events as Key Events (conversions): purchase, generate_lead, submitted form.

Check that it works: open Reports > Realtime, click around your site from another tab and watch whether your session appears. For more detailed testing use DebugView in the Admin area - it shows every event in real time, before it enters the standard reports.

The most important reports you track monthly: Acquisition (where traffic comes from), Engagement (what visitors do on the site), Monetization (what generates revenue) and Demographics (who your visitors are).

Google Tag Manager

Tag Manager is the 'central control panel' for all marketing tags - GA4, Meta Pixel, LinkedIn Insight, Hotjar, custom tags. Instead of adding code directly to the site for each platform (and begging the developer for every change), you manage everything from the GTM dashboard.

How to set it up
  1. At tagmanager.google.com create a Container for your site (type: Web).
  2. You get two code snippets - one goes into the head, the other right after the opening body tag. This is added once and it's the only job for the developer.
  3. In GTM create a Google Tag, enter your GA4 Measurement ID, and set the trigger to 'All Pages' - that makes GA4 measure every page.
  4. Click Preview, open your site through Tag Assistant and confirm the tag actually fires. Only then hit Publish.

GTM's logic is always the same: tag (what gets sent), trigger (when it gets sent) and variable (what data goes with it). Once you master that triangle, adding any new tool is a five-minute job - and preview mode guarantees you never publish blind.

Meta Pixel + Conversions API

Meta Pixel is the tracking code for Facebook and Instagram ads. Without it, Meta doesn't know what happens after the click on an ad - it can't optimize campaigns or build remarketing audiences.

Setup
  1. In Events Manager (part of Business Manager at business.facebook.com) create a Pixel/Dataset and note its ID.
  2. In GTM add the Pixel base code as a Custom HTML tag with the All Pages trigger (or use a ready-made community template for Meta).
  3. For standard events create separate tags with triggers tied to concrete actions - e.g. a click on the 'Add to cart' button or a visit to the thank-you page after purchase.
  4. Verify everything through the Test Events tab in Events Manager before launching campaigns.

Conversions API (CAPI) is the server-side complement - it sends conversions directly from your server, not through the browser, so it bypasses iOS blocking and ad blockers. Easiest options: the native Meta plugin for WooCommerce or Shopify (handles both Pixel and CAPI) or the Conversions API Gateway. The goal is an Event Match Quality score of 6 or higher in Events Manager.

Critical events you must track: PageView (every page), ViewContent (product view), AddToCart (adding to cart), InitiateCheckout (start of checkout), Purchase (completed purchase). More about Meta Ads campaigns themselves in Google Ads vs Meta Ads.

Marketing analytics dashboard with metrics
Multi-channel tracking

Conversion tracking in Google Ads

Conversions in Google Ads aren't automatic - you have to define them. Without that, you don't know which campaign brings sales, and Smart Bidding optimizes blind.

  1. In Google Ads go to Goals > Conversions and create a conversion action for every important action: purchase, submitted form, call.
  2. The cleanest path: link your Google Ads and GA4 accounts, then import Key Events from GA4 - one implementation, both systems covered.
  3. Assign a value to every conversion, even an estimated one. Without values, the algorithm treats a 50 EUR inquiry and a 5,000 EUR deal exactly the same.
  4. Keep your main conversion (purchase, inquiry) as Primary - it feeds the bidding. Set micro-actions as Secondary so they don't dilute optimization.

Bonus: Enhanced Conversions sends hashed first-party data (email, phone) to Google for better matching. In practice it noticeably lifts the number of attributed conversions, especially on iOS traffic.

iOS 14+ and privacy changes

Apple's 2021 change (App Tracking Transparency) 'doomed' traditional tracking. iPhone users choose whether to allow apps to track them - and most refuse. The result: Pixel and GA4 'lose' a portion of conversions that really happened.

Solutions that keep that loss to a minimum:

  • Conversions API (server-side tracking, doesn't depend on the browser)
  • Enhanced Conversions in Google
  • First-party data from your CRM (customer emails and phone numbers)
  • Modeling - Google and Meta statistically 'fill in' the missing conversions
  • Server-side Tag Manager (Stape or your own GTM server)
  • Google Consent Mode v2 - mandatory if you advertise to users in the EU

Reality check: tracking today captures the vast majority of conversions, but not all of them. That's still perfectly sufficient for campaign optimization - just don't expect the numbers in Ads, GA4 and your bank account to match to the cent.

How to calculate real ROI

The basic formula: ROI = (revenue - cost) / cost × 100%. Example: a 500 EUR monthly campaign brings 10 inquiries, two of which become 1,000 EUR jobs. ROI = (2,000 - 500) / 500 = 300%. But real marketing ROI also considers:

  • Lifetime Value (LTV) - a customer who spends 100 EUR now comes back five more times. The real LTV is 500 EUR, not 100.
  • Multi-touch attribution - a customer sees a Meta ad, then arrives from Google search three days later. Who deserves the conversion?
  • The time component - an SEO investment today keeps bringing revenue 18 months from now. It's not fair to count 'cost vs revenue' within a single month.
  • The brand effect - campaigns that don't bring direct sales but increase recognition (Meta brand awareness, YouTube).

The practical model we use: last-click attribution for short-term decisions (which campaign to scale today), and the data-driven model in GA4 for the long-term picture (how much each channel really contributes). Combining those two views gives you both speed and accuracy.

Frequently asked questions

Do I need both GA4 and Meta Pixel?

GA4 belongs on every website - it's free and it's the foundation of everything. You need the Pixel as soon as you plan Meta campaigns, and install it before you launch them: the Pixel collects data only from the moment of installation, so every week of delay means thinner audiences for targeting.

How much does a tracking setup cost?

The tools themselves are free (GA4, GTM, Pixel). You pay for the work: a basic setup for a brochure site is a job of a few hours, while e-commerce with CAPI and conversion values is a one-time investment of a few hundred euros at agencies in Serbia. Compare that to the budget you spend blind every month without tracking.

I have a WordPress site - does all of this apply?

Yes, the principles are exactly the same. You add the GTM snippet through your theme or a plugin, and WooCommerce has ready-made integrations for GA4 and Meta that send e-commerce events automatically. Setup is often even faster than on custom-built sites.

Conclusion

The order is always the same: measurement plan, then GTM, then GA4, then Pixel with CAPI, then conversions in Google Ads - and finally one report you actually look at every month. Set it up properly once, and every subsequent marketing decision gets easier, because it's driven by a number instead of a feeling.

Need a professional tracking setup, or can't see where your marketing budget 'leaks'? Our internet marketing service and advertising include complete tracking and a Looker Studio dashboard with clear numbers. Send an inquiry through the contact form and tell us what you're currently measuring - we take care of the rest.

Let's talk about your project!Let's talk about your project!