Documentation

Get webscount running on your site in a few minutes

Integration steps

  1. 1

    Create an account

    Sign up at webscount Cloud and log in to your dashboard. The free Hobby plan is enough to get started.

  2. 2

    Add your website

    Go to Settings → Websites → Add website. Enter your domain (e.g. example.com) and save. Copy the Website ID — you will need it in the next step.

  3. 3

    Install the tracking script

    Paste the snippet below into the <head> of every page you want to track. Replace YOUR_WEBSITE_ID with the ID from your dashboard.

    HTML
    <script defer src="https://cloud.webscount.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>
    Next.js (App Router)
    import Script from "next/script";
    
    <Script
      defer
      src="https://cloud.webscount.com/script.js"
      data-website-id="YOUR_WEBSITE_ID"
      strategy="afterInteractive"
    />
  4. 4

    Verify your data

    Visit your website, then open the webscount dashboard. You should see a pageview within a few seconds. If nothing appears, check that the Website ID is correct and the script is not blocked by an ad blocker.

Track custom events (optional)

Use webscount.track() to record button clicks, signups, or any custom interaction. Call it from your click handlers:

JavaScript
// Track a simple event
webscount.track("signup-button");

// Track with extra data
webscount.track("purchase", { plan: "pro", amount: 20 });

Ready to get started?

Open webscount Cloud