×

Visitor stats: Google Analytics or PostHog

⏱ 50 min9 steps

tells you about searches on Google. It can't tell you how many people came to your site, or whether they found you through Facebook or a flyer. A visitor stats tool can. You'll pick one, put it on your site, check it's counting, and have Claude draft the privacy section that has to go with it. Have your site builder's login handy. Settings screens like these lose most people at least once, so take your time and lean on the fixes.

Search Console A free Google tool that shows whether Google has found your site and what people searched to get there. All words
×

Steps

Step 1 of 90 done · about 50 min left

  1. Step 1 of 9, not done yet
  2. Step 2 of 9, not done yet
  3. Step 3 of 9, not done yet
  4. Step 4 of 9, not done yet
  5. Step 5 of 9, not done yet
  6. Step 6 of 9, not done yet
  7. Step 7 of 9, not done yet
  8. Step 8 of 9, not done yet
  9. Step 9 of 9, not done yet
  1. Pick one tool

    Two tools come up most for small business websites.

    • Google Analytics is free, and it's Google's, like Search Console and your Business Profile. Many site builders, including Wix and Squarespace, have a setting for it. On Shopify, you add Google's free Google & YouTube app. Its screens are crowded, and it uses cookies.
    • PostHog starts free. Its web stats page is simpler to read, it can keep your data in Europe if you choose Europe when you sign up, and it has a for Claude, which the lesson "Connect it, so you don't have to export" covers. Its install guides cover Shopify, Webflow, WordPress and a few others, but not Wix or Squarespace, where you'd paste its code into a custom code setting. It uses cookies too, unless you set it up not to, which takes some code.

    If you're on a site builder and have no reason to pick otherwise, pick Google Analytics. Steps 3 to 6 walk through it.

    1. Pick one. Use one tool, not both.
    2. If you picked Google Analytics, skip Step 2.
    connector A link between Claude and another app or service, like Google Calendar or Linear, so Claude can read from it or work in it. All words
    That's not what I see
    I think my site already has one.
    Ask whoever built your site, or search your site builder's settings for "Google Analytics" or "tracking". If one is already set up, ask for access to it instead of adding a second.
  2. If you picked PostHog: set it up

    PostHog's own install guides cover each kind of site. Follow the one for yours.

    1. Sign up at posthog.com. Choose Europe if you want your data kept there.
    2. Follow its web analytics install guide for your site.
    3. Open your website on your phone.
    4. Check your visit on PostHog's Web analytics page.
    5. Go to Step 7.

    You should see:

    Your own visit shows on PostHog's Web analytics page.

    That's not what I see
    There's no install guide for my site builder.
    Use PostHog's HTML snippet guide, and paste the code into your builder's custom code or header code setting. If you can't find one, ask your builder's support team, or pick Google Analytics instead.
  3. Create your Google Analytics account

    An holds your business. A property inside it holds your website's numbers.

    1. Go to analytics.google.com and sign in with your business Google account.
    2. Click Start Measuring.
    3. Type your business name as the account name, leave the data-sharing boxes as they are, or untick any you don't want, and click Next.
    4. Type a property name, like your business name, pick your time zone and currency, and click Next.
    5. Pick your industry and business size, click Next, choose how you plan to use it, and click Create.
    6. Read and accept the Terms of Service and the Data Processing Amendment.
    account A sign-in with a company, like a domain, email or hosting. Whoever owns the account controls what's in it. All words
    That's not what I see
    The screens don't match this step.
    Google changes these screens now and then, so button names may differ. Google's help page "Set up Analytics for a website and/or app" has the current steps.
  4. Add your website and copy its ID

    A web stream connects the property to your website, and gives you the ID your site needs.

    1. Click Admin. Under Data collection and modification, click Data streams.
    2. Click Add stream, then Web.
    3. Type your website address and a name, like Website. Leave enhanced measurement on, as Google recommends.
    4. Click Create stream.
    5. Under Stream Details, copy the . It starts with G-.

    The ID goes into your site builder in the next step. It isn't a password: anyone can see it in your site's code.

    Measurement ID The short code, starting with G-, that tells Google Analytics which website a visit belongs to. All words
    That's not what I see
    Google already asked me for my website when I made the account.
    That was the web stream. Open **Admin**, then **Data streams**, click your website, and copy the Measurement ID from there.
  5. Put the ID into your site

    Google's help lists Wix, Squarespace, Shopify, GoDaddy, Google Sites and others as builders with a Google Analytics setting. On Shopify, it's done through the Google & YouTube app.

    1. Open your site builder's help pages and search for Google Analytics.
    2. Follow its steps, and paste your Measurement ID where it asks.
    3. Save, and publish your site.

    If someone else looks after your site, send them the Measurement ID and ask them to add it.

    That's not what I see
    My site builder asks for a "Google tag ID".
    Paste the ID that starts with G- from Step 4. Google's help calls it your Google tag ID in some places and your Measurement ID in others.
    My builder has no Google Analytics setting.
    In your web stream, click **View tag instructions**, then **Install manually**. Copy the code and paste it into your builder's custom code or header code setting. If you can't find one, ask your builder's support team.
  6. Check it's counting

    Google's help says data can take up to 30 minutes to start showing. The Realtime report shows visits as they happen.

    1. Open your website on your phone.
    2. In Google Analytics, click Reports in the menu on the left, then Realtime.

    You should see:

    Your own visit shows in the Realtime report, as one active user or more.

    That's not what I see
    Nothing shows after half an hour.
    Check you published the site after adding the ID, and that the ID matches exactly. An ad blocker in your can hide your own visit, so try again on your phone using cellular data, not your Wi-Fi.browser The app you use to visit websites, like Safari or Chrome. All words
  7. Have Claude draft your privacy section

    Visitor stats collect information about the people on your site, so your site needs to say so. Google's terms for Google Analytics say you must post a , say that you use Google Analytics and how it collects and processes data, and give notice of cookies. Google also suggests a link to its page "How Google uses information from sites or apps that use our services".

    drafts and sorts; a person approves anything with a price, a date or your name on it. This section goes out under your name, so you check every line against what your site really does.

    1. Open the or claude.ai and start a new chat.
    2. Copy the below.
    I've added [Google Analytics or PostHog] to my small business website to count visitors. Draft a short section for my website's privacy policy, in plain words. Say that I use it, and that it may collect things like which pages people visit, their rough location, their device and browser, and how they found my site. Write FILL IN for whether my setup uses cookies. Say who provides it, and how a visitor can block cookies or opt out. If it's Google Analytics, add a line pointing to Google's page "How Google uses information from sites or apps that use our services". Write FILL IN for every link, my business name, how to contact me and the date. Don't promise anything I haven't told you, and don't say it meets any particular law. Put a line at the top saying it's a draft for me to check, and a list at the end of each thing it says the tool collects, so I can check them against the tool's own help pages.
    1. Paste it into the chat. Replace the part in square brackets with the tool you picked.
    2. Send it.
    3. Fill in every FILL IN, and add the section to your site's privacy policy page.

    If you're unsure whether it covers everything, have a lawyer read it.

    privacy policy A page that tells visitors what information your site collects about them and what you do with it. All wordsAI Short for artificial intelligence. Here it means a program like Claude that reads what you write and writes back in plain words. All wordsClaude app Claude on your phone or computer, where you chat with it by typing. claude.ai is the same thing in a web browser. All wordsprompt What you type to Claude. A good one says what you want, how to work and what never to do. All words

    You should see:

    A short privacy section in plain words with a draft line at the top, FILL IN for cookies, every link, your business name, contact details and the date, and a list at the end of what it says the tool collects.

    That's not what I see
    I don't have a privacy policy at all.
    Reply: Draft a whole short privacy policy instead. Ask me one at a time what my site collects, like contact forms, sign-ups and visitor stats. Many site builders also have a privacy policy page you can start from.newsletter A regular email for people who signed up to hear about one topic. All words
    Claude wrote that my site meets a particular law.
    Delete that line, and reply: Don't say the policy meets any law. Describe only what my site does. Only a lawyer can tell you whether it meets the law.
×

Your challenge

Get one visitor stats tool counting on your site this week, and see your own visit come through. Then put your privacy section on your site, with every FILL IN filled in, before you look at the numbers again.

Last checked 2026-10-21

Start