b. Event's simplified explanation:
Event Tracking Overview
The GTM Assistant app enhances your store’s tracking capabilities by providing a set of 13 essential events. These events are designed to help you understand visitor interactions, optimize conversions, and improve the overall user experience. Below is a detailed explanation of each event and its integration with Google Analytics 4 (GA4).
Available Events
- 1.collection_viewed (view_item_list)
- Description: Tracks when a collection page is viewed.
- Benefit: Allows you to analyze how often different collections are accessed.
- 2.page_viewed
- Description: Monitors page views across your site.
- Benefit: Provides insights into overall site traffic and the performance of specific pages.
- 3.product_added_to_cart (add_to_cart)
- Description: Records when a product is added to the shopping cart.
- Benefit: Helps you understand shopping behavior and product popularity.
- 4.cart_viewed (view_cart)
- Description: Captures when the shopping cart page is viewed.
- Benefit: Indicates interest in completing the purchase process.
- 5.product_viewed (view_item)
- Description: Tracks when a specific product page is viewed.
- Benefit: Assists in gauging product interest and user engagement.
- 6.product_removed_from_cart (remove_from_cart)
- Description: Monitors when a product is removed from the cart.
- Benefit: Helps identify potential issues or barriers to purchase.
- 7.search_submitted
- Description: Records when a search query is submitted on your site.
- Benefit: Provides insights into user search behavior and content demand.
- 8.checkout_started (begin_checkout)
- Description: Tracks when a user starts the checkout process.
- Benefit: Key for understanding the initiation of purchase intent.
- 9.checkout_address_info_submitted
- Description: Captures when address information is submitted during checkout.
- Benefit: Helps you understand the completion of crucial checkout steps.
- 10.checkout_contact_info_submitted
- Description: Records when contact information is provided during checkout.
- Benefit: Useful for tracking user engagement and form completion.
- 11.checkout_shipping_info_submitted
- Description: Monitors when shipping information is submitted.
- Benefit: Provides insights into shipping preferences and user progression through checkout.
- 12.payment_info_submitted
- Description: Tracks when payment details are entered.
- Benefit: Critical for understanding the final stages of the checkout process.
- 13.checkout_completed (purchase)
- Description: Captures when a purchase is completed.
- Benefit: Essential for tracking successful transactions and calculating conversion rates.
Custom Pixel Script Integration
To track specific events such as checkout_address_info_submitted, checkout_contact_info_submitted, checkout_shipping_info_submitted, and payment_info_submitted, you can use the following custom pixel script in your GTM configuration:
- Steps to Implement:
- Create a Custom Pixel: First, create a custom pixel in Shopify.
- Add the Script to the Pixel: After creating the custom pixel, add the following script to the pixel configuration:
-
window.initContext = init;
const script = document.createElement("script");
const dm = "https://gtm-app.webgarh.net";
script.src = dm+"/gtm-script?container=[YOUR GTM TAG ID]";
script.crossOrigin = "anonymous";
script.onload = () => {console.log("Success")};
script.onerror = r => {console.error("Error:", r)};
document.head.appendChild(script);
- Activate the Pixel: Ensure the pixel is activated to start tracking the desired events.