How do I connect Google Analytics to my blog?

Updated October 2026 · How we answer

Short answerCreate a Google Analytics property for your site, copy the measurement ID it gives you, and add it to your blog through your platform settings or an analytics plugin. Then check the real-time report to confirm data is arriving.

Creating the property

Sign in to Google Analytics with the account you want to own the data, then create a property for your website. Enter the site name, time zone, and currency. The tool will then provide a measurement ID and setup instructions for your platform.

Interface names and steps change over time, so follow the current setup guide on the official help pages if the screens look different.

Adding the tag to the blog

Many blogging platforms have a field in the settings where you paste the measurement ID. Others need a plugin or a snippet placed in the site header. Avoid adding the tag twice, since that can inflate the numbers. Use one method and remove duplicates left behind by older plugins. Once the tag works, set a monthly check that compares visits with the goals you care about, rather than watching numbers every day.

Confirming the data is flowing

Open the real-time report and visit your site in a private window. If the visit appears within a minute or two, the setup is working. Reports can take a day or more to fill in full history, so give them time before judging traffic trends.

Common mistakes

  • Installing two analytics plugins that both send the same data and double the counts.
  • Judging traffic from the first hour of reports and assuming the setup failed.
From our shopsShelf Ritual: Cozy bookish and dark-academia cases.