• Resolved qwazi

    (@qwazi)


    Hello, can I exclude code from merging into a file? I need to leave Google and Yandex metrics on the page, and take everything else from html.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    yes, you can add variable names from the inline JS to be excluded to the “Exclude scripts from Autoptimize” field for that purpose qwazi 🙂

    Thread Starter qwazi

    (@qwazi)

    Can you show a small example with a variable? And that is not very clear. Thank you)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    suppose you have inline JS like this;

    <script>window.google.parameter = 'xyz123';</script>

    then you could add window.google.parameter to the exclusion list.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘exclude code in Merge inline JS’ is closed to new replies.