{"id":936,"date":"2022-02-03T15:05:53","date_gmt":"2022-02-03T20:05:53","guid":{"rendered":"http:\/\/www.tracemyip.org\/learn\/?post_type=ht_kb&#038;p=936"},"modified":"2023-08-03T02:26:24","modified_gmt":"2023-08-03T06:26:24","slug":"disable-rocket-loader-to-enable-visitor-ip-tracking","status":"publish","type":"ht_kb","link":"https:\/\/www.tracemyip.org\/learn\/disable-rocket-loader-to-enable-visitor-ip-tracking-936\/","title":{"rendered":"Disable Rocket Loader to enable Visitor IP Tracking"},"content":{"rendered":"<h3>When using <strong>Rocket Loader<\/strong> with TraceMyIP, the visitor tracking feature may not work properly.<\/h3>\n<p><strong>Rocket Loader<\/strong> is an optional <a href=\"https:\/\/www.tracemyip.org\/learn\/the-difference-between-javascript-and-html-visitor-tracker-codes-1942\/\" data-internallinksmanager029f6b8e52c=\"30\" title=\"The difference between JavaScript and HTML visitor tracker codes\">JavaScript code<\/a> processor that is used to optimize website loading time by deferring the loading of all of your JavaScript until after an entire page has been rendered. While this may sound like a great idea, unfortunately, it does not work for many JavaScript programs that must be executed in real-time without deferring. This also affects TraceMyIP <a href=\"https:\/\/www.tracemyip.org\/tools\/website-visitors-counter-traffic-tracker-statistics\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"visitor tracking, visitor IP tracker\">visitor tracking<\/a> and disables real-time visitor surveillance.<\/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<p><strong><a href=\"https:\/\/www.tracemyip.org\/learn\/cloudflare-content-security-policies-csps-and-visitor-ip-tracking-1999\/\" data-internallinksmanager029f6b8e52c=\"28\" title=\"Cloudflare Content Security Policies (CSPs) and Visitor IP Tracking\">Cloudflare<\/a> for <a href=\"https:\/\/www.tracemyip.org\/learn\/wordpress-visitor-tracking-plugin-1382\/\" data-internallinksmanager029f6b8e52c=\"18\" title=\"WordPress visitor tracking plugin\">WordPress<\/a><\/strong>. Due to the fact that the Rocket Loader is known to cause issues on websites that extensively utilize and depend on real-time JavaScript frameworks, it&#8217;s normally disabled by Cloudflare\u2019s <a href=\"https:\/\/www.tracemyip.org\/learn\/wordpress-visitor-tracking-plugin-1382\/\" data-internallinksmanager029f6b8e52c=\"36\" title=\"WordPress visitor tracking plugin\">WordPress plugin<\/a>. The Rocket Loader is disabled when the \u201cApply Recommended Cloudflare Settings for WordPress\u201d button is pressed. However, in case if the recommended settings are not applied by the user, and the Rocket Loader remains enabled, it will interfere with some JavaScripts files on the websites and needs to be disabled, either for a specific script or the entire website. If you are using Cloudflare for WordPress, you can use <a href=\"#Rocket-loader-method-2\"><strong>Method 2<\/strong><\/a> to disable the Rocket Loader completely and enable visitor tracking.<\/p>\n<h2><strong>How to fix the issue<\/strong> with the website visitor tracker not working when using Rocket Loader<\/h2>\n<p><strong>There are 2 methods<\/strong> of making Rocket Loader changes to allow for visitor trackers to work<\/p>\n<ol>\n<li><strong><a href=\"#Rocket-loader-method-1\">Method 1<\/a>: Excluding TraceMyIP.org files<\/strong> from being processed by Rocket Loader<br \/>\nThis method is best if the Rocket Loader only breaks TraceMyIP tracker<\/li>\n<li><strong><a href=\"#Rocket-loader-method-2\">Method 2<\/a>: Completely disable Rocket Loader<\/strong><br \/>\nThis method is recommended if other website elements are not working or loading properly<\/li>\n<\/ol>\n<hr \/>\n<h3><span style=\"color: #008000;\"><strong><a id=\"Rocket-loader-method-1\"><\/a>Method 1.<\/strong><\/span> Exclude TraceMyIP files from Rocket Loader processing<\/h3>\n<p>If your website seem to function normally and only TraceMyIP tracking does not work, then you can <strong>exclude<\/strong> only the website visitor tracker scripts from being processed by <strong>Rocket Loader<\/strong>.<\/p>\n<p><strong>There are 3 primary Rocket Loader functions<\/strong> for speed optimization. All three need to have <strong>TraceMyIP.org<\/strong> scripts excluded. You will need to enter the string for each option if it&#8217;s enabled (checkbox is enabled)<\/p>\n<p>Using Rocket Loader, navigate to <strong>File Optimization \u2192 JavaScript Files<\/strong> and follow the <strong>3 steps<\/strong> below:<\/p>\n<h4><span style=\"color: #993300;\"><strong>Step 1 of 3 &#8211; Combine JavaScript files<\/strong> exclusion<\/span><\/h4>\n<p>Enter <strong>TraceMyIP.org<\/strong> into the Excluded JavaScript Files for <em>Combine JavaScript files.<\/em> In this case, although the checkbox for this option is not checked, the image illustrates how you would enter the string if the option were enabled.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"tmip-steps-img-full-size wp-image-1535\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files.jpg\" alt=\"wp-rocket-file-optimization-combine-javascript-files\" width=\"1200\" height=\"357\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files.jpg 1200w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-300x89.jpg 300w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-1024x305.jpg 1024w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-50x15.jpg 50w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-920x274.jpg 920w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-600x179.jpg 600w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-combine-javascript-files-320x95.jpg 320w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<h4><span style=\"color: #993300;\"><strong>Step 2 of 3 &#8211; Load JavaScript deferred<\/strong> exclusion<\/span><\/h4>\n<p>Enter <strong>TraceMyIP.org<\/strong> into the Excluded JavaScript Files for\u00a0<em>Load JavaScript deferred<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"tmip-steps-img-full-size wp-image-1537\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred.jpg\" alt=\"wp-rocket-file-optimization-load-javascript-deferred\" width=\"1152\" height=\"357\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred.jpg 1152w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-300x93.jpg 300w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-1024x317.jpg 1024w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-50x15.jpg 50w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-920x285.jpg 920w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-600x186.jpg 600w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-load-javascript-deferred-320x99.jpg 320w\" sizes=\"auto, (max-width: 1152px) 100vw, 1152px\" \/><\/p>\n<h4><span style=\"color: #993300;\"><strong>Step 3 of 3 &#8211; Delay JavaScript execution<\/strong> exclusion<\/span><\/h4>\n<p>Enter <strong>TraceMyIP.org<\/strong> into the Excluded JavaScript Files for\u00a0<em>Delay JavaScript execution<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"tmip-steps-img-full-size wp-image-1536\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript.jpg\" alt=\"wp-rocket-file-optimization-delay-excluded-javascript\" width=\"1000\" height=\"486\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript.jpg 1000w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript-300x146.jpg 300w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript-50x24.jpg 50w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript-920x447.jpg 920w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript-600x292.jpg 600w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/05\/wp-rocket-file-optimization-delay-excluded-javascript-320x156.jpg 320w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<hr \/>\n<h3><span style=\"color: #008000;\"><strong><a id=\"Rocket-loader-method-2\"><\/a>Method 2.<\/strong><\/span> Disable Rocket Loader completely<\/h3>\n<p>Unlike <strong>Method 1<\/strong> which only disables Rocket Loader for TraceMyIP.org scripts, Method 2 <strong>disables Rocket Loader completely<\/strong> and may also fix issues with other JavaScript files on your website that do not load properly.<\/p>\n<p><strong>To disable Rocket Loader<\/strong> and to ensure that all JavaScript programs are properly executed on your website, go to your Cloudflare dashboard and click on the Speed tab. Scroll down to the &#8220;Rocket Loader&#8221;, and toggle the feature off.<br \/>\n<img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"112\" class=\"tmip-steps-img-full-size wp-image-939\" src=\"http:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking.jpg\" alt=\"disable Rocket Loader Cloudfare\" srcset=\"https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking.jpg 1038w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-300x32.jpg 300w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-1024x110.jpg 1024w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-50x5.jpg 50w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-920x99.jpg 920w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-600x65.jpg 600w, https:\/\/www.tracemyip.org\/learn\/wp-content\/uploads\/2022\/02\/disable-rocket-loader-visitor-tracking-320x35.jpg 320w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/p>\n<hr \/>\n<h2>Checking Visitor Tracker after Rocket Loader settings changes<\/h2>\nTraceMyIP website visitor tracking should now be enabled and the visitor tracker icon is visible on all pages of your website.<\/p>\n<p><em>* Note that after disabling the Rocket Loader, other scripts that did not work earlier on your website will now start running. If some scripts were not previously checked for functionality, it is advised to carefully check your website for loading errors after the Rocket Loader is disabled to prevent invalid scripts from disabling 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>.<\/em><\/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>When using Rocket Loader with , the visitor tracking feature may not work properly. Rocket Loader is an optional JavaScript code processor that is used to optimize website loading time by deferring the loading of all of your JavaScript until after an entire page has been rendered. While this may&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[90,40],"ht-kb-tag":[122,91,93,92],"class_list":["post-936","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting","ht_kb_category-tracker-codes","ht_kb_tag-cache","ht_kb_tag-cloudfare","ht_kb_tag-rocket-loader","ht_kb_tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/936","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=936"}],"version-history":[{"count":1,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/936\/revisions"}],"predecessor-version":[{"id":2121,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb\/936\/revisions\/2121"}],"wp:attachment":[{"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-category?post=936"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.tracemyip.org\/learn\/wp-json\/wp\/v2\/ht-kb-tag?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}