open-index/open-npm huggingface dataset:
npm package: @optimics/dataform-ecom-report-transform
Description: ![npm](https://img.shields.io/npm/dm/%40optimics/dataform-ecom-report-transform) ![npm (scoped)](https://img.shields.io/npm/v/%40optimics/dataform-ecom-report-transform)
Latest version: 0.7.4

# `@optimics/dataform-ecom-report-transform`

![npm](https://img.shields.io/npm/dm/%40optimics/dataform-ecom-report-transform)
![npm (scoped)](https://img.shields.io/npm/v/%40optimics/dataform-ecom-report-transform)

> 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](../README.md), if you need help. The current
package version is ![npm
(scoped)](https://img.shields.io/npm/v/%40optimics/dataform-ecom-report-transform)

## Configuration

1. In the `definitions` directory, create a `.sqlx` file.
2. Insert the following code into the `.sqlx` file:

```sqlx
config {
    type: "incremental",
    schema: "ga4_datamart",
}

${ecom.query}

```

3. In the `includes` directory, create a `ecom.js` file.
4. Insert the following code into the `.js` file:

```javascript
const { getEcomQuery } = require('@optimics/dataform-ecom-report-transform')
const query = getEcomQuery({
    ga4Dataset: 'optimics.analytics_12345678', 
    rangeCap: 30
})

module.exports = { query }
```
npm package: @optimics/dataform-utm-source-filter
Description: ![npm](https://img.shields.io/npm/dm/%40optimics/dataform-utm-source-filter) ![npm (scoped)](https://img.shields.io/npm/v/%40optimics/dataform-utm-source-filter)
Latest version: 0.7.4

# `@optimics/dataform-utm-source-filter`

![npm](https://img.shields.io/npm/dm/%40optimics/dataform-utm-source-filter)
![npm (scoped)](https://img.shields.io/npm/v/%40optimics/dataform-utm-source-filter)

> Consolidate your e-shop orders by UTM source.

## Overview

This Dataform package is designed to help e-shops evaluate the contribution of
`utm_source` on purchases. It extracts information about sessions that started
with the `utm_source` parameter and stores it in a new dataset in BigQuery. The
name of the dataset will be `partner_export_daily_ga4`.

## Before you begin

Install the package `@optimics/dataform-utm-source-filter` to your dataform.
Refer to our [dataform workflow](../README.md), if you need help. The current
package version is ![npm
(scoped)](https://img.shields.io/npm/v/%40optimics/dataform-utm-source-filter)

## Configuration

1. In the `definitions` directory, create a `.sqlx` file.
2. Insert the following code into the `.sqlx` file:

```sqlx
config {
  type: "incremental",
  schema: "partner_export_daily_ga4",
}

${intraday.query}
```

3. In the `includes` directory, create a `.js` file.
4. Insert the following code into the `.js` file:

```javascript
const { createIntradayTable } = require('@optimics/dataform-utm-source-filter')
const query = createIntradayTable({
  ga4Dataset: '{YOUR GOOGLE CLOUD PROJECT ID}.{YOUR DATASET ID}',
  utmSource: '{YOUR UTM SOURCE}'
})
module.exports = { query }
```
npm package: @optimics/gtm-template-builder
Description: Tools used to build Google Tag Manager Tag Templates
Author: Pavel Žák
Latest version: 0.8.7

# `@optimics/gtm-template-builder`

> Build Google Tag Manager with at least minimal verification

GTM templates are very trashy product, so we have this package to at least
verify the integrity of the template file, before shipping it. It is also
capable of auto-generating the changeNots from repository metada, supporting
the multirepository structure.

## Requirements

This library runs [git](https://git-scm.com/) using the OS shell. Without git
installed and configured, this will not work at all.

## Usage

```
npm install --save-dev @optimics/gtm-template-builder
```

Create directory with following files, that will be mapped to the template

```
| info.json
| parameters.json
| code.sjs
| permissions.json
```

Build the template

```
import { buildTemplate } from '@optimics/gtm-template-builder'
buildTemplate('/path/to/the/src/directory', '/tmp/my-out-file.tpl')
```

After you committed the template to the repository, create the metadata.yml
file

```
import { buildMetadata } from '@optimics/gtm-template-builder'
buildMetadata('/path/to/the/template.tpl', '/tmp/metadata.yml')
```

The `homepage` and `documentation` is read from the 'package.json' file in the
repository.