Magento添加Google廣告跟蹤代碼

1. Open this file:打開模板文件

/app/design/frontend/default/yourskinname/template/checkout/success.phtmljavascript

 

2. Login to your Google Adwords account拷貝代碼

Under the 「Reporting’ tab, click on 「Conversions」 and follow the steps to get the code that you’ll also need to add to the success.phtml page. It will look something like this:html

<!– Google Code for Sale Conversion Page –>
<script type=」text/javascript」>
<!–
var google_conversion_id = 0987654321;
var google_conversion_language = 「en」;
var google_conversion_format = 「3″;
var google_conversion_color = 「ffffff」;
var google_conversion_label = 「KFKFKFKFKFKF」;
var google_conversion_value = 0;

//–>
</script>
<script type=」text/javascript」 src=」https://www.googleadservices.com/pagead/conversion.js」>
</script>
<noscript>
<div style=」display:inline;」>
<img height=」1″ width=」1″ style=」border-style:none;」 alt=」" src=」https://www.googleadservices.com/pagead/conversion/0987654321/?value=150&amp;label=KFKFKFKFKFKF&amp;guid=ON&amp;script=0″/>
</div>
</noscript>
java

 

添加代碼到app

success.phtml最後。
相關文章
相關標籤/搜索