Setting up Google Analytics


This video was created prior to the launch of the features: gtag.js and IP anonymization.

new course
CSS grid landing page tutorial (36min)

Lesson info

Lesson info

Google Analytics gives you valuable information about user behavior on and interaction with your website. It includes powerful metrics like how many users and pageviews a site is getting, where your traffic is coming from, how long people stay on the site, and how many of them are leaving the page without clicking other links (bounce rate). 

This helps many businesses figure out where to invest marketing dollars and measure the effectiveness of marketing campaigns. 

In this video, we'll show you how to set up Google Analytics for your Webflow sites so you can take advantage of these powerful tools.

Explore this project

Want to dig into the project featured in this video and see how everything is put together? We've included the full project we used when making this lesson, and we've shared the link right under this very paragraph.

View and clone this projectDownload lesson assets
Clone this projectDownload project assets


Google Analytics gives us valuable information about user behavior and interaction. For websites, these include powerful metrics like how many users and pageviews we're getting, how long people are spending on the many of them are leaving the page without clicking other links.

And it's interesting and sometimes really helpful to see where a lot of our traffic is coming from. What we're doing here is drilling down into specifics regarding location — where are these users coming from?

This example is for the Google Merchandise Store, so naturally we're getting tons of activity in the Bay Area.

There's so much to explore in Google Analytics, and these metrics can often give us additional clarity and insights into where our users are coming from. For a lot of businesses, this helps us to figure out where to put the right marketing dollars and it can even help us measure the effectiveness of a particular marketing campaign.

And you can integrate Google Analytics right into your Webflow project.

You can set it up right from your Project Settings under Integrations. To visit the Google Analytics site, all you have to do is press the link to the right. You'll need to be logged in to the Google account you want associated with Analytics.

If you're not already signed up with Analytics, you can do all of that...right here. And this page will prompt you to fill out all the relevant information including the URL of the website you're wanting to track with Analytics.

What we're after is our Tracking ID, so naturally, we'll press Get Tracking ID.

And this is it: just grab the full tracking ID including the letters U.A. and the hyphen so we can copy the ID to our clipboard, then go back over to our Integrations tab, and paste it in.

You can save changes, and then go up to Publish these changes, and then? You're ready to track.

And keep in mind: Analytics data takes some time to gather. And insights might not be available until a day or so after they're collected. But, once you're up and running, you can pick a date range and look at all sorts of valuable information.

In the meantime, you can check out the Google Analytics demo, and see how Google Merch is doing.

But that's how to get up and running inside Google Analytics with your Webflow project.