• Resolved woomigrating

    (@woomigrating)


    Hi and thanks for your useful plugin!

    In my site the /wp-content/caos-cashe/analytics/analytics.js isn’t aggregated to the main Autoptimize js-file.

    Is this expected? If so, is it possible to make so it’s included in the aggregated AO js-file?

    Maybe you done it like this so the aggregated js-file dosn’t hold an outdated version of the analytics code? If so, maybe it’s possible to also delete the AO js file when your plugin updates the analytics file, so the AO js-file is recreated? If this is an alternative, could you please give a hint on how to?

    If this could be solved your plugin deserves 6 out of 5 stars 🙂

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Hi!

    I love the suggestion, but I’m afraid this isn’t possible. The analytics.js file is already minified and since the file contains variable names of one character: ‘b’ for example, combining it with other js files could cause the wrong variable to be called.

    So I guess I’ll have to make due with 5 stars then… 😉

Viewing 1 replies (of 1 total)

The topic ‘Aggregate local analytics.js into Autoptimize js-file’ is closed to new replies.