- Product Types
- Adding Products
- One Time Pricing
- Subscription Pricing
- Subscription Trials Setup
- Installment Pricing
- Donation / Pay What You Want
- Inventory Management
- Product Variants
- Variant Images
- Digital Downloads
- Change Product Availability
- Hide Product from Shop Page
- Template Customization
- Product Collections
- First-Time Payment Discounts
- Manage Product Access
- Payment Types
- Free Trials & Setup Fees
- Create Product With Free Trials
- Charge Set Up Fee on Trials
- Product List
- Product Pages
- Create Product Page in Elementor
- Custom Buy Links
- Product SEO
- Change Permalinks
- Custom Fields
- Adding Products
- Test Mode
- Make Test Payments
- Edit & Customize Form
- Change Form Template
- Delete SureCart Forms
- Custom Checkout Form
- Add New Checkout Form
- Checkout Form With Gutenberg
- Checkout Form in Elementor
- Custom Thank You Page
- Create Donation Form
- Customize Confirmation Popup
- Include Coupons in URLs
- Pre-Fill Checkout Fields
- Change Checkout Texts
- Password Field in Checkout
- Default Country Code
- Add Terms to Checkout
- Conditional Block Checkouts
- Remove Coupon Field
- Hide Quantity Option
- Disable Quantity Editing
- Disable Item Removal
- Country Specific Purchases
- Fix View Order Button
- Fix Express Payment Buttons
- Fix PayPal Test Connection
- Fix PayPal Test Connection
- Fix Sign-In Loop
- Fix Order Confirmation Redirect
- Fix Divi Bullet Point Issue
- Fix Customer Dashboard
- Fix JSON Response Error
- Failed Payment Behavior
- Fix Stripe Zip Code Error
- Fix "Product Can’t Be Blank"
- Troubleshooting Guide
- PayPal IPN Warning Emails
- Caching Configuration for SureCart
- Why iDEAL Might Not Appear in Your CheckoutÂ
How to Track Custom Events with Google Tag Manager
In this article, we’ll guide you through the process of sending tracking events from your SureCart store to Google Analytics using Google Tag Manager (GTM).
To connect SureCart with Google Analytics, you can use the Google Site Kit plugin on your WordPress site.
It’s an easy way to see the analytics directly within the WordPress admin area to get your SureCart store connected with Google Analytics and Google Tag Manager.
After you’ve installed the Google Site Kit plugin, you can activate it on your SureCart site by simply following the instructions on your screen.
After you have installed and activated the Google Site Kit plugin, you will be able to see the analytics data related to Add to Cart and Purchase Event.
But if you want to track additional events like remove from cart, checkout completed, checkout initiated and more, you have to send custom events to Google Tag Manager,
In this article, we’ll help you understand how you can send custom events to Google Tag Manager from your SureCart store.
Why Connect SureCart with Facebook Pixel & Google Analytics?
Connecting SureCart with Facebook Pixel (FB Pixel) and Google Analytics (GA) is a great way to track your e-commerce sales and marketing performance. Both tools offer powerful features that can help you understand your customers better and make better business decisions.
With Facebook Pixel, you can track website visitors and their interactions with your Facebook ads. For example, you can see how many people clicked on your ad and added products to their cart, but didn’t make a purchase.
You can use this information to create more targeted ads, measure the effectiveness of your campaigns, and optimize your ads.
Whereas, Google Analytics provides insights into your website traffic, visitors’ locations, purchase behaviors (if you’re running Google Ads), etc. You can use this information to improve your website’s performance, identify new marketing opportunities, and optimize your overall business strategy.
Events That Can Be Tracked
SureCart automatically broadcasts the “Add To Cart” and “Purchase” events for Google Analytics. This means that if you want to track these events, you just need to install the Google Site Kit plugin on your WordPress. No additional configuration is needed.
If you want to track additional events like “Add Payment Info” to gain more insights, you can use custom code to do that, and we’ll explain how.
Here’s a list of additional events you can broadcast through a custom code:
Event | Event Name | Description |
scAddedToCart | Added to Cart | Triggered when a customer adds an item to their shopping cart. |
scRemovedFromCart | Removed from Cart | Triggered when a customer removes an item from their shopping cart. |
scViewedCart | Viewed Cart | Triggered when a customer views their shopping cart. |
scProductViewed | Product Viewed | Triggered when a customer views a product page. |
scCheckoutInitiated | Checkout Initiated | Triggered when a customer begins the checkout process. |
scCheckoutCompleted | Checkout Completed | Triggered when a customer successfully completes the checkout process and finalizes their purchase. |
scShippingInfoAdded | Shipping Info Added | Triggered when a customer adds or updates their shipping information during checkout. |
scPaymentInfoAdded | Payment Info Added | Triggered when a customer adds or updates their payment information during checkout. |
scTrialStarted | Trial Started | Triggered when a customer starts a free trial for a subscription-based product. |
scSubscriptionStarted | Subscription Started | Triggered when a customer starts a paid subscription for a product. |
How to Connect SureCart Store to Google Analytics
If you did not connect your Google Analytics account with the Google Site Kit plugin upon installation, then you can follow the steps below.
- In the Site Kit setup wizard, you’ll have an option to connect to Google Analytics. Click on the Connect Service button for Google Analytics.
- Follow the prompts to grant permission to access your Google Analytics account.
- Choose the Google Analytics property (website) you want to link to your WordPress site.
- Click Configure Analytics to finish the setup. Google Site Kit will now integrate with Google Analytics.
How to Connect SureCart Store to Google Tag Manager
Once Google Analytics is connected to your Google Site plugin, go back to the Site Kit dashboard by clicking on Dashboard in the left-hand menu under Site Kit.
- From the Settings, Navigate to Connect More Services.
- Locate Tag Manager in the list of services and click on it.
- Follow the prompts to grant permission to access your Google Tag Manager account.
- Select the Google Tag Manager container you want to use with your WordPress site.
- Click Configure Tag Manager to finish the setup.
After completing these steps, you should see a dashboard within Google Site Kit that displays information about your website’s performance, including data from Google Analytics and Google Tag Manager.
You’ve now successfully added Google Site Kit to your WordPress website and connected it to Google Tag Manager as well.
From here, you will need to “forward” any events from Google Tag Manager to GA4. To do this add a new “Tag” to your workspace:
Then select your existing Google Analytics GA4 Pageview configuration tag, then {{Event}}
for the Event name:
We don't respond to the article feedback, we use it to improve our support content.