A 1st-Party Attribution Suite for eCommerce
  • Introducing Fueled
  • How Fueled Works
    • Key Concepts
    • Use Cases
    • Is Fueled a CDP?
  • Apps
    • Shopify App
      • Shopify Event Tracking
        • Customizing Client-Side Shopify Events
        • Custom Pixel
          • Custom Pixel For Tracking ATC Events
          • Custom Pixel For Tracking Checkout Steps
        • Working with Fueled’s Shopify Data Layer
      • Google Analytics Connector
        • Configuring Google Analytics 4
        • Configuring GA4 Settings in Shopify
          • Shopify Order Source IDs
        • GA4 Shopify App Event Definitions
      • Google Ads Connector
      • Facebook Pixel/CAPI Connector
      • Segment Connector
      • Google Tag Manager Integration
      • Data Warehouse Connector
      • Domain Name Proxy
    • BigCommerce App
      • Google Analytics 4 Connector
        • Configuring Google Analytics 4 for BigCommerce
        • Configuring Fueled’s BigCommerce App
        • BigCommerce Event Tracking
          • Working with Fueled’s BigCommerce Data Layer
          • Customizing Client-Side BigCommerce Events
        • GA4 BigCommerce App Event Definitions
      • Google Ads Connector
      • Segment Connector
      • Data Warehouse Connector
  • Integrations
    • Sources
      • Shopify
      • BigCommerce
      • Headless eCommerce
        • Pack Digital
        • TakeShape
        • Next Commerce
      • Gorgias
        • Ticket Created
        • Ticket Updated
      • Loop Returns
      • Klaviyo
        • Email Opened
        • Email Bounced
        • Email Unsubscribed
        • Email Marked as Spam
        • Email Link Clicked
        • Newsletter Signup Started/Completed
      • KnoCommerce Surveys
      • ReCharge Payments
      • Yotpo Reviews
        • Identify
        • Product Reviewed/Review Updated
        • Site Reviewed/Review Updated
      • WordPress
    • Destinations
      • Google Analytics 4
      • Google Ads
      • Facebook Pixel/CAPI
      • Data Warehouses
      • Segment.com
        • Segment Event Specifications
          • Page
          • Identify
          • Account Created/Updated
          • Cart Viewed
          • Checkout Started
          • Order Completed
          • Product Added/Removed
          • Product List Viewed
          • Product Viewed
          • Products Searched
      • RudderStack
      • MixPanel and Amplitude
  • Resources
    • Recipes & Open Source
      • BigCommerce, dbt & BigQuery
      • Working With GA4 Data In BigQuery
        • Simple 'Page View to Purchase' Funnel Analysis
        • Querying Device Information for Shoppers with Purchases
        • Debugging User IDs in GA4 Events
      • Downgrading To Shopify's Free GA4 Connector
      • Demos
        • Configuration In Under 5 Minutes
    • News, Articles & Podcasts
      • Upgrading To A Paid Fueled Plan On Shopify
      • Feature Comparisons
  • More Info
    • About Us
    • Get Support
Powered by GitBook
On this page
  • The Problem
  • The Solution
  • Tracking add to cart events with Fueled with the Web Pixel API
  1. Apps
  2. Shopify App
  3. Shopify Event Tracking
  4. Custom Pixel

Custom Pixel For Tracking ATC Events

PreviousCustom PixelNextCustom Pixel For Tracking Checkout Steps

Last updated 3 months ago

The Problem

Fueled provides an out-of-the-box solution for tracking add to cart events on your Shopify store. This solution adds a javascript event listener on your store’s “Add to Cart” buttons.

For most merchants, this works quite well. We have tested this default solution against many different Shopify 2.0 themes, and it will correctly track add to cart events on most Product Description Pages and Product Collection Pages.

However, some Shopify themes have been customized in ways that make it more difficult for our default solution to capture all add to cart events. Examples of when our default solution might not capture all of these events include:

  • add to cart offers listed in side carts.

  • “Bundled” add to cart buttons that add multiple products to a shopping cart at the same time.

  • Custom add to cart buttons that don’t use Shopify’s standard product forms.

  • add to cart buttons that immediately redirect to the Cart page or Checkout.

The Solution

In late 2022, Shopify released its . This API provides an alternative solution for tracking attribution events. While the API has many benefits, it’s not a perfect solution for full attribution tracking — so we haven’t migrated Fueled over to the Web Pixel API completely.

That said, there are certain use cases, such as with add to cart events, where the Web Pixel API can be quite helpful.

Tracking add to cart events with Fueled with the Web Pixel API

Merchants can leverage the Web Pixel API for tracking add to cart events in two steps.

  1. By setting up a Custom Pixel in the Shopify Admin, which leverages this API.

  2. By disabling Fueled’s default add to cart tracking event.

Step 1: Setting up a Custom Pixel in the Shopify Admin UI

To set up a Custom pixel, go to:

https://admin.shopify.com/store/[your-store-name]/settings/customer_events

(The click-through path to this configuration screen is: Settings > Customer Events)

Create a new Pixel called Fueled Custom Pixel. Copy/paste the code you can find in our App settings:

Step 2: Disabling Fueled’s default add to cart tracking event

Once you have set up the Custom Pixel, you will want to go into the Fueled App for Shopify and disable our standard add to cart event tracking:

Set this value to “Deactivated”, so that it reads:

Standard “Add to Cart” tracking is currently deactivated.

Web Pixel API
Fueled Custom Pixel v2 Code.
If you are using Fueled's custom pixel for your add_to_cart events, be sure to deactivate our standard add_to_cart event.