Set Up Add To Cart Tag

How to set up the tag and trigger for the add to cart enhanced ecommerce event. Download the add to cart tag and trigger, or download all the enhanced ecommerce tags and triggers.

How to import tags and triggers. If you would prefer to create the tag and trigger yourself follow the steps shown below.

Step one is to create the tag.

Add the Measurement ID to the tag.

You can add your Measurement ID directly to the tag however, the best practice is to create a Constant Variable.

The Measurement ID can be found in the admin section of the GA4 platform.

Enter the Event Name as add_to_cart.

In the More Settings section select the “Send Ecommerce data” check box.

Then select the Data Layer as the Data Source.

Event Parameters and User Properties can be used to include extra data in the tag.

Step two is to create the trigger.

Click the trigger area in order to view the available trigger types and to create the trigger for the tag.

Select the Custom Event trigger type.

Enter the Event Name as add_to_cart.

.

Google Tag Manager Solutions

Enhanced Ecommerce Data Layer

Recommended Events Data Layer