{"id":2422,"date":"2023-08-03T04:02:50","date_gmt":"2023-08-03T08:02:50","guid":{"rendered":"https:\/\/www.tracemyip.org\/learn\/?post_type=ht_kb&#038;p=2422"},"modified":"2025-06-03T00:06:04","modified_gmt":"2025-06-03T04:06:04","slug":"website-caching-cdn-and-website-analytics-and-visitor-tracking-issues","status":"publish","type":"ht_kb","link":"https:\/\/www.tracemyip.org\/learn\/website-caching-cdn-and-website-analytics-and-visitor-tracking-issues-2422\/","title":{"rendered":"Website caching, CDN and website analytics and visitor tracking issues"},"content":{"rendered":"<h3>Resolving the issue with website cache and visitor analytics and tracking services<\/h3>\n<p><strong>To fix the issue<\/strong> with tracking not working when using website cache programs and allow the <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-install-a-website-visitor-tracker-code-1626\/\" data-internallinksmanager029f6b8e52c=\"27\" title=\"How to install a website visitor tracker code\">visitor tracker code<\/a> to normally load bypassing the caching procedures, it is necessary to exclude\u00a0 <strong>TraceMyIP<\/strong> 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.<\/p>\n<p style=\"padding: 10px 0;\"><strong><a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/index.php?sto=1&amp;refLinkID=WPLearn_tracemyip_signup_link_1\" target=\"_blank\" rel=\"noopener\">\ud83d\udcc8 Sign Up<\/a><\/strong> now to <strong>instantly<\/strong> track <a href=\"https:\/\/www.tracemyip.org\/learn\/how-to-build-a-website-for-visitors-optimization-2814\/\" data-internallinksmanager029f6b8e52c=\"69\" title=\"How to Build a Website for Visitors: Understanding Needs and Optimizing for Success\">website visitors<\/a> IPs!<\/p>\n<h3><strong>General procedure to disable caching for TraceMyIP <br \/>\n<\/strong><\/h3>\n<p>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.<\/p>\n<ul>\n<li>Add <strong>tracemyip<\/strong> string to the &#8220;exclude JS (JavaScript)&#8221; scripts which must not be cached<\/li>\n<li>Add <strong>tracemyip<\/strong> string for scripts that must not be JS minified or disable JS minification completely<\/li>\n<li>Note that the string match must be case <strong><span style=\"text-decoration: underline;\">in<\/span><\/strong>sensitive in the above exclusions for <strong>tracemyip<\/strong> string IF such option exists<\/li>\n<\/ul>\n<h2>Common website cache software and tutorials<\/h2>\n<p><strong><a href=\"https:\/\/www.tracemyip.org\/learn\/wordpress-visitor-tracking-plugin-1382\/\" data-internallinksmanager029f6b8e52c=\"18\" title=\"WordPress visitor tracking plugin\">WordPress<\/a> caching plugins<\/strong> &#8211; if the link is available click on each to open a tutorial to disable caching of TraceMyIP tracking scripts<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/wp-fastest-cache-plugin-disables-analytics-tracking-2417\/\">WP Fastest Cache<\/a><\/li>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/w3-total-cache-and-visitor-tracking-and-analytics-issue-2442\/\" target=\"_blank\" rel=\"noopener\">W3 total cache<\/a><\/li>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/disable-rocket-loader-to-enable-visitor-ip-tracking-936\/\">Rocket Loader<\/a><\/li>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/litespeed-cache-for-wordpress-and-visitor-tracking-and-analytics-issues-2433\/\" target=\"_blank\" rel=\"noopener\">LiteSpeed Cache<\/a><\/li>\n<li><a href=\"https:\/\/www.tracemyip.org\/learn\/autoptimize-wordpress-plugin-and-visitor-tracking-and-analytics-issues-2452\/\" target=\"_blank\" rel=\"noopener\">Autoptimize<\/a><\/li>\n<li>See additional quick tutorials for <a href=\"https:\/\/www.tracemyip.org\/learn\/exclude-wordpress-content-from-being-cached-by-caching-plugins-2660\/\" target=\"_blank\" rel=\"noopener\">excluding WordPress content from being cached<\/a><\/li>\n<\/ol>\n<h2><strong>More about website caching<\/strong><\/h2>\n<p><strong>Website caching<\/strong> and <strong>CDN cache services<\/strong> 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&#8217;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.<\/p>\n<p><strong>Caching helps alleviate these performance issues<\/strong> 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<\/p>\n<h2>Problems with website caching and visitor analytics and tracking scripts<\/h2>\n<p>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.<\/p>\n<p style=\"padding: 10px 0;\"><strong>\ud83c\udf0d Who visits your website?<\/strong> <strong><a href=\"https:\/\/www.tracemyip.org\/tools\/codereg.php?rgtype=4684NR-IPIB&amp;ntc=1&amp;adDj=1&amp;refLinkID=WPLearn_tracemyip_signup_link_2\" target=\"_blank\" rel=\"noopener\">Sign Up<\/a><\/strong> now to find out instantly!<\/p>\n<div style=\"clear:both\"><\/div>","protected":false},"excerpt":{"rendered":"<p>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\u00a0 scripts from being cached. The CDN and&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[49,90,102],"ht-kb-tag":[122,92],"class_list":["post-2422","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-faq","ht_kb_category-troubleshooting","ht_kb_category-visitor-tracker-installation","ht_kb_tag-cache","ht_kb_tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/comments?post=2422"}],"version-history":[{"count":16,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2422\/revisions"}],"predecessor-version":[{"id":2670,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/2422\/revisions\/2670"}],"wp:attachment":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/media?parent=2422"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-category?post=2422"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-tag?post=2422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}