WordPress.org

Forums

Google Content Experiments
[resolved] Can't find expirement code in original (3 posts)

  1. Diviance01
    Member
    Posted 1 year ago #

    Hi everyone,

    Thanks for this great plugin.
    But when i want to validate the test, Google Analytics can't find the expirement code in the original page.

    This is the code:

    <!-- Google Analytics Content Experiment code -->
    <script>function utmx_section(){}function utmx(){}(function(){var
    k='74218181-0',d=document,l=d.location,c=d.cookie;
    if(l.search.indexOf('utm_expid='+k)>0)return;
    function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
    indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
    length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(
    '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl':
    '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+
    '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().
    valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
    '" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
    </script><script>utmx('url','A/B');</script>
    <!-- End of Google Analytics Content Experiment code -->

    I placed it in the plugin box on the original page.

    This is the link to my website.

    I'm using a Thesis theme so maybe that's where it goes wrong?
    Thanks!

    http://wordpress.org/plugins/google-content-experiments/

  2. glennm
    Member
    Plugin Author

    Posted 1 year ago #

    This plugin does not support the Thesis theme out of the box. You need to perform some additional steps. See the Installation instructions.

  3. Diviance01
    Member
    Posted 1 year ago #

    Ok, thanks for the answer!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Content Experiments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.