How to install the GTM template
This guide shows you how to track an ecommerce event in Google Tag Manager and send it to Picked. You need a GTM container and your Picked Project ID.
Automatic installation
Install the template from the GTM Community Gallery:
- In Tag Manager, click Templates.
- In the Tag Templates section, click Search Gallery.
- Search for
Picked Ecommerce. - Click the Picked Ecommerce template to read its detail.
- Click the Add to workspace button.
- Read the permissions that it needs.
- Click Add.

Manual installation
To import the template file yourself:
- Download the template file from GitHub with the download icon.
- In Google Tag Manager, go to Templates.
- Click New.
- Open the three-dot menu.
- Click Import.
- Choose the file that you downloaded.
- Click Save.
Setup
1. Create a Project ID variable
Sign in to the Picked Dashboard and copy the ID of your
project. Save it as a constant variable in GTM, for example Picked Project ID.

2. Create an ecommerce data variable
Create a Data Layer Variable with the variable name ecommerce. It captures what
GA4 Enhanced Ecommerce writes to the data layer.

3. Create event triggers
Add a trigger for each ecommerce event that you want to track, for example
add_to_cart, purchase, or view_item.

4. Create tags
Create a new tag for each event. Choose the tag template called Picked Ecommerce. Assign the trigger that matches. Then set the options below.

Options
| Option | Description |
|---|---|
| Project ID | The ID of your Picked project. Find it in the Picked Dashboard. |
| Event | The ecommerce event to track, for example add_to_cart or purchase. |
| Send ecommerce data | Turn this on to send the data from GA4 Enhanced Ecommerce to Picked. Turn it on for every ecommerce event. |
| GA4 Enhanced Ecommerce Data | The GTM variable that holds the data from GA4 Enhanced Ecommerce. Use the data layer variable from step 2. |
| Additional data | An optional GTM variable, for more metadata with the event. |
| User ID | An optional GTM variable that holds your own ID for the visitor, for example a customer ID. Picked uses it to find the same visitor on different devices and on your different sites. Picked sends it only with the event of this tag. |
| Hash the user ID | On by default. Picked sends sha256: and a SHA-256 hash of the project ID and the user ID, and not the user ID. Use the same setting on each site. |

Related
- About how Picked works — what Picked does with the event.
