Articles in this section
Category / Section

Block Unwanted Events

Use Event Block Rules to exclude specific events

When you want to exclude website traffic from being tracked in your server-side container, (e.g. internal traffic, traffic from a specific country, specific pages, currencies, or for example 0 value purchases) you can use the Event Block Rules to do so.

Getting started

You find the Event Block Rules under the Settings tab when logged in to your Tracklution container. Scroll down and click + Create Rule.

select_block

You can choose to either select specific events that you want your rule to block, or you can click the toggle Block all events to make your rule dynamically apply to all currently tracked events, and for any event you may track in the future.

Types of block rules

There are three category-types of block rules you can configure:

  • Event based block rule
    • These types of rules let you block events based on information present in the event, like URL, purchase value, currency etc.
  • List based block rule
    • These rules apply to predefined lists of information to block events, like the IP address of your office, specific emails of logged in users, zip codes etc.
  • Webhook parameter
    • These rules apply when a Webhook parameter that you have defined contains or equals a specific value, or is empty.

URL (event based) block rule

The URL block rule option looks at the full URL with the event, meaning you can condition your block rule to anything in the URL, e.g. subdomains, paths, queries, fragments, or even attributes. If you want to block a specific URL path for example, then you can put the / before the path, like this /your-page-path-here. If you want to block a specific fragment you can use #page-fragment-here, and so on. Keep in mind that if you want to block specific queries, be aware that not all queries start with ?, they might start with &. Instead, write the full query, like this my-query=my-blocked-query-value.

List based block rules

While both Webhook parameter and Event based block rules can be configured directly with the user interface, the list based block rules require you to upload a .csv file containing the predefined values you want to include in your block rule.

Example:

If you want to use a list of IP addresses from your offices and remote team members to exclude this internal traffic from being tracked by your server-side container, you can list the IP addresses separated by comma, then save as .csv and upload. This is easily achieved in Microsoft Excel or Google Sheets.

Choose IP address as rule type and click Select List.

select_block_list

You can create a list of your IP addresses in a sheet like this:

192.0.2.14
198.51.100.73
203.0.113.201

Then click Save as.., select .csv and upload it to your Event Block Rules.

You can later remove, deactivate, or add more IP addresses to your uploaded list. Adding is done by clicking Fill on your list and uploading a new .csv file. Already recorded IP addresses will remain, and any new IP address will be added.


Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied