Hello @subrato312
Thank you for your inquiry and I am happy to assist you with this.
Yes, Geotargeting in most cases is not working with Page cache enabled. It is possible to use Page Fragment Cache and wrap the code with mfunc in W3 Total Cache. But the best way is to use ajax-calls directly in the plugin you are using for geotargeting. For example, Geotargeting lite does not work with caching but the premium feature of that plugin is using ajax calls and working with caching plugins or to be exact Page Cache.
And this is the case with most of the Geotargeting plugins.
So depending on which plugin you are using for geotargeting, they should be compatible with caching plugins.
The other solutions are to exclude the pages that you have the code for geotargeting on from being cached in Performance>Page Cache>Advanced>”Never Cache following Pages”, or as I mentioned before to use Page Fragment Cache and wrap the code with mfunc which will ensure that that part of the page is not being cached.
I hope this helps.
Thank you!