简体   繁体   中英

Magento Google Analytics Content Experiments

What is the simplest way to implement Google Analytics Content Experiment into Magento CE ?

I want to test home page content.

Adding the Testing Code to CMS pages does not work. Testing Tag is after Analytics Tag.

Does Magento support adding the Testing Tag via admin Interface? Or is there a simple way to add the tag via XML Layout Update ?

Would it be possible to use Google Tag Manager to add the codes we need?

Tags could be installed after body like:

Add to local.xml in your layout folder following code:

<?xml version="1.0" encoding="UTF-8"?>
<!--
Last loaded layout file
-->
<layout>
  <default>
    <reference name="after_body_start">
      <block type="cms/block" name="tags-first-in-body" before="-">
        <action method="setBlockId"><block_id>tags-first-in-body</block_id></action>
      </block>
    </reference>
  </default>
</layout>

and add a static block called tags-first-in-body. Insert code to this block.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM