Documentation

Everything you need to set up WP Click Tracker and get useful numbers out of it.

Requirements

  • WordPress 5.8 or newer
  • PHP 7.4 or newer, with the sodium extension (it’s switched on by default in PHP 7.2 and later, so you almost certainly have it)
  • One licence per website

Installing the plugin

  1. After checkout you’ll get an email with your licence key and a download link. Both are also in your account under My account → Orders and License keys.
  2. In WordPress, go to Plugins → Add New → Upload Plugin, choose the zip you downloaded and click Install Now.
  3. Click Activate.

You’ll find a new Click Tracker item in the admin menu.

Activating your licence

Open Click Tracker, paste your licence key and click Activate. The key is then tied to that site’s domain. Activation is what unlocks tracking and automatic updates.

If you see This license is already active on another site, deactivate it on the old site first (see Moving to a new domain).

Creating your first tracker

A tracker counts clicks on anything that matches a CSS selector. Go to Click Tracker → Trackers → New tracker and fill in:

  • Name: what you’ll see in reports, for example Header “Book now” button.
  • What to track: choose Class, ID or Any CSS selector and type it in. The box underneath shows the final selector that will be used.
  • Colour: used for this tracker in charts.

Save it and you’re done. There’s nothing to paste into your theme. Clicks on matching elements are recorded from the next page load.

Clicks on anything inside the element count too, so a click on the icon or text inside a button is still a click on the button.

Choosing a selector

Most of the time a class or an ID is all you need. If you’re not sure what your button’s class is, our guide to finding the CSS class or ID of a button walks you through it in Chrome, Firefox and Safari.

You want to trackSelector to use
Every button with a class.book-now
One specific element#signup-button
An element with two classes.btn.btn-primary
Any link to your checkouta[href*="checkout"]
Phone number tapsa[href^="tel:"]
Email linksa[href^="mailto:"]
Buttons inside the footer only.site-footer .button
PDF downloadsa[href$=".pdf"]

If you use a page builder, you can give any button its own class: Elementor has it under Advanced → CSS Classes, the block editor under Advanced → Additional CSS class(es), and Divi under Advanced → CSS ID & Classes. There’s more detail in tracking clicks in Elementor, Divi and the block editor.

The dashboard

Click Tracker → Dashboard gives you a quick read on the last 7, 30 or 90 days:

  • clicks today compared with the same time yesterday
  • the period total compared with the period before it (the dashed line on the chart)
  • your top trackers, top pages and the desktop/mobile/tablet split
  • a live feed of the latest clicks, which refreshes every 10 seconds while the tab is open

Analytics

Click Tracker → Analytics is where you dig in. Pick a range (today up to 12 months, or a custom range of up to a year), filter to one tracker, and switch between bar and line charts. With Compare switched on, every number is shown next to the previous period of the same length.

Below the chart you’ll find:

  • Tracker breakdown: clicks, the previous period, change and share for each tracker. Click a row to filter to it.
  • Devices and Top pages: where the clicks happened.
  • When people click: a day-of-week by hour grid in your site’s time zone. It’s handy for timing offers, live chat cover or phone staffing.

Exporting your data

Use Export on the Analytics screen:

  • Daily summary: one row per tracker per day.
  • Every click: time, tracker, page and device for each individual click.

Both use the range and tracker you’ve selected. Your trackers can be exported and imported as CSV from the Trackers screen, which is handy for copying a setup to another site.

Settings

SettingWhat it does
Ignore clicks from administratorsYour own clicks don’t count while you’re logged in as an admin.
Filter out botsSkips crawlers, uptime monitors and headless browsers.
Ignore double clicksRepeat clicks on the same tracker within a few seconds count once.
Keep click history forDeletes click events older than this many days. All-time totals are kept.
Who can view the dashboardAdmins only, editors and authors, or any logged-in user.
Automatic updatesInstalls new versions as soon as they’re released.

Updates

Updates come through the normal WordPress Plugins screen, the same as plugins from WordPress.org, for as long as your licence is active. Switch on automatic updates in Settings if you don’t want to think about it. Your trackers and click history are always kept.

Moving to a new domain

  1. On the old site, go to Click Tracker → License and click Deactivate on this site.
  2. Install the plugin on the new site and activate the same key.

If the old site is already gone, get in touch with your licence key and we’ll release it for you.

Troubleshooting

Clicks aren’t showing up

  • Check the tracker’s status is Active on the Trackers screen.
  • If Ignore clicks from administrators is on, test in a private window where you’re not logged in.
  • Check the selector matches. On your site, right-click the button, choose Inspect, and make sure the class or ID is on the element (or one of its parents).
  • If you use a caching or optimisation plugin, clear its cache after creating your first tracker so pages load the tracking script.

The numbers don’t match Google Analytics

That’s normal. Google Analytics only records visitors who accept its cookies and aren’t blocking it. WP Click Tracker counts clicks on your own server, filters out bots and ignores rapid double clicks. Expect WP Click Tracker to show more clicks than GA4 on most sites.

Something else

Contact us with your site address and what you’re seeing. Screenshots help.

Uninstalling

Deleting the plugin removes your licence details but keeps your trackers and click history, in case you reinstall. To remove everything, switch on Delete all data when uninstalling in Settings first.