Forum Academy Marketplace Showcase Pricing Features

How to Exclude Development Site URL's from Google Analytics

Hello fellow bubblers,

I tried to lookup how to do this in various articles, but I’m not familiar with the intricacies of including / excluding URL’s in google analytics, and got a little confused. Has anyone done this and willing to provide a brief handbook to the bubble crowd?

The problem is google analytics is currently tracking all the data to my live site, plus the development version /version-test URL’s, and I would prefer not to confuse dev site figures with live visitor data.

Anyone know what precisely to enter into the google analytics filter inputs to create a new view in analytics so that /version-test and all variants of that subdomain are excluded from the view?

Did you add the google script manually or using the plugin? If you added it manually you can add extra javascript so that it is not active when url is “version-test”.

Another way is to add your IP in google so that it does not pick up data from your particular IP. That will include both DEV and PRODUCTION environment.

Hi @mangooly, I am using the plugin.

The best solution might be the IP exclusion actually. I didn’t think of that. Thank for sharing!

Hi @mangooly,

I’m currently trying to exclude “version-test” url from Google Analytics. But could you send a screenshot of your javascript code ?

I don’t know what extra javascript to add so that it’s not active …

Many thanks for your help,

Hi @thomas.gounot,

You don’t need to add it in the javascript. You can add it directly in google analytics.

Admin > Filters > Add Filter

You then add the subdirectory /version-test/

Hope that helps


Ok! Thank you very much for your answer :slightly_smiling_face:


Thanks for this @mangooly - really helpful! :slight_smile:

Shouldn’t the ending slash of /version-test/ be removed?

Another common approach is to use a separate Google Analytics measurement id for your “live” site and for your “version-test” site.

1 Like