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.
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
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
- Open your UseClick dashboard and navigate to Website Analytics
- Visit your website in a browser tab
- Return to the dashboard. You should see your visit appear in the real-time view within a few seconds
- Check the Domains tab to confirm your domain shows as active
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
- Go to Online Store → Themes → Edit code
- Open
theme.liquid - Paste the script tag before the closing
</head>tag - Save the file
Webflow
- Open Project Settings → Custom Code
- Paste the script tag into the Head Code section
- 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:
- The short link records the click with source, device, and country
- The UTM parameters from the link carry attribution data to your website
- 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.
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.
Filtering your data
Click any value in a breakdown, a country, browser, source, or device, to filter the entire dashboard down to just that segment. All the charts and tables (traffic overview, top pages, sources, time patterns, funnels) update together so you can drill into one audience without leaving the page.
Remove a filter by clicking it again in the active filter list at the top of the dashboard.
Traffic patterns by day and hour
The Time Patterns view shows a heatmap of visits by day of week and hour of day, in your local timezone. Use it to find when your audience is actually online, so you can time launches, campaigns, and social posts for when people are most likely to see them.
Conversion goals
A conversion goal tracks a specific action visitors take on your site. UseClick supports three goal types:
- Pageview: counts a conversion whenever a visitor reaches a specific path, such as
/thank-youor/checkout/complete - Custom event: counts a conversion whenever your site fires a named event, for actions that don't have their own URL (a form submission or a button click)
- Revenue: counts a conversion and records a dollar value against it, for tracking actual sales, not just completed steps
To create a goal, go to Website Analytics → your site → Goals, give it a name, and choose its type. Pageview goals need a target path; revenue goals need a currency. Each goal can be toggled active or inactive, or deleted, at any time.
Funnels
A funnel tracks how visitors move through an ordered sequence of steps, so you can see exactly where they drop off. Each step is either a page (a URL path like /pricing) or an event (the same named events used by custom goals).
To build one, go to Website Analytics → your site → Funnels, name it, and add at least two steps in order. UseClick shows the session count at each step, so a signup funnel with steps like /pricing → /signup → account_created tells you exactly what percentage of visitors complete each stage, and where the biggest drop happens.
Sharing analytics publicly
You can make a website's analytics dashboard viewable by anyone with the link, without giving them access to your UseClick account. Toggle Share public stats from the website list to generate a public URL at useclick.io/stats/analytics/your-site-id. Turn it off at any time to make the dashboard private again.
Public stats pages also include an embeddable 3D traffic globe, a live visualization of where your visitors are connecting from. Copy the provided iframe embed code to drop it into a blog post, portfolio, or any page that accepts HTML.
Live visitor widget
Separate from the main analytics script, the live widget is an opt-in embeddable pill that shows a real-time visitor count directly on your site, with a link back to UseClick.io.
Copy the snippet from Website Analytics → your site → Live Widget and add it anywhere in your page's <head> or before the closing </body> tag:
<script defer data-site="your-site-id" data-theme="light" src="https://useclick.io/live.js"></script>
The data-theme attribute accepts light or dark to match your site's design.
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