trackmyip
  1. Home
  2. Troubleshooting
  3. Autoptimize WordPress plugin and visitor tracking and analytics issues

Autoptimize WordPress plugin and visitor tracking and analytics issues

Category

Autoptimize is a popular WordPress plugin that helps optimize the performance of WordPress websites by aggregating, minifying, and caching various assets such as HTML, CSS, and JavaScript files.

As with many website cache scripts, it prevents the TraceMyIP scripts from being loaded directly from its servers, causing the visitor tracking and analytics to stop working.

Sign up to instantly track website visitors IPs!

Fixing the issue with Autoptimize and visitor analytics and tracking

With Autoptimize plugin, the Optimize JavaScript Code option has been found to cause issues with analytics.

Before you proceed with the instructions, disable own IP blocking via TraceMyIP interface to be able to test the visitor tracker.

To exclude TraceMyIP scripts from being affected by WordPress Autoptimize, follow these steps:

  1. Navigate to SettingsAutoptimize
  2. Under the JS, CSS & HTML tab, scroll to the Exclude scripts from Autoptimize section
  3. At the end of the existing list, add a coma and add tracemyip 
  4. Scroll to the Misc Options section and uncheck the box next to the Minify excluded CSS and JS files option
  5. Click on the Save Changes and Empty Cache button
  6. Test the visitor tracking. If the above steps did not resolve the issue, then you’ll need to disable the Optimize JavaScript Code option. Scroll to the top JS, CSS & HTML options page and uncheck the box next to Optimize JavaScript Code
  7. Press on the Save Changes and Empty Cache button

More info on Autoptimize plugin for WordPress

The plugin is designed to improve page load times, reduce server resource usage, and ultimately enhance the user experience for visitors.

Here are the key features and functionalities of the Autoptimize plugin:

  • HTML, CSS, and JavaScript Optimization: Autoptimize can automatically aggregate and minify CSS and JavaScript files used on your WordPress site. This process removes unnecessary characters and spaces from the code, reducing the file size and making them load faster.
  • Critical CSS Generation: The plugin can generate and inline critical CSS, which is the minimum CSS required to render the above-the-fold content of a page. Inlining critical CSS eliminates additional HTTP requests, resulting in faster initial page rendering.
  • Deferred JavaScript Loading: Autoptimize can defer the loading of JavaScript files, which means they will load after the rest of the page has loaded, improving perceived page speed.
  • CSS and JavaScript Combination: The plugin combines multiple CSS and JavaScript files into fewer files, reducing the number of requests needed to load the website.
  • Image Optimization: Autoptimize can optimize and compress images on your site, helping to reduce their file size without significant loss of quality.
  • Cache Mechanism: The plugin offers basic caching functionality to store the optimized files and serve them more efficiently to visitors, reducing server load.
  • Async and Defer Options: Autoptimize allows you to specify certain scripts to be loaded asynchronously or deferred, giving you more control over how resources are loaded on your website.
  • Compatibility with Other Plugins: The plugin is designed to work well with various other caching plugins and optimization tools, allowing you to integrate it seamlessly into your existing setup.

Autoptimize provides an interface with straightforward settings to configure and optimize your website. However, due to the diverse combinations of themes and plugins used on WordPress websites, some users might need to fine-tune the settings to avoid conflicts or ensure optimal performance.

Who visits your website? Sign up to find out!

Was this article helpful?

Related Articles