Google Analytics Experiment

valhidalgo's Avatar

valhidalgo

26 May, 2014 10:28 PM

Hey Guys!

I'm trying to make a Google Analytics Experiment to see which one of the landing pages we have in our adwords campaign works better, but i'm in a little bit of trouble. I'm supposed to paste this code immediately after the opening head tag at the top of my experiment's original page, which would be this one: www.wearetango.com/wearetango-landing.

<!-- Google Analytics Content Experiment code -->

I can't find to paste it in the right place, tried to paste it in the css field but didn't work. Can you help?

Thank you!

  1. Support Staff 1 Posted by Uldis on 27 May, 2014 07:17 AM

    Uldis's Avatar

    Hi,
    try to paste this code in "settings - other settings - javascript include" field like this:

    <script>
    //your code here
    </script>
    
    this will be inserted right before closing BODY tag, but should work anyway.
  2. Uldis closed this discussion on 27 May, 2014 07:17 AM.

  3. valhidalgo re-opened this discussion on 27 May, 2014 01:38 PM

  4. 2 Posted by valhidalgo on 27 May, 2014 01:38 PM

    valhidalgo's Avatar

    Hello,

    It didn't work. I realize now the experiment code was wrong in the first question. I'll send you a capture of what analytics ask me to do with the code.

  5. 3 Posted by valhidalgo on 27 May, 2014 01:47 PM

    valhidalgo's Avatar

    I would need to paste the analytic code in the head of the section called wearetango-landing only, not in the hole site. Is there a way to add it just in that section?

  6. Support Staff 4 Posted by Uldis on 28 May, 2014 08:45 AM

    Uldis's Avatar

    Unfortunately it's not possible without modifying Berta code.
    You need to edit file
    engine/js/BertaEditorBase.js
    and allow to use "script" tag in HTML editor.
    This way you will be able to paste your script in any entry description field.
    Find the function "tinyMCE_ConfigurationsInit" and add "script" to "valid_elements".

  7. Uldis closed this discussion on 28 May, 2014 08:45 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac