Skip to main content
SendURL, home
Link trackingBy JackUpdated First published 16 min read

How to Track Link Clicks (With or Without Google Analytics)

Count clicks on any link you share, on your site or off it: which method sees what, what a click record contains, and how to pull the numbers out with code.

To track link clicks, measure either on the page (an analytics event) or at the link itself (a redirect link that logs each click before forwarding it). Google Analytics only sees clicks on pages that load its tag, so a link in an Instagram bio, an email, a PDF, a chat or on a poster needs a redirect link, which is free to set up and takes about two minutes.

Where the link lives decides the method.

This guide covers all three methods, shows what a click record contains, and ends with a checklist. It is the hub of the link tracking handbook; the other guides go deeper on who clicked your link, bot clicks and link previews, A/B tests and the best time to post, and every page in the handbook is listed further down.

Paste a link below to get a tracking link: a short link that counts each click before it sends the visitor on.

MethodWorks off your site?Needs a script?What you getCost
Analytics event (GA4 outbound click)No, only on pages that run the tagYes, the Google tagOne click event per outbound link click, tied to the visitor's sessionFree
Redirect link (short link)Yes, anywhere the link can be postedNoOne record per click: time, country, device, browser, referrerFree plans exist; paid plans add volume
Your email or SMS toolOnly in that tool's sendsNo, the tool rewrites the linksClicks per campaign and per recipientPart of the tool

Most people end up using two of these. GA4 for what happens on the site, and a redirect link for every place the site doesn't control.

Analytics events on your own site

GA4's enhanced measurement records a click event "each time a user clicks a link that leads away from the current domain", with the link's URL and domain as parameters, according to Google's enhanced measurement help page. It is on by default once enhanced measurement is switched on. Clicks between pages of your own site need a custom event, usually built in Google Tag Manager.

The limit is in the setup: GA4 counts only on pages where its tag loads and the visitor's consent and blockers let it run. A link you post anywhere else is invisible to it.

A short link such as snu.to/oct-news points at a server. When someone opens it, the server writes down the request, then sends the browser on to the real address with an HTTP 302 redirect.

The short link records the click, then redirects.

Because the count happens on the request to snu.to, it works wherever a link can go: a bio, an email, a QR code, a slide, a PDF, a Slack message. It also works when the destination isn't yours. A link to a Google Doc, a partner's page or a YouTube video counts its clicks the same way, and nothing has to be installed on the destination.

Your email or SMS tool's own tracking

Mailchimp, Klaviyo and many SMS platforms rewrite every link in a send into their own redirect (when click tracking is on). You get clicks per campaign and often per recipient, which a public short link can't give you. The numbers stay inside that tool, and they can include the bot clicks covered in why your click count is high.

Use a redirect link: it counts the click at the link, so nothing has to be installed on the page and Google Analytics is not involved. You need a free link tracker and a couple of minutes. Still choosing one? Six free plans are compared in free URL shortener with analytics.

The steps:

  1. Shorten the URL. Paste it into the box on the SendURL home page. No account is needed for one link: the free URL shortener gives it a random slug, a live click counter and a QR code, and it moves into your account with its history if you sign up later. With an account, the console lets you pick a custom slug such as oct-news.
  2. Make one link per placement. The newsletter, the Instagram bio and the conference slide each get their own link to the same destination. That is what tells you which one worked. For Instagram, the free Instagram link tracker makes the whole set, one link per bio slot, Story and DM, in one go.
  3. Share the short link, not the long URL.
  4. Read the clicks. In the console, a link's Analytics button opens the Analytics page on that link (clicks, unique visitors on Starter and above, daily average, QR scans and a chart), and Events lists its clicks, each opening its full record. The Analytics page charts clicks over time, over presets from 7 days to 12 months or a custom range, as far back as your plan reaches (Free 7 days), and reads clicks directly, so a new one shows up as soon as it is recorded.

Free lists 7 days of analytics history and Starter 30 in the console (Analytics and Events); the API's click list covers every click. The API returns the raw click rows, which is how you keep your own copy (see pull the numbers into a spreadsheet).

Two of the three methods cost nothing. GA4 is free for clicks on your own pages, and a redirect link is free on SendURL up to 25 links: every click is recorded with its time, country, device, browser, operating system and referrer, and each link has a QR code. The Free plan lists 7 days of analytics history in the console.

What the free plan leaves out is the paid part of the analytics: unique visitors, the city breakdown and UTM statistics are Starter and above, as are 250 links a month and 30 days of history ($9 a month as of 14 November 2026; Pricing has every plan). The step-by-step version of the free setup is above.

What a click record contains

This is one click as the API returns it from GET /links/:id/clicks:

One click recordJSON
{
  "id": "a4c6e8f0-1b3d-4e5f-9a7b-2c4d6e8f0a1b",
  "linkId": "5d8f2a1c-7b3e-4c9d-a0e1-6f2b8c4d1e7a",
  "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Mobile/15E148 Safari/604.1",
  "referer": null,
  "country": "DE",
  "city": null,
  "device": "mobile",
  "deviceVendor": "Apple",
  "deviceModel": "iPhone",
  "browser": "Mobile Safari",
  "browserVersion": "18.6",
  "browserMajor": "18",
  "browserType": null,
  "engineName": "WebKit",
  "engineVersion": "605.1.15",
  "os": "iOS",
  "osVersion": "18.6",
  "cpuArchitecture": null,
  "source": "qr",
  "clickedAt": "2026-10-14T08:03:11.482Z"
}

What the fields mean in practice:

FieldWhat it tells youWatch out for
clickedAtWhen, in UTCConvert to your audience's time zone before reading it
countryTwo-letter code from Cloudflare's geolocationVPNs and corporate networks move it; T1 means Tor. city is Cloudflare's estimate, null when unknown, for older clicks, or on Free
device, os, browserParsed from the user agentIn-app browsers often name the app: Instagram's is parsed as browser Instagram
refererThe page the click came from, if the browser sent oneOften empty for clicks from apps, email and QR scans. Browsers default to sending only the origin (https://www.linkedin.com/), not the full page, under the strict-origin-when-cross-origin policy
source"qr" when the click came through the link's QR codeEvery SendURL link's QR code encodes the short URL plus ?q, so scans and taps on the same link stay apart
userAgentThe raw requestUseful for spotting bots; treat it as personal data

The API docs give the click object's full field list, what SendURL records for every click explains each one and what is not recorded, and using click country and device data shows what those two fields can and can't tell you.

The referrer can't be trusted to split your traffic, because so many clicks arrive without one. Separate links can. The same destination, https://example.com/autumn-sale, shared in six places:

PlacementSlugWhat you learn
October newsletter, main buttonoct-news-ctaClicks from the newsletter, separate from social
Instagram bio, link 2autumn-ig-bioClicks on that one bio slot, with time and device
LinkedIn postautumn-li-postWhether the post moved anyone, beyond reactions
Slack community shareautumn-slackClicks from a channel with no impressions data at all
Window poster (QR)autumn-posterScans of the printed code, flagged source: "qr"
Sales deck PDFautumn-deckWhether anyone opened the link in the deck

Slugs on snu.to are shared by every SendURL user, so a short generic slug may be taken already; add the campaign or a date. They also can't be renamed once created. How to name a custom short link has the naming rules, and the social media link tracking guide has a full placement sheet for a campaign. Write each placement down as you create its link; the launch link register template has the columns.

The same idea works away from marketing. A link to an internal runbook or a status page tells you whether people open it; a link in a partner's newsletter tells you what their audience did, without asking them for a report.

A short link keeps counting when it travels. If a subscriber forwards the newsletter, the forwarded copy's clicks are added to oct-news-cta, because the count belongs to the link and not to the place you first put it. Read each number as "clicks on this link", and never reuse one link in two placements you want to tell apart.

Why your numbers won't match

Put a short link, your email tool and GA4 on the same campaign and you'll get three different numbers. The short link counts every request, including link previews and email scanners, because SendURL doesn't filter bots; GA4 counts only the visits where its tag was allowed to run, plus visits the link never saw. Link analytics vs web analytics goes through the reconciliation line by line. To work out a rate from these counts, see how to measure click-through rate, or enter clicks and impressions in the CTR calculator.

Pull the numbers into a spreadsheet

Every link and every click in the console is also in the REST API (URL shortener API), on every plan: the raw click rows and daily counts, from which you can rebuild any chart. Create an API key in the console, then keep it in an environment variable:

Shell
export SENDURL_API_KEY="snu_..."

Create a tracked link (with no slug, SendURL picks a random one, so this runs as written):

Create a linkShell
curl -X POST https://api.sendurl.to/api/v1/links \
  -H "Authorization: Bearer $SENDURL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"destinationUrl": "https://example.com/autumn-sale", "title": "Autumn sale: newsletter"}'

The response is the new link, with its id, shortUrl and qrUrl. A link's id is also in its console address, console.sendurl.to/links/<id>. Read its latest clicks:

Read clicksShell
curl "https://api.sendurl.to/api/v1/links/$LINK_ID/clicks?limit=10" \
  -H "Authorization: Bearer $SENDURL_API_KEY"

Each response holds up to 10 clicks and a pagination.nextCursor for the next page (the API docs explain pagination). This Python script walks every page and counts one link's clicks by country (install requests first with pip install requests):

clicks_by_country.pyPython
import os, time
from collections import Counter

import requests

API = "https://api.sendurl.to/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['SENDURL_API_KEY']}"}

def clicks(link_id):
    """Every click of one link, newest first, 10 per request."""
    params = {"limit": 10}
    while True:
        r = requests.get(f"{API}/links/{link_id}/clicks", headers=HEADERS, params=params, timeout=10)
        r.raise_for_status()
        page = r.json()
        yield from page["clicks"]
        if not page["pagination"]["hasMore"]:
            return
        params["cursor"] = page["pagination"]["nextCursor"]
        time.sleep(0.25)  # stay under the API's rate limit

by_country = Counter(c["country"] or "unknown" for c in clicks(os.environ["LINK_ID"]))
for country, n in by_country.most_common():
    print(f"{country}\t{n}")

Run it with LINK_ID=<id> python3 clicks_by_country.py and paste the output into a sheet. The URL shortener API guide for Python and JavaScript takes this further: bulk link creation, a full CSV export and error handling.

More on this topic

This guide is the hub of the link tracking handbook. Each page below answers one narrower question.

Guides

Setting up and counting

Where clicks come from

Counting people

People and outcomes

All the one-question answers are listed on How-to.

  • One short link per placement, all pointing at the same destination
  • Slugs that say what they are (oct-news-cta, not link3), checked for typos before anything is printed
  • UTM parameters, if you use GA4, added to the destination URL with the UTM builder before shortening (the short link passes the destination on as stored; UTM parameters guide)
  • The short link opened once on a phone, so you know it lands where you expect (that test counts as a click)
  • No name, email address or customer number in a slug or a UTM value: a slug is readable by anyone who sees the link, and Google's Analytics rules say not to include personal information in campaign parameters (Google's PII guidance, read 15 November 2026)
  • A note of when each link went live, so clicks can be read against posting times
  • A plan for the counts: compare placements after a fixed period, and discount previews and scanners. Decide now who reads the numbers and when; the weekly link report template gives the review a fixed shape
  • For printed QR codes: the link's QR downloaded as SVG, and a scan test at final size (track QR code scans)

Track your first link in the box below; the count starts with the first click.

Frequently asked questions

  • Not on the original link: only its owner sees those clicks. You can wrap any URL you share (a YouTube video, a product page, a Google Doc) in your own short link, and then you count the clicks that come through your link. Clicks on other copies of the URL stay invisible to you.

See where your clicks come from.

Every short link tracks clicks by country, device, browser and referrer, on the Free plan too. No credit card, no sign-up to start.

Keep reading

More: how-to answers, all link tracking guides and the SendURL blog.