piwik - ecommerce-analytics 电商

2024-03-25 13:08

本文主要是介绍piwik - ecommerce-analytics 电商,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

官方网址:

http://piwik.org/docs/ecommerce-analytics/


内容复制:

Piwik provides advanced ecommerce analytics features. This page will guide you through the following steps:

  1. Enable Ecommerce on your website’s tracking.
  2. Modify the Piwik tracking code to track Ecommerce data, products, orders on your website.
  3. An overview of the Ecommerce analytics reports to help you understand and improve your online shop!

Enable Ecommerce Tracking

Ecommerce reporting is disabled by default. To enable Ecommerce analytics reporting, click onSettings > Websites > Edit” and select Ecommerce enabled from the dropdown in the Ecommerce column.

Once Ecommerce is enabled for a website, the Goals menu will be renamed to Ecommerce & Goals and will display Ecommerce reports.

If you do not see the Goals menu, it is probably because the Goals plugin is disabled.

Go toSettings & Pluginsto enable the Goals plugins.

Using a Piwik plugin for your Ecommerce Software

If you use a popular Ecommerce Software platform such as Magento, Prestashop, Zen Cart, oxid, VirtueMart or osCommerce, there could already be a Piwik Plugin that will install the tracking automatically on your pages. Click on this link and then download the Piwik plugin, install the plugin in your Ecommerce app, enter the Piwik URL, Website Id in the plugin settings. Your Ecommerce pages should then be automatically tagged with the Javascript code and track Cart Updates, Orders and Products/Category views.

    

If your platform is not in this list, please consider developing an open source plugin to enable Ecommerce Tracking for the software you use. We would be glad to add it the Plugin List and have the whole community benefit!

If you use a custom-made Ecommerce software, you must implement Ecommerce Tracking using the Javascript function calls, in your website pages.

Ecommerce tracking

Once you have enabled Ecommerce tracking for a website, you need to implement tracking of the various Ecommerce interactions on your website. There are three main Ecommerce interactions that are tracked with Piwik:

  • Ecommerce Orders (and products),
  • Ecommerce Cart update (and products),
  • Product (and/or category) page views.

The following sections explain how to set up Ecommerce tracking, using the JavaScript TrackerEcommerce tracking methods.

Tracking Ecommerce Orders & Items Purchased (required)

Tracking Ecommerce orders and product details will allow Piwik to process reports on:

  • Product SKU,
  • Product name,
  • Top Product categories and general overview of Ecommerce performance in your online shop.

To track Ecommerce orders, two Javascript functions are used:

  1. addEcommerceItem(productSKU, productName, productCategory, price, quantity) This adds a product into the order, and must be called for each product in the order. productSKU is a required parameter, it is also recommended that you send other parameters if they are applicable in your Ecommerce shop.
  2. trackEcommerceOrder(orderId, grandTotal, subTotal, tax, shipping, discount) This tracks an Ecommerce order and sends the data to your Piwik server, for both this order and products previously added. Only orderId and grandTotal (ie. revenue) are required.

Here’s an example of tracking an Ecommerce order containing two products – this code should be inserted in the “Order confirmation” page, once  the visitor has checked out and issued payment. If you installed Piwik correctly, your pages should already have a tracking code. The Ecommerce code below must be added and generated based on the Order:

[...]
// add the first product to the order
_paq.push(['addEcommerceItem',
"9780786706211", // (required) SKU: Product unique identifier
"Endurance: Shackleton's Incredible Voyage", // (optional) Product name
"Adventure Books", // (optional) Product category. You can also specify an array of up to 5 categories eg. ["Books", "New releases", "Biography"]
8.8, // (recommended) Product price
1 // (optional, default to 1) Product quantity
]);
// Here you can add other products in the order
[...]
// Specifiy the order details to Piwik server & sends the data to Piwik server
_paq.push(['trackEcommerceOrder',
"A10000123", // (required) Unique Order ID
35, // (required) Order Revenue grand total (includes tax, shipping, and subtracted discount)
30, // (optional) Order sub total (excludes shipping)
5.5, // (optional) Tax amount
4.5, // (optional) Shipping amount
false // (optional) Discount offered (set to false for unspecified parameter)
]);
// we recommend to leave the call to trackPageView() on the Order confirmation page
_paq.push(['trackPageView']);
[...]

Important notes about the functions parameters:

  • price (parameter of addEcommerceItem() function), grandTotal, subTotal, tax, shipping, discount (parameters of trackEcommerceOrder() function) must be supplied as integer or floats, not as string. For example, all the following values are not valid: “14.4$”, “EUR14.4″, “14,4″, “14.4″. The following values are valid: 5, 3.3, 5.44. If your Ecommerce software provides the values as string only, you can call the Javascript function parseFloat() after making sure the string does not contain currency symbol or other characters, for example: parseFloat(“554.20″). Note that the Javascript parseFloat() does not support comma separated decimal values “25,3″ so you might have to replace the commas with dots before calling parseFloat().
  • orderId parameter is a unique string identifier for the order. If the page containing the trackEcommerceOrder() call is refreshed by the customer a few hours or days after the initial Order, Piwik will automatically discard the order as it is already recorded. You can use the same orderId for different Websites id, but for a given website, orderId must be unique.
  • If you print out some of these parameters in the HTML code, make sure that the Product SKUs, Names and categories are escaped in particular the ” character (double quotes), otherwise it may create Javascript parse errors.

Tracking Add to Cart & Items Added to the Cart (optional)

Every time a visitor adds (or updates, deletes) an item from his/her cart, you can use Piwik to track the latest cart subtotal as well as products left in the cart. Tracking cart updates will allow you to see how much revenue was left in your visitors’ carts for each day/week/etc, as well as getting reports on which products are most often left in the cart and which product categories are most often left abandoned in carts. Also, you can visualize each visit and the content of the cart they abandoned in the Visitor Log.

Some frequent causes for cart abandonment are:

  • high shipping prices,
  • complicated forms for new users (lack of “Anonymous checkout” option),
  • complicated / lengthy checkout process,
  • slow website,
  • visitor was just browsing the site or wanted to compare total cost with competitor.

When you make changes to your website to lower the cart abandonment rate, and try to increase your revenues, you can use Piwik to understand if your changes are making a positive impact.

To track Shopping Carts with Piwik, you would call the javascript function trackEcommerceCartUpdate() every time a user is adding, updating or deleting a product from the cart.

Example tracking an Ecommerce order containing two products:

the code is added every time the “cart” page is loaded, or when the “Add to cart” button is clicked:

[...]
// add the first product to the order
_paq.push(['addEcommerceItem',
"9780786706211", // (required) SKU: Product unique identifier
"Endurance: Shackleton's Incredible Voyage", // (optional) Product name
["Adventure Books", "Best sellers"], // (optional) Product category, string or array of up to 5 categories
8.8, // (recommended) Product price
1 // (optional, default to 1) Product quantity
]);
// Here it is important to add all other products found in the cart, even the products not updated by the current "Add to cart" click
[...]
// Records the cart for this visit
_paq.push(['trackEcommerceCartUpdate',
15.5]); // (required) Cart amount
_paq.push(['trackPageView']);
[...]

Tracking Product Page Views & Category Page Views (optional)

Tracking product page views, and/or category page views lets Piwik process the conversion rate for each product and/or category.
It can be useful to know which product or category pages have converted your visitors into customers. For example, perhaps some product pages have below average conversion rates but generate high revenue. You may decide to improve these product pages and check their conversion rates over time.

To track a product or category page view, the function setEcommerceView( productSKU, productName, categoryName, price ) is used, just before the call to piwikTracker.trackPageView() on the product/category page.

Example Tracking a Product Page View

In this example, the following code is added to the Product page for the book “Endurance” which is in the category “Adventure Books”:

[...]
// all parameters are optional, but we recommend to set at minimum productSKU and productName
_paq.push(['setEcommerceView',
"9780786706211", // (required) SKU: Product unique identifier
"Endurance: Shackleton's Incredible Voyage", // (optional) Product name
"Adventure Books", // (optional) Product category, or array of up to 5 categories
20.11 // (optional) Product Price as displayed on the page
]);
_paq.push(['trackPageView']);
[...]

Example tracking a Category page view

This code is added on the Category page “Adventure Books”

[...]
// on a category page, productSKU and productName are not applicable and are set to false
_paq.push(['setEcommerceView',
productSku = false, // No product on Category page
productName = false, // No product on Category page
category = "Adventure Books" // Category Page, or array of up to 5 categories
]);
_paq.push(['trackPageView']);
[...]

Ecommerce reports in Piwik

In your Piwik interface, you can find Ecommerce reports by clicking on the main menu on “Ecommerce & Goals”.

Assuming you have set up Ecommerce tracking as explained above, Piwik will provide the following Ecommerce reports

  • Ecommerce Metrics
    • Ecommerce orders
    • Total revenue
    • Average order value
    • Ecommerce conversion rate
    • Purchased products
    • Abandoned carts metrics: Visits with abandoned carts, revenue left in carts
  • Ecommerce Reports
    • Ecommerce overview: revenue, orders, conversion rate, AOV (Average Order Value), etc.
    • Best productSKUs
    • Best product Names
    • Best product Categories
    • Ecommerce Log – displays all visits containing an Ecommerce Order, so you can visualize your customers clickpath
  • Improved standard Reports
    • Existing reports will now include the “Ecommerce revenue” in the processing of the “Revenue” column.
    • These standard reports will also have a new metric column: “Ecommerce conversion rate”

Ecommerce Activity Overview

By default, Piwik will display the Ecommerce metrics for the selected date range, as well as a graph showing historical values for the selected metric.

Best Products & Best Categories

Piwik processes the list of Top Products sold, ordered by any of the Product metrics: Revenue, Quantity purchased, Unique Purchases, Average price, Average quantity, Visits or Conversion rate.

You can get the top products reports by Product SKU, by Product Name or by Category.

Note that you can access a help definition for each column by hovering on the column name.

Ecommerce Activity log

With Piwik, you can view (in real time!) the detailed Ecommerce log, showing all visits that have made a purchase on your website, as well as all visitors who have abandoned their shopping cart with products left in them.

Ecommerce Metrics in Standard Reports

Existing reports will now display the Ecommerce metrics in column list, so that Ecommerce performance can be visualized in any existing report and not only in the Ecommerce report page.

Advanced Ecommerce Statistics API

All the data available in the User Interface Ecommerce reports is also available via the Piwik Analytics API.

You can easily request the list of products purchased on your site, either grouped by Product SKU, Product Name or Product Category.

For each entry; the following metrics are returned:

  • Total revenue
  • Total quantity
  • Average price
  • Average quantity
  • Number of orders (or abandoned carts) containing this product
  • number of visits on the Product page
  • Conversion rate

You can request these reports for Ecommerce orders, and also for abandoned carts.

Check out the full documentation and example links at: Ecommerce Analytics API Reference

More information

We hope you enjoy using Piwik to track your Ecommerce shop(s), and that Ecommerce analytics helps you to generate more revenue from your website, as well as keeping your customers happy.

For a list of the feature requests around Ecommerce Tracking & Reporting in Piwik, check out the ticket Ecommerce Analytics feature requests.

If you have any feedback or question about this documentation, please post a message in the Forums or in the feedback form below.


这篇关于piwik - ecommerce-analytics 电商的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/845107

相关文章

Vue2电商项目(二) Home模块的开发;(还需要补充js节流和防抖的回顾链接)

文章目录 一、Home模块拆分1. 三级联动组件TypeNav2. 其余组件 二、发送请求的准备工作1. axios的二次封装2. 统一管理接口API----跨域3. nprogress进度条 三、 vuex模块开发四、TypeNav三级联动组件开发1. 动态展示三级联动数据2. 三级联动 动态背景(1)、方式一:CSS样式(2)、方式二:JS 3. 控制二三级数据隐藏与显示--绑定styl

提升PrestaShop外贸电商网站安全的几款行业必备工具

提升PrestaShop外贸电商网站安全的几款行业必备工具 PrestaShop发展历程 PrestaShop是一款优秀且强大的外贸开源电商软件,我们开始使用PrestaShop始于2009年,那时PrestaShop还是0.9版本:界面清新,性能强悍,扩展友好等特性,既没有Magento的笨重,也没有ZenCart的古老,更没有OpenCart的脆弱,因此PrestaShop如雨后春笋,迅速

运营版开源代码 多语言跨境商城 跨境电商平台

默认中英双语 后台带翻译接口 支持133种语言自动翻译 支持多商户联盟 一键部署版本 伪静态+后台登陆后缀 源码下载:https://download.csdn.net/download/m0_66047725/89722389 更多资源下载:关注我。

基于Python的电商导购APP设计与实现

基于Python的电商导购APP设计与实现 Design and Implementation of an E-commerce Shopping Guide App based on Python 完整下载链接:基于Python的电商导购APP设计与实现 文章目录 基于Python的电商导购APP设计与实现摘要第一章 简介1.1 研究背景1.2 研究目的1.3 研究方法1.4 论文结

店匠科技携手Stripe共谋电商支付新篇章

在全球电商行业蓬勃发展的背景下,支付环节作为交易闭环的核心,其重要性日益凸显。随着消费者对支付体验要求的不断提高,以及跨境电商的迅猛发展,支付市场正经历着前所未有的变革与挑战。在这一充满机遇与竞争的领域,店匠科技(Shoplazza)凭借其创新的嵌入式支付解决方案—— Shoplazza Payments,成功在市场中占据了一席之地。 近日,在新加坡举办的 Stripe Tour 新加坡站 20

探索API接口新篇章:深度解析各大电商平台商品详情数据接口

——在成长的路上,我们都是同行者。这篇关于API接口的文章,希望能帮助到您。期待与您继续分享更多API接口的知识,请记得关注Anzexi58哦! 在数字化浪潮的推动下,电子商务已成为全球经济的重要组成部分,而商品详情数据接口作为电商平台的“心脏”,不仅连接着商家与消费者,更是驱动个性化推荐、智能搜索、库存管理等核心功能的关键。本文旨在深入剖析当前主流电商平台(如淘宝、京东、亚马逊等)的商品

米壳AI:做跨境电商欧美市场必备工具--AI图片翻译!

在竞争激烈的欧美跨境电商领域,如何脱颖而出? 对于欧美市场的跨境电商从业者来说,语言和文化的差异常常是一大挑战。 但有了米壳 AI 这个强大的工具,问题便迎刃而解。是一个无需下载安装的网站,打开就能用,极其方便。 它支持批量上传产品图片一键翻译,无论是产品展示图上的详细说明,还是广告宣传图中的关键信息,都能快速、准确地翻译成目标市场的语言。 而且米壳 AI 支持翻译

如何使用电商API接口?(淘宝|京东商品详情数据接口)

一、了解电商API接口: 如今,在电商市场中,电商API接口的广泛应用极大地提高了电商行业的工作效率,使得商家能够灵活集成多种服务,高效优化业务流程。 当前,电商平台中的多种业务都可以通过使用API接口来做优化,如商品数据获取、用户数据、支付信息、物流跟踪等等。 二、选择并使用API接口: 当电商品牌方在选择API接口时,首先要做的是查阅电商API接口的相关文档,了解API接口的功能及

淘宝订单 API 接口:获取淘宝平台数据的 api 接口(电商 ERP 订单对接方案)

taobao.seller_order_list 获取卖家订单列表 taobao.custom 自定义淘宝开放平台 API 公共参数 请求地址: 登录 - 凡邦跨境电商平台接口提供商 数据采集公司 数据接口定制服务 企业级数据服务商 seller_order_list 参数说明 请求参数 请求参数:page=&tabCode=&dateBegin=&dateEnd=&buyerN

揭秘美国大健康电商:为何Newsbreak广告成为其市场破局利器?

揭秘美国大健康电商:为何Newsbreak广告成为其市场破局利器? 在数字化浪潮席卷全球的今天,大健康产业作为一个融合了医疗、保健、营养等多个领域的综合性行业,正以前所未有的速度蓬勃发展。而美国,作为全球大健康市场的领头羊,其电商平台的竞争尤为激烈。在众多营销渠道中,Newsbreak广告凭借其独特的优势,成为了众多大健康电商竞相追逐的焦点。本文将深入剖析美国大健康电商在Newsbreak投放广