【问题标题】:how to add Google eCommerce Tracking in our opencart site如何在我们的 opencart 网站中添加 Google 电子商务跟踪
【发布时间】:2018-03-16 09:25:09
【问题描述】:

我有一个 opencart 网站,我需要在我的 opencart 网站中添加 Google 电子商务跟踪如何添加?以及在哪里添加?我有一个谷歌脚本代码,但我不知道,请任何人帮助我。

这里 google 谷歌电子商务跟踪代码如何转换我们的基础请帮助:

<script type="text/javascript">
ga('require', 'ecommerce');
ga('ecommerce:addTransaction', {
  'id': '1234',                     // Transaction ID. Required. dynamic variable of order id
  'affiliation': 'Acme Clothing',   // Affiliation or store name. Kuberan Silks
  'revenue': '11.99',               // Grand Total. grand total dynamic variable of the price
  'shipping': '5',                  // Shipping. dynamic variable of shipping
  'tax': '1.29'                     // Tax. dynamic tax variable
});

ga('ecommerce:addItem', {
  'id': '1234',                     // Transaction ID. Required. 
  'name': 'Fluffy Pink Bunnies',    // Product name. Required.
  'sku': 'DD23444',                 // SKU/code.
  'category': 'Party Toys',         // Category or variation.
  'price': '11.99',                 // Unit price.
  'quantity': '1'                   // Quantity.
});

ga('ecommerce:send');
</script>

【问题讨论】:

    标签: javascript php opencart


    【解决方案1】:

    1. 登录现有帐户或创建新帐户以从 Google Analytics(分析)检索跟踪代码。

    2.复制提供的代码。

    3. 登录您的 OpenCart 管理面板。

    4. 导航到扩展 -> 分析:

    5. 在 Google Analytics 标题旁边,点击蓝色铅笔图标以编辑代码:

    6.将检索到的跟踪代码粘贴到文本框中。

    7.选择启用并保存更改。

    8. 使用 Control/Command+U 热键检查页面源代码。 sn-p 应该出现在页头部分的结束标记之前:

    9.进入您的 Google Analytics(分析)帐户以跟踪网站的统计信息。

    【讨论】:

    • 你读过主要问题吗? “我需要在我的 opencart 网站中添加 Google 电子商务跟踪”您的回答没有满足任何主要要求....
    猜你喜欢
    • 2014-09-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-01
    • 2013-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多