how to stop Google Analytics from tracking the logged in users
Home » BLOG » WordPress » How to stop Google Analytics from tracking logged in users in WordPress

How to stop Google Analytics from tracking logged in users in WordPress

category:  WordPress
1 min read

Google Analytics is a must tool for marketing. It collects a useful data from your website. It makes you understand your customers in deep. In WordPress, you can integrate Google Analytics easily by using plugins or adding the UA code to functions.php in your current theme.

Sometime you will login to your website to manage your content. Google Analytics records your visits while you login too. The result is, you may see the preview URL from WordPress showing in your statistic in Google Analytics. So how do you stop it.

Add filters in Google Analytics to exclude logged in users tracking

  • Login to your Google Analytics
google analytics sample
Figure: Google Analytics dashboard
  • Navigate to Admin menu
google analytics admin
Figure: Google Analytics Admin menu
  • Once the admin panel shows up, click on Filters menu
google analytics filter
Figure: Google Analytics Filters
  • Then you will see the filters list
google analytics filter setting
Figure: Google Analytics Filters page
  • Click on ADD FILTER button then you will see the filter form.
  • Next, choose “Create new Filter“, fill in the “Filter Name” as you like, choose “Custom“, “Exclude“, “Request URI“, and add “wp-login.php” in Filter Pattern.
Google Analytics filters out WP admin page
Figure: Google Analytics exclude the WP admin page

For now on, Google Analytics will exclude the traffic from your WordPress admin page. And that’s it for today.

  •  
  •  
  •  
  •  
  •