• Hi, love the plugin and use it on most sites, but just had a huge problem with it significantly slowing down a large WooCommerce site. We eventually figured out what it was after digging around in New Relic and turns out the geolocation API/script was causing really bad slowdown as it took too long to load. Is there a reason why visitor location data is not simply pulled in from standard analytics here? Is there a way to optimize performance to avoid this or do I just disable it (how?)?

    Thanks!

    https://www.ads-software.com/plugins/duracelltomi-google-tag-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Any help with this? We do not have weather tracking on, but the geoplugin API is still showing up as being used and was singled out by our host as a problem. How do we disable it?

    EDIT (different login, sorry – same issue)

    We went in and found that there is a wrongly open bracket in the PHP code that calls the geoplugin via GET request IF the weather setting is set to off. I assume its an error, we moved the IF bracket and it fixed the issue. Please review this code for future updates, thanks!

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks for reporting this.
    Could you let me know exactly which lines were updated and how?

    You can also issue a pull request on the official GitHub repo:
    https://github.com/duracelltomi/gtm4wp/

    Thanks,
    Thomas Geiger

    No problem, it is in line 412 in frontend.php When you lok at it you’ll see the else statement should be outside the bracket.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with geolocation’ is closed to new replies.