在我的网站上实施SEO代码 [英] To implement SEO code on my website

查看:96
本文介绍了在我的网站上实施SEO代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码我需要在我的网站上的几个页面上实现。

所以如果有人有这个想法,可以帮助我。

页面是:



•购物车

•送货地址

•付款方式

•结账确认

•结帐已完成





SEO代码:



The following code i need to implement on few pages on my website.
So if anybody has the idea, can help me out.
the pages are :

• Shopping Cart
• Shipping Address
• Payment Method
• Checkout Confirm
• Checkout Completed


The SEO code :

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32748164-1']);
  _gaq.push(['_trackPageview']);

  _gaq.push(['_addTrans',
    ' ',                 //Order Number
    ' ',                 //Price
    ' ',                 //Total
    ' ',                 //Shipping1
    ' ',                 //Order Total
    ' ',                 //city
    ' ',                 //State
]);

  _gaq.push(['_addItem',
    ' ',                  //Order Number
    ' ',                  //SKU
    ' ',                  //Product
    ' ',                  //Price
    ' ',                  //Quantity
]);

  _gaq.push(['_trackTrans']);


  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

推荐答案

上面提到的代码似乎是分析代码。这可以放在母版页脚中(或者可以在内容占位符的正下方或在正文标记的末尾之前。



这不是SEO代码。误导性标题。请使用适当的标题以获得快速答案。
The code you have mentioned above seems to be analytical code. This can be placed in the master page footer (or can be right below the content place holder or before the end of the body tag.

This is not an SEO code. Misleading title. Please use appropriate titles for quick answers.


这篇关于在我的网站上实施SEO代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆