Clickport
Start free trial

Exclude Your Visits

When you browse your own site, your visits show up in your analytics just like any other visitor. Clickport offers two ways to exclude yourself so your data stays clean.

Browser exclusion (localStorage)

  • Set once per browser
  • Works instantly, no server config
  • Survives page reloads and sessions
  • Must be set on each browser/device
  • Cleared if you clear browser data

IP exclusion (server-side)

  • One-click toggle in dashboard
  • Works across all browsers and devices
  • Applied at the server before data is stored
  • Stops working if your IP changes
  • Applied to all your sites automatically

Method 1: Browser exclusion

Set a flag in your browser's localStorage to tell the Clickport tracker to skip this browser. The tracker checks for this flag before sending any data, so excluded visits never reach the server.

Enable exclusion

1

Open your website in the browser you want to exclude.

2

Open the browser's developer tools. On most browsers: press F12 or right-click the page and select Inspect.

3

Go to the Console tab and paste this command:

Console
localStorage.setItem('clickport_ignore', 'true')
4

Press Enter. That's it. This browser will no longer send any tracking data to Clickport.

Verify it's working

Run this in the console to confirm the flag is set:

Console
localStorage.getItem('clickport_ignore') // Should return: "true"

You can also verify by opening the Network tab in developer tools, navigating around your site, and confirming that no requests are sent to /api/event.

Disable exclusion

To start tracking your visits again, remove the flag:

Console
localStorage.removeItem('clickport_ignore')
Per-browser, per-device. The localStorage flag only applies to the specific browser where you set it. If you use multiple browsers or devices, repeat the steps on each one.

Team exclusion

To exclude your entire team, share these instructions with anyone who regularly visits your site. Each person sets the flag in their own browser.

If your team members all work from the same office, IP exclusion (below) may be easier since it covers everyone on the same network in one step.

Method 2: IP exclusion

Exclude all traffic from your IP address at the server level. This is the easiest method since it works across all browsers and devices on your network, and you can enable it with one click.

Enable IP exclusion

1

Open your Clickport dashboard.

2

Click the settings icon in the top right corner of the dashboard.

3

Find the Exclude my IP toggle and enable it. Your current IP address is shown next to the toggle.

Dashboard settings

Exclude my IP
Your IP: 203.0.113.42
IP excluded from tracking

When you exclude your IP, it is automatically applied to all your sites in Clickport. You do not need to set it separately for each site.

Dynamic IPs. If your internet provider assigns a new IP address periodically (common with residential connections), you will need to re-enable the exclusion when your IP changes. Check the dashboard settings if you notice your own visits appearing again.

Remove IP exclusion

To stop excluding your IP, return to the dashboard settings and toggle Exclude my IP off. The exclusion is removed from all your sites.

Which method should I use?

Use IP exclusion if you work from a fixed location (office, home with static IP). It's the simplest option and covers all devices on your network.

Use browser exclusion if you move between networks (coffee shops, coworking spaces, mobile data) where your IP changes frequently. The localStorage flag stays set regardless of your network.

You can use both methods together. If either one matches, your visit is excluded.

How exclusion works

Browser exclusion (client-side)

The Clickport tracker checks localStorage.getItem('clickport_ignore') on every page load, before sending any data. If the value is exactly 'true' (the string), the tracker exits immediately. No pageview, no events, no network requests. Your visit is invisible to Clickport because the data never leaves your browser.

IP exclusion (server-side)

When IP exclusion is enabled, the server checks the visitor's IP address against a list of excluded IPs before storing any event. If the IP matches, the event is silently dropped and never written to the database. The response still returns success to avoid errors in the tracker.

Troubleshooting

My visits are still showing up

I cleared my browser data and the flag is gone

Clearing cookies, site data, or all browsing data removes localStorage entries including the clickport_ignore flag. Set it again using the console command above.

Excluding visits on localhost

You do not need to set exclusion flags for local development. The tracker automatically skips localhost, 127.0.0.1, and file:// URLs. No data is sent from local environments.