Home » Tutorial » Exclude Zaraz Google Analytics From Login URL or WordPress Admin Area

Exclude Zaraz Google Analytics From Login URL or WordPress Admin Area

Exclude Zaraz Google Analytics From Login Url or WordPress Admin Area

Are you using Zaraz on Cloudflare to add Google Analytics to your WordPress website?

If the answer is yes, then there is good news for you. You can easily exclude backend pages from Zaraz.

Other tutorials will show you how to remove or exclude WordPress admin page traffic from Google Analytics. They will tell you to filter out those traffics from Google Analytics. But filtering out those traffics doesn’t stop Google from tracking admin login or WordPress admin pages. You have to stop loading Google Analytics code on the dashboard or on any administrative interface pages.

So it depends on how you have implemented Analytics code. If you did it manually, you can use if(!is_admin()){}.

Block Zaraz on back end

It’s very easy. I suppose you are already using these two Page Rules:

Cloudflare Page Rule


Cloudflare Page Rule

If so, just click on the ‘+Add a Setting’ button for both page rules.

Select ‘Disable Zaraz’:

disable Zaraz for WP Dashboard

Save and deploy.

Done. That’s it. You have excluded your WordPress dashboard from Google Analytics.

If you don’t have any page rules yet:

  1. Log in to the Cloudflare dashboard, and select your account and website.
  2. Go to Rules.
  3. Click Create Page Rule.
  4. Set Page URL: example.com/wp-login.php*
  5. Choose Disable Zaraz from the Then the settings are dropdown menu.
  6. Click Save and deploy.

Create another page rule using URL: example.com/wp-admin*

This is how you can block Zaraz from loading on the admin URL of your website.

Read more from Tutorial

Written by:

Morshed Alam
A teacher by profession, a traveler by passion and a netizen by choice.

Have you written on ThoughtMight?Write Today

Leave a Comment

Your email address will not be published. Required fields are marked *