Skip to content
Pingsold
Guide for founders

Add analytics to your website in 5 minutes

No analytics on your site yet? You're not alone. Pick a tool, paste one snippet, and you'll see who visits, where they come from and what they read. Then connect it to Pingsold read-only to show your traffic is real.

  1. 01Pick a tool
  2. 02Add the tag
  3. 03Check it works
  4. 04Connect it

1. Pick a tool

All five connect to Pingsold read-only. Not sure? Google Analytics 4 is free and the steps below are for it.

  • Free

    Google Analytics 4

    Most sites. Free, and what most people already know.

    Sets cookies: in the EU and UK you'll usually need a consent banner.

    Open Google Analytics 4
  • Paid

    Plausible

    A simple, privacy-friendly dashboard with one script tag.

    Cookieless, so usually no consent banner.

    Open Plausible
  • Paid

    Fathom

    The same idea as Plausible: simple and privacy-first.

    Cookieless, so usually no consent banner.

    Open Fathom
  • Free tier

    PostHog

    Product analytics too: funnels, session replays, feature flags.

    More to set up than a pageview script, and much more to explore.

    Open PostHog
  • Paid

    DataFast

    Seeing which traffic sources bring paying customers.

    Popular with indie hackers who want revenue next to visitors.

    Open DataFast

2. Set up Google Analytics 4

Using another tool? Its setup is the same idea: copy the snippet it shows you into your site's <head>, the same place the Google tag goes below.

  1. 1

    Create a property

    Go to analytics.google.com and sign in. Click Start measuring (or Admin → Create → Property), name it after your site and pick your time zone and currency.

  2. 2

    Add a web data stream

    Choose Web, enter your site's address (e.g. https://yourstartup.com) and click Create stream.

  3. 3

    Copy your Measurement ID

    On the stream's page, copy the Measurement ID. It looks like G-XXXXXXXXXX.

  4. 4

    Add the tag to your site

    Pick how your site is built below and follow the two steps.

  5. 5

    Check it works

    Open your site in another tab, then in Google Analytics go to Reports → Realtime. You should see yourself within a minute or two.

Where the tag goes, by how your site is built

Next.js
  1. Install Next.js's official helper: npm install @next/third-parties.
  2. Add the GoogleAnalytics component to your root layout with your Measurement ID, then deploy.
app/layout.tsx
// npm install @next/third-parties
// app/layout.tsx
import { GoogleAnalytics } from "@next/third-parties/google";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>{children}</body>
      <GoogleAnalytics gaId="G-XXXXXXXXXX" />
    </html>
  );
}
HTML, React, Vue, Svelte, Astro
  1. Paste the Google tag right after the opening <head> of every page (in a single-page app, that's index.html).
  2. Replace the Measurement ID with yours, then deploy.
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>
WordPress
  1. Install Google's free Site Kit plugin (Plugins → Add new → search “Site Kit by Google”).
  2. Open Site Kit, sign in with Google and turn on Analytics: it creates the property and adds the tag for you.
Webflow
  1. Open Site settings → Apps & integrations → Google Analytics.
  2. Paste your Measurement ID, save, and publish the site.
Framer, Wix, Squarespace and other builders
  1. Find the custom code (or “code injection”) setting for the head of every page, in the site settings.
  2. Paste the Google tag from the HTML tab there, save, and publish.

3. Connect it to Pingsold

On Google Analytics it's one click: Connect with Google, pick your property, done. We read site-wide totals only, read-only, and you can disconnect any time. Verified listings show their real visitors, get a dofollow link and the live traffic badge.

Questions

Which one should I pick?
If you're unsure, Google Analytics 4: it's free and you can be set up in five minutes. If you'd rather skip cookie banners, Plausible or Fathom. If you also want funnels and session replays, PostHog. All five connect to Pingsold read-only.
Will it slow my site down?
Barely. Each of these loads one small script asynchronously, so your page renders first. Next.js's GoogleAnalytics component also waits until the page is interactive.
Do I need a cookie banner?
Google Analytics sets cookies, so for visitors in the EU and UK you'll usually need consent first. Plausible and Fathom are cookieless and usually don't. This isn't legal advice: check what applies to you.
I use Google Tag Manager. Is that fine?
Yes. Add a Google tag with your Measurement ID inside Tag Manager instead of adding gtag.js separately, and publish the container.
I only have Vercel Web Analytics. Can I connect that?
Not yet: Vercel doesn't offer the read-only access we need. Add one of the tools above next to it and connect that one.
When do my numbers show on Pingsold?
After the first sync, usually within about 15 minutes of connecting. A brand-new Google Analytics property can take a day before its reports have data, so if it says there's nothing to count yet, connect again tomorrow.
What does connecting give you access to?
Read-only, site-wide totals: visitors, pageviews and top referring sites. Never anything about a single visitor, and you can disconnect at any time.