# Configure the Snowplow Ecommerce Tag
> Configure the Snowplow Ecommerce Tag Template in GTM using native Snowplow Ecommerce API or transitional GA4/UA adapter APIs. Set tracking parameters, custom contexts, and product data for ecommerce event tracking.
> Source: https://docs.snowplow.io/docs/sources/google-tag-manager/ecommerce-tag-template/configuration/
> Documentation index: https://docs.snowplow.io/llms.txt

Use the native Snowplow Ecommerce API or [transitional GA4/UA ecommerce adapter APIs](/docs/sources/web-trackers/tracking-events/ecommerce/#ga4ua-ecommerce-transitional-api) for existing dataLayer implementations using those formats. To get full value from the [Snowplow Ecommerce plugin](/docs/sources/web-trackers/tracking-events/ecommerce/) we recommend using the native API when possible.

![Ecommerce API dropdown with three options: Snowplow Ecommerce (selected and highlighted), Google Analytics 4 Ecommerce, and Universal Analytics Enhanced Ecommerce.](/assets/images/01_ecommerce_api-5ccc2f11a8b43b04dbc188a27da29ea1.png)

## Tracking Parameters

**Snowplow Ecommerce:**

![Snowplow Ecommerce Tracking Parameters section showing Ecommerce Function set to Track Product View, an empty Ecommerce Argument field, an empty Custom Context Entities table with an Add Row button, and Set Custom Timestamp set to Use system time.](/assets/images/02_sp_tracking_parameters-79d633f456f8c14286ec3ed73e2fd3fb.png)

#### Snowplow Ecommerce Function

In this section you can select the [Snowplow Ecommerce function](/docs/sources/web-trackers/tracking-events/ecommerce/) to use.

#### Snowplow Ecommerce Argument

In this textbox you can specify the argument to the ecommerce function. This can be a Variable that evaluates to a corresponding object.

#### Additional Tracking Parameters

##### Add Custom Context Entities

Use this table to attach [custom context entities](/docs/sources/web-trackers/custom-tracking-using-schemas/#track-a-custom-entity) to the Snowplow event. Each row can be set to a Google Tag Manager variable that returns an array of custom contexts to add to the event hit.

##### Set Custom Timestamp

Set this to a UNIX timestamp in case you want to [override the default timestamp](/docs/sources/web-trackers/tracking-events/#custom-timestamp) used by Snowplow.

**GA4 Ecommerce:**

![GA4 Ecommerce Tracking Parameters section showing GA4 Ecommerce Function set to Track GA4 View Item List, and Ecommerce Arguments subsection with empty DataLayer ecommerce and Options object fields.](/assets/images/02_ga4_tracking_parameters-62661b55514ba47b36edf5fbc50c3282.png)

#### GA4 Ecommerce Function

In this section you can select the [Google Analytics 4 Ecommerce function](/docs/sources/web-trackers/tracking-events/ecommerce/) to use.

#### GA4 Ecommerce Arguments

##### DataLayer ecommerce

Here you can specify the dataLayer ecommerce variable to use, i.e. a variable that returns the `ecommerce` object itself.

##### Options object

Here you can specify a variable returning an object holding additional information for the ecommerce event (e.g. including `currency`, `finalCartValue`, `step`, etc).

**Universal Analytics Enhanced Ecommerce:**

![Universal Analytics Enhanced Ecommerce Tracking Parameters section showing UA Enhanced Ecommerce Function set to Track Enhanced Ecommerce Product List View, and Ecommerce Arguments subsection with empty DataLayer ecommerce and Options object fields.](/assets/images/02_ua_tracking_parameters-1c48c247c61794f48eac816ad435b34c.png)

#### Universal Analytics Enhanced Ecommerce Function

In this section you can select the [Universal Analytics Enhanced Ecommerce function](/docs/sources/web-trackers/tracking-events/ecommerce/) to use.

#### Universal Analytics Enhanced Ecommerce Arguments

##### DataLayer ecommerce

Here you can specify the dataLayer ecommerce variable to use.

##### Options object

Here you can specify a variable returning an object holding additional information for the ecommerce event (e.g.including currency, finalCartValue, step etc).

***

## Snowplow Tracker and Ecommerce Plugin Settings

![Snowplow Tracker and Ecommerce Plugin Settings section showing a Tracker Settings dropdown prompting to select a Snowplow v3 Settings variable, and Plugin Settings with Snowplow Ecommerce Plugin Library set to Self-hosted and an empty Self-hosted Plugin URL field.](/assets/images/04_tracker_plugin_settings-383e984e9035913a2f284e466f2723fe.png)

### Tracker Settings

The Snowplow Ecommerce tag template **requires** a Snowplow Settings Variable to be setup. In this section you can select the Google Tag Manager variable of type [Snowplow Settings](/docs/sources/google-tag-manager/quick-start/) to use.

### Plugin Settings

In this section you can select how the plugin will be added. The available options are:

- `jsDelivr`: To get the plugin URL from jsDelivr CDN. Choosing this option allows you to specify the plugin version to be used.
- `unpkg`: To get the plugin URL from unpkg CDN. Choosing this option allows you to specify the plugin version to be used.
- `Self-hosted`: To get the plugin library from a specified URL. This option requires a [Permission](https://developers.google.com/tag-platform/tag-manager/templates/permissions) change to allow injecting the plugin script from the specified URL.
- `Do not add`: To not add the plugin (e.g. when using a [Custom Bundle](/docs/sources/web-trackers/plugins/configuring-tracker-plugins/) with the plugin already included). The default plugins bundled with the JavaScript tracker has changed from v3 to v4. Ensure that all plugins that you require are included. A list of the default plugins is available [here](/docs/sources/web-trackers/plugins/).
