如何在 magento 1.9 中手动添加 GTM 或 Google Analytics Code/snippet(主要针对 GTM)

How to add GTM or Google Analytics Code/snippet manually in magento 1.9 (mainly for GTM)

任何人都可以向我解释如何在杂项代码中手动将 google 标签管理器代码片段添加到 magento 1.9(即没有扩展名)代码被放置在结束 body 标签处。我希望它在打开正文之后放置 tag.I 想要路径和要编辑的部分

Link 1 Link 2

我已经找到解决方法了。

Step 1: goto app\design\frontend\rwd(your theme package)\default\template\page and open 1column.phtml, 2column-left.phtml, 2column-right.phtml, 3column.phtml in a editor.
Step 2: Paste your GTM snippet below this code (getChildHtml('after_body_start') ?>) in all the .phtml pages given in step 1.
Step 3:save the code and check ifit fires in all pages or not. 

P.S.: If your gtm does not fire in success/thank you page. paste the code in (\app\design\frontend\base\default\template\checkout\sucess.phtml) anywhere you like.