HomeWhat a Website Really Costs in Canada › How To Add Google Analytics To Website

How to add google analytics to website

How-to · Vol/mo CA ~480 (est) · KD 12 (est) · What a Website Really Costs in Canada

To add Google Analytics to your website, create a free Google Analytics 4 (GA4) account, set up a data stream for your site, then install the tracking tag, either by pasting the code into your site's header, using a plugin, or adding it through Google Tag Manager. Within minutes you'll start collecting visitor data. The whole process is free and takes about 15 minutes, though Canadian businesses should also configure it with privacy in mind.

Set up your Google Analytics account

Start by creating your free analytics account and property:

Google Analytics 4 is the current version; the older Universal Analytics has been retired. When you create a new property today, it's automatically GA4. Once your data stream is ready, Google generates the tracking code you'll add to your site in the next step.

Install the tracking code

There are three common ways to add the GA4 tag, depending on your setup:

For most small businesses, a plugin or website-builder integration is the easiest route. Many builders like Squarespace and Wix have a dedicated field where you simply paste your Measurement ID. After installing, use the Realtime report to confirm your own visit is being tracked.

Verify it's working and set up goals

Once installed, confirm everything is tracking before relying on the data:

Raw visitor counts are only the start. The real value comes from tracking the actions that drive your business. Configure GA4's key events to capture leads and sales, so you can see not just how many people visit but how many actually convert, and which channels send your best traffic.

Privacy and Canadian compliance (Law 25 and PIPEDA)

Analytics collects visitor data, so Canadian businesses must handle it responsibly. Two frameworks apply:

In practice, this means you should disclose your use of analytics and cookies in your privacy policy, and ideally use a cookie-consent banner that lets visitors opt in. You can also enable IP anonymization and configure data-retention settings in GA4. Getting this right protects both your visitors and your business. If you're unsure how to set up compliant tracking, a Canadian web agency can configure analytics and consent correctly for you.

FAQ

Is Google Analytics free?

Yes, Google Analytics 4 is free for the vast majority of websites, including small businesses. There's a paid enterprise version (Analytics 360) for very large organizations, but you're unlikely to need it. The free version provides detailed visitor, traffic-source, and conversion data that's more than enough for most small business needs.

Do I need to tell visitors I use Google Analytics?

In Canada, you should disclose your use of analytics and cookies in your privacy policy, and Quebec's Law 25 and PIPEDA push toward obtaining consent. A cookie-consent banner that lets visitors opt in is the standard approach. Being transparent about data collection protects your business and respects your visitors' privacy expectations.

How do I know Google Analytics is working?

Open your website in one browser tab and your Analytics Realtime report in another. If you see your own visit appear, tracking is working. You can also use Google's Tag Assistant tool to confirm the tag is installed and firing correctly. It can take 24 to 48 hours for full reports to populate with data.

Can I add Google Analytics without coding?

Yes. On WordPress, plugins like Site Kit connect Analytics in a few clicks. Website builders such as Squarespace and Wix have a field where you paste your Measurement ID. Google Tag Manager also lets you manage tags without editing site code directly. Coding is only needed if you're adding the tag manually to custom HTML.

Get expert help

Talk to Lead4Pro →