Resolving the issue with website cache and visitor analytics and tracking services
To fix the issue with tracking not working when using website cache programs and allow the visitor tracker code to normally load bypassing the caching procedures, it is necessary to exclude TraceMyIP scripts from being cached. The CDN and other cache methods and scripts have functions to exclude specific scripts and website elements from being added to the cache.
Sign up to instantly track website visitors IPs!
General procedure to disable caching for TraceMyIP
When you go to the settings of caching software, you will find various settings for the exclusion of scripts and specific website elements from being added to the cache.
- Add tracemyip string to the “exclude JS (JavaScript)” scripts which must not be cached
- Add tracemyip string for scripts that must not be JS minified or disable JS minification completely
- Note that the string match must be case insensitive in the above exclusions for tracemyip string IF such option exists
Common website cache software and tutorials
WordPress caching plugins – if the link is available click on each to open a tutorial to disable caching of TraceMyIP tracking scripts
- WP Fastest Cache
- W3 total cache
- Rocket Loader
- LiteSpeed Cache
- Autoptimize
- See additional quick tutorials for excluding WordPress content from being cached
More about website caching
Website caching and CDN cache services are used to improve the performance and speed of websites. When a visitor accesses a website, the server processes various requests, fetches data from the database, and generates the final HTML page to be displayed in the visitor’s browser. This process can be resource-intensive and time-consuming, especially for dynamic websites with a lot of content or complex themes and plugins.
Caching helps alleviate these performance issues by storing static versions of web pages in a cache. When a visitor requests a page that has been previously cached, the server can serve the cached version instead of re-generating the page from scratch. This significantly reduces server processing time, database queries, and overall load on the server, resulting in faster page load times and a better user experience. On the other hand, it prevents some real-time processing services from performing their functions
Problems with website caching and visitor analytics and tracking scripts
When the cache scripts make a copy of a web page for faster serving to visitors, they also make a copy of TraceMyIP data request procedure. What this does is prevent the visitor tracker code from being loaded directly from the TraceMyIP servers and instead serves this from the cache. This disables the tracking and analytics service.
Who visits your website? Sign up to find out!