How to Set Up Website Analytics with UseClick

Add privacy-first website analytics to any site in minutes. Track visitors, traffic sources, and page performance — no cookies, no consent banner required.

Guide

UseClick Website Analytics lets you measure all traffic to your website with a single lightweight script. Unlike legacy analytics tools, it is privacy-first by design: no cookies, no personal data, no consent banner required.

What Website Analytics tracks

  • Page views and unique visitors — total traffic volume and unique reach per page
  • Traffic sources — organic, direct, social, email, paid, and referral with full UTM attribution
  • Geography — country-level visitor distribution
  • Device, browser, and OS — mobile vs desktop split plus top browsers and operating systems
  • Top pages — which pages attract the most visitors and engagement
  • Real-time view — live visitor count and active pages
Privacy guarantee: UseClick never stores IP addresses, never places cookies on visitor devices, and never ties data to individual users. All metrics are aggregated. GDPR, CCPA, and PECR compliant with no configuration.

Step 1: Install the tracking script

Add the following script tag to the <head> section of every page you want to track. Replace yourdomain.com with your actual domain.

<!-- UseClick Website Analytics -->
<script
  async
  defer
  data-domain="yourdomain.com"
  src="https://cdn.useclick.io/analytics.js">
</script>

The script is under 1KB, loads asynchronously, and has no impact on your Core Web Vitals or page speed scores.

Step 2: Verify data is flowing

  1. Open your UseClick dashboard and navigate to Website Analytics
  2. Visit your website in a browser tab
  3. Return to the dashboard — you should see your visit appear in the real-time view within a few seconds
  4. Check the Domains tab to confirm your domain shows as active
Seeing data immediately? If the real-time counter goes up when you visit your site, the script is installed correctly and tracking is working.

Platform-specific installation

WordPress

The easiest method is to use a header injection plugin such as Insert Headers and Footers or WPCode. Paste the script tag into the Header section. Alternatively, add it directly to your theme's header.php before the closing </head> tag.

Shopify

  1. Go to Online Store → Themes → Edit code
  2. Open theme.liquid
  3. Paste the script tag before the closing </head> tag
  4. Save the file

Webflow

  1. Open Project Settings → Custom Code
  2. Paste the script tag into the Head Code section
  3. Publish your site

Next.js

Add the script to your root layout component using Next.js's built-in Script component for optimal loading:

import Script from 'next/script'

export default function RootLayout({ children }) {
  return (
    <html>
      <head>
        <Script
          defer
          data-domain="yourdomain.com"
          src="https://cdn.useclick.io/analytics.js"
        />
      </head>
      <body>{children}</body>
    </html>
  )
}

Plain HTML

Paste the script tag directly into your HTML file's <head> section. It works on any static or server-rendered HTML page without additional configuration.

Step 3: Set up UTM campaign tracking

UseClick Website Analytics automatically captures UTM parameters from incoming URLs. Any traffic tagged with utm_source, utm_medium, or utm_campaign is attributed correctly in your dashboard with no extra setup.

To create consistently tagged URLs for your campaigns, use the UTM Builder built into every UseClick link. This ensures accurate campaign attribution across your short links and website traffic in one place.

Understanding your dashboard

Traffic Overview

The main overview shows total visitors, page views, and bounce rate for your selected date range. Use the period comparison toggle to compare performance against the previous equivalent period.

Sources

The Sources section breaks down traffic by channel:

  • Organic — visitors from search engines
  • Direct — visitors who typed your URL or came from a bookmarked link
  • Social — traffic from social media platforms
  • Email — traffic from email campaigns (identified via referrer or UTM tags)
  • Referral — traffic from other websites linking to you
  • Campaign — traffic with UTM campaign parameters attached

Pages report

The Pages report ranks every tracked URL by visitor count. Use this to identify your highest-traffic content and pages that may need improvement.

Real-time

The real-time view shows active visitors and the pages they are currently viewing. This is useful during product launches, content releases, or campaign activations to monitor traffic spikes as they happen.

Connecting Website Analytics with Short Links

UseClick is the only platform that connects short link click data with website visitor data in one dashboard. When a visitor clicks a UseClick short link and lands on your tracked website, you can see the full journey:

  1. The short link records the click with source, device, and country
  2. The UTM parameters from the link carry attribution data to your website
  3. Website Analytics records the page visit with the correct campaign attribution

This end-to-end view eliminates the gap between your link performance data and your on-site analytics.

Pro tip: Create all campaign links using the UTM Builder so every click from every channel arrives at your website with consistent, readable attribution in your analytics dashboard.

Privacy and compliance

UseClick Website Analytics is built around data minimization:

  • No cookies are placed on visitor devices
  • IP addresses are never stored
  • No personal identifiers are collected or processed
  • All data is aggregated at the session level
  • GDPR, CCPA, and PECR compliant — no consent banner required

You can use UseClick Website Analytics on sites in the EU and UK without a cookie consent popup because no personal data is collected.

Related docs

  • UTM Builder — create consistent UTM tags for campaign attribution
  • Create Your First Link — pair website analytics with tracked short links
  • Campaigns — group links and measure campaign impact
  • Link in Bio — track all bio page clicks alongside website traffic