承接 framecreative/woocommerce-order-datalayer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

framecreative/woocommerce-order-datalayer

Composer 安装命令:

composer require framecreative/woocommerce-order-datalayer

包简介

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use.

README 文档

README

Pushes completed orders into a javascript object named datalayer into the wp_head() for Google Tag Manager to use. Outputs the order details into the dataLayer on the receipt page then sets a meta value into order post called _ga_tracked so the dataLayer is not outputted twice if the user refreshes.

Requirements

  • Wordpress 4.0+
  • Woocommerce 3.0+
  • PHP 5.6+

Install

Via Composer

composer require framecreative/woocommerce-order-datalayer

Manually

Download and install into your plugins folder

Features

  • Use filter woocommerce_order_datalayer to add objects to the dataLayer before it is outputted.
  • Adds order meta to track that the dataLayer has been triggered already.

DataLayer contains:

  • transactionId
  • transactionDate
  • transactionType: 'sale'
  • transactionAffiliation
  • transactionTotal
  • transactionShipping
  • transactionTax
  • transactionPaymentType
  • transactionCurrency
  • transactionShippingMethod
  • transactionPromoCode
  • ecomm_totalvalue
  • event: 'orderCompleted'
  • ecomm_prodid: [ids]
  • ecomm_pagetype: 'purchase'
  • transactionProducts:
    • id
    • name
    • sku
    • category
    • price
    • currency
    • quantity

统计信息

  • 总下载量: 1.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固