@optimics/dataform-ecom-report-transform

0.7.4 • Public • Published

@optimics/dataform-ecom-report-transform

npm npm (scoped)

Transform GA4 ecommerce data into reportful tables.

Overview

This Dataform package is designed to help e-shops evaluate ecommerce data from Google Analaytics 4. It extracts information about ecommerce events and item parameters and stores it in a new dataset in BigQuery. The name of the dataset will be ga4_datamart.

Before you begin

Install the package @optimics/dataform-ecom-report-transform to your dataform. Refer to our dataform workflow, if you need help. The current package version is npm (scoped)

Configuration

  1. In the definitions directory, create a .sqlx file.
  2. Insert the following code into the .sqlx file:
config {
    type: "incremental",
    schema: "ga4_datamart",
}

${ecom.query}

  1. In the includes directory, create a ecom.js file.
  2. Insert the following code into the .js file:
const { getEcomQuery } = require('@optimics/dataform-ecom-report-transform')
const query = getEcomQuery({
    ga4Dataset: 'optimics.analytics_12345678', 
    rangeCap: 30
})

module.exports = { query }

Readme

Keywords

none

Package Sidebar

Install

npm i @optimics/dataform-ecom-report-transform

Weekly Downloads

5

Version

0.7.4

License

none

Unpacked Size

5.04 kB

Total Files

4

Last publish

Collaborators

  • just-paja