Skip to content

Web Analytics

Web analytics for small businesses: what it measures, the metrics worth watching, GA4 and Shopify setup, consent rules in Canada and a monthly routine.

msmtech7 min read · 2 October 2023
A team reviewing numbers at a whiteboard

Web analytics is the collection and analysis of data about how people find and use a website: where they come from, which pages they view, and whether they buy, book or get in touch. For a small business, web analytics turns guesses about ads, pages and prices into decisions you can check the following month.

How does web analytics work?

A small piece of code, called a tag, runs on every page and sends an event to the analytics tool each time a visitor loads a page, clicks a button or completes a purchase. The tool groups those events into sessions and users, then into the reports you read.

  • Events are single actions: a page view, an add to cart, a form sent.

  • Sessions are visits: a group of events from one browser within a period of activity.

  • Key events are the actions that matter to your business, such as a purchase or a quote request. Google Analytics calls them key events, and you choose which events count.

  • Sources record where a session came from: a search engine, a social network, an email, an ad or another site.

Because the tag relies on cookies or similar identifiers in the visitor’s browser, consent and ad blockers affect what it can record. Treat the numbers as a reliable trend, not an exact headcount.

What web analytics can tell you

  • Where visitors come from: search, social media, email, ads or other sites, and which of those bring buyers rather than browsers.

  • What they do on the site: the pages they visit, where they leave, and how far they get through checkout or a form.

  • Whether they convert: the share of visits that end in a sale, a booking or a contact form.

  • What changed: whether a new page, price or campaign moved any of the above.

The web analytics metrics worth watching

Metric

What it tells you

Sessions by source

Which channels bring traffic

Conversion rate

How many visits become sales or leads

Average order value

How much each sale is worth

Returning customer rate

Whether people come back

Top exit pages

Where visitors give up

Conversion rate is conversions divided by sessions. A store with 40 orders from 2,000 sessions converts at 2%. Look at each metric by source: a channel with lots of visits and few sales needs a different fix than a channel with few visits that almost always convert.

Which web analytics tool should you use?

Most small businesses need two or three free tools, not a paid platform. Use this rule:

  • If you sell on Shopify, start with Shopify Analytics. Its built-in reports cover sales, sessions, conversion and returning customers on every plan, with no setup.

  • If you run Google Ads, have a site outside Shopify, or want to follow visitors across several sites, add Google Analytics 4. Google Analytics is free, and Shopify connects to it through the Google & YouTube sales channel, as Shopify’s GA4 guide explains.

  • Always add Google Search Console. Its Performance report shows the searches that showed your pages, with clicks, impressions, click-through rate and average position. No other tool has that data.

  • Your ad platforms each report their own conversions. Check them against your store’s sales, since every platform tends to credit itself.

How to set up web analytics in an afternoon

  1. Create a GA4 property and a web data stream, then add the tag to your site. On Shopify, install the Google & YouTube channel and connect the property there.

  2. Mark your key events. For a store, purchase is usually tracked already; for a service business, mark the form submission or booking confirmation.

  3. Set data retention to 14 months. Standard GA4 properties keep user-level and event-level data for 2 or 14 months. The setting doesn’t affect standard reports, but explorations and funnels only reach back as far as it allows.

  4. Verify your site in Search Console and submit your sitemap.

  5. Exclude your own visits with an internal traffic filter, so staff testing doesn’t inflate the numbers.

  6. Set up consent before you launch, as described below.

  7. Place a test order or send a test form, and check that it appears in each tool within a day.

On the sites and stores msmtech builds, we connect analytics and Search Console before launch. A site that launches without them has no baseline, and the first month of data is the one you most want when you judge whether the new site works.

Web analytics, cookies and consent in Canada

Analytics in Canada must respect privacy law: tell visitors what you track, and ask for consent where your tracking goes beyond what they would reasonably expect. The Office of the Privacy Commissioner’s guidelines for obtaining meaningful consent say consent should generally be express, and that it is required when a use falls outside reasonable expectations or creates a meaningful risk of harm.

  • On Shopify, configure customer privacy settings for each region you sell to, so tracking follows each visitor’s choice.

  • With Google’s consent mode, tags don’t set analytics cookies when a visitor declines. They send cookieless pings instead, and GA4 models the missing activity. If you block the tags entirely until consent, nothing is collected from those visitors.

  • Expect lower totals once consent is respected, and compare trends over time rather than raw numbers before and after.

This is general information, not legal advice. Quebec’s privacy law and other provinces’ rules can add requirements, so check with a lawyer if you collect sensitive data.

Common web analytics mistakes

  • Adding up every platform’s conversions. Google, Meta and your email tool may each claim the same sale. Your store’s order count is the total.

  • Watching vanity metrics. Page views and followers rarely change a decision. Sales, leads and conversion rate by source do.

  • Judging a change after a few days. Wait for a full week of each weekday, or a full month for small sites.

  • Changing five things at once. You won’t know which one worked.

  • Leaving retention at 2 months. The history you need for a year-over-year comparison is gone before you want it.

A 30-minute monthly web analytics routine

  1. Compare sales, conversion rate and average order value with the previous month and the same month last year.

  2. Check traffic and conversion by source; move budget toward channels that sell.

  3. Look at the three pages where most visitors leave, and pick one to improve.

  4. Check Search Console for pages that gained or lost clicks.

  5. Write down what you changed, so next month’s numbers have an explanation.

Conversion rate stuck? Read how to find the bottleneck in a Shopify store →. To grow the traffic itself, see our guides to search engine optimization → and social media marketing →.

Planning a new site or store? Our Website Essentials and Ecommerce Suite packages include the build, and we set up the tracking above before launch. Talk to us about your website →

Frequently asked questions

Is GA4 free?

Yes. Google Analytics 4 is free for a standard property, which is enough for almost every small business. Google also offers Analytics 360, an enterprise version sold through its sales team, with longer data retention.

What is the difference between web analytics and Google Analytics?

Web analytics is the practice of measuring how people use a website. Google Analytics is one tool for doing it; Shopify Analytics, Search Console and privacy-focused tools are others.

How long does Google Analytics keep data?

A standard GA4 property keeps user-level and event-level data for 2 or 14 months, as you choose. Standard aggregated reports aren’t affected by that setting; explorations and funnel reports are.

Do I need a cookie banner for Google Analytics in Canada?

You need to tell visitors about tracking, and obtain consent where it goes beyond what they would reasonably expect, which a banner is the usual way to do. Quebec’s privacy law adds rules for technologies that can identify, locate or profile a person, so a banner that asks before tracking starts is the safe default for Canadian sites.

What is a good conversion rate for a website?

It depends on the industry, the price and the traffic source, so a published average tells you little about your own site. Compare your conversion rate with your own previous months, by source, and work on the channel or page that falls furthest behind.