• Resolved gemme

    (@gemme)


    Hello Frank!

    First of all, thank you for this great plugin ??

    Unfortunately, it gets in a way of performing Google Analytics Experiments.
    To use it on selected page, it is required to add this at the beginning of header.php:

    <?php
    if (is_page($page_id)){ ?>
    <!-- Google Analytics Content Experiment code -->
    <script>...</script>
    <!-- End of Google Analytics Content Experiment code -->
    <?php } ?>

    When yuor plugin is enabled, the script tags are removed and Google Analytics Experiment cannot detect it. Could it be solved?

    (posted also on blog.futtta.be, sorry if it’s a problem)

    https://www.ads-software.com/plugins/autoptimize/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Well, there are two solutions, really (both are mentioned in the FAQ, by the way ?? );
    1. put all between noptimize-tags;

    <!--noptimize-->
    <!-- Google Analytics Content Experiment code -->
    <script>...</script>
    <!-- End of Google Analytics Content Experiment code -->
    <!--/noptimize-->

    2. search for a unique string in the js-code between the script-tags and add that to the comma-seperated list of JS to exclude from optimizing.

    have fun!
    frank

    Thread Starter gemme

    (@gemme)

    Oops, didn’t look at the FAQ <embarrassed>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics Experiments compatibility’ is closed to new replies.