# Customizing Client-Side Shopify Events

## When to Customize Client-Side Tracking for Fueled’s GA4 Connector App

By default, Fueled’s GA4 Connector App for Shopify tracks ten different types of customer events. An out-of-the-box installation of our app on a standard Shopify theme, one that uses Shopify’s core theme components, should cover the vast majority of your attribution use cases.

That said, if any of the following are true for your storefront, it might make sense to extend your attribution tracking with Fueled to cover your specific use cases:

* You are leveraging a third-party shopping cart app, or you have “upsells” and “product recommendation” widgets on your cart and checkout pages.
* You have highly-customized product collections pages that allow shoppers to interact with product variants without first going to the product description pages.
* You offer product bundles or other custom “add to cart” experiences on your product pages.

You might also consider *adding additional client-side event tracking*, following Google Analytics 4’s event specification, describe here:

{% embed url="<https://developers.google.com/analytics/devguides/collection/ga4/reference/events>" %}

## Turning Off Fueled’s Default Client-Side Events

Generally speaking, you are likely to add additional custom events to your client-side attribution setup, rather than turning off Fueled’s events. That said, if you want to fully customize your client-side tracking with Fueled, you can turn off our events, and simply use our data layer and client-side library.

<figure><img src="/files/FPRovhqZnlVCZ0begwSP" alt="" width="375"><figcaption><p>Fueled's "App Extension Widget" configuration options.</p></figcaption></figure>

## Respecting Customer’s Privacy Preferences

Fueled’s GA4 Connector App for Shopify includes a setting for respecting shopper’s privacy preferences. This setting applies to all of the client-side events that we track.

If you’re setting up your own custom events with Fueled’s client-side library, you will need to follow these best practices on your own, leveraging Shopify’s Customer Privacy API.

{% embed url="<https://shopify.dev/api/consent-tracking>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.fueled.io/apps/shopify/shopify-event-tracking/customizing-client-side-shopify-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
