What is the v=xxxx String in the URL and How to Remove It

Hand holding a phone showing Google Maps

You might have noticed that the URLs in your site all come with a string at the end of it looking something like ?v=3j123445. What is it and where does it come from?

If your site uses WooCommerce, that is where it comes from and it is not dangerous at all, it is actually helpful!

WooCommerce and Geolocation

The string ?v=xxxx comes from the geolocation feature included in WooCommerce. It allows the system to calculate taxes and shipping costs based on the customer location before they even enter their address.

This is particularly useful for those shops that set their prices excluding taxes, to avoid showing prices that are not realistic and having customers dropping off from checkout only because they found out that they now have to pay more because of taxes.

Do I Have To Keep This Ugly String?

The good news is that no, you do not need to keep the ?v=xxxx string in the URL in order to use geolocation. WooCommerce comes with four different options to define the customer location:

  1. No location by default: this means that WooCommerce will not assume any location at all and will wait for the customer’s input;
  2. Shop base address: WooCommerce will use the shop address as a default location. Taxes and shipping costs will be calculated later at Checkout;
  3. Geolocate: WooCommerce will try to geolocate the customer and use that location as their base location;
  4. Geolocate (with page caching support): Same as above but with the cache. This is the option that adds the ?v=xxxxx string to your URLs.

If you see the string in your URL it means that you choose the last option. You can change your choice in WooCommerce > Settings > General > General options > Default customer location. Simply choose Geolocate or a different option other than Geolocate (with page caching support) in order to get rid of the string ?v=xxxx from the website URLs.

Contribute to Improving This Blog

Did you enjoy this article? Was it helpful? Contribute to help me writing more articles! The funds collected from this blog are reinvested directly into improving my skills or the blog so that I can provide more and better content!


Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount


Or enter a custom amount


Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly

Do you prefer using cryptocurrency? I’ve got you covered! You can donate at the following wallets:

  • BTC: bc1q87nxpdpqw323ccmerrzyeffs72wnxpw93x7pzk / 17Gtc5e8yoh2LZzokoyK8P5DWbToBwztok
  • ETH: 0xA5C89Be1df2896C3942DBEf751cCeacC7929388b

More Posts That You Might Like…

3 responses to “What is the v=xxxx String in the URL and How to Remove It”

  1. I have a question.. On the WordPress discord plugin you made – you can not add any other role except for @everyone – I tried changing the everyone text in the coding to the proper role I want but it just sent it as text but didn’t actually ping anyone… Help plz?

    1. I do not actively maintain the plugin anymore. As far as I can remember, it might need some more coding, just changing the text might not be enough. You can try asking for help in the community: https://wordpress.org/support/plugin/wp-discord-post/

      1. I actually figured it out 🙂 ty

Leave a Reply



Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Blog at WordPress.com.

%d bloggers like this: