All Collections
Integrations
Shopify
Additional Shopify Setup Resources
Setting Up Add To Cart & Initiate Checkout Events For Your Shopify Store
Setting Up Add To Cart & Initiate Checkout Events For Your Shopify Store

Learn how to setup the Add To Cart and Initiate Checkout (ATC & IC) events for your Shopify store.

Updated over a week ago

Start Here ๐Ÿ‘‹

This article will show you step-by-step how to setup tracking for the Add To Cart and Initiate Checkout events in your Shopify store.

Important: If you already have the Cometly base code pixel installed on your Shopify store in the theme.liquid, you will need to remove the base code as you will be installing it on Google Tag Manager in the steps below.

How to setup a new Google Tag Manager web container

Google Tag Manager is a tag management system (TMS) that allows you to quickly and easily update measurement codes and related code fragments collectively known as tags on your website.

How to install Google Tag Manager in your Shopify store

Please watch the video below for how to successfully install Google Tag Manager codes into your Shopify store in the theme.liquid.

Important: You cannot have the Cometly base code on your store twice or it will impact tracking. When the base code is added in GTM, it's adding the code to your site. You need to remove the Cometly base code from the theme.liquid if previously installed there.

Setup Cometly base code tag inside Google Tag Manager

Please watch the video below that will show you how to setup the Cometly base code pixel as a tag in your web container.

Setup Add To Cart & Initiate Checkout Events

Setup tracking for the Add To Cart and Initiate Checkout events for your Shopify store.

Video Instruction Steps:

  1. Add tag: Cometly base code

  2. Configure Built-In Variables

  3. Create All Clicks trigger

  4. Test & preview in GTM to see the available Click Text & Click Classes for each Click

  5. Add tag: Cometly - Add To Cart

  6. Add tag: Cometly - Initiate Checkout

  7. Add tag: Cometly - View Content

Events

Add To Cart

<script>
comet('add_to_cart');
</script>

Initiate Checkout

<script>
comet('initiate_checkout');
</script>

View Content

<script>
comet('view_content');
</script>

Pre-Purchase Upsell Apps: How to setup the Add To Cart trigger

Did this answer your question?