# Luxe events in GA4 and Meta

> Analytics events publish Luxe's shopper moments to Shopify's customer events, where GA4, Meta and any other pixel connected through Shopify can use them: a set completed, a set added to the bag, a reward gift chosen, an upsell added and a purchase option changed. Shopify's own add to cart sees a set only as a product or loose items; these events name the set, its type and its contents.

Source: https://www.luxesets.com/help/analytics-events

## Turn them on

In **Settings > Data and integrations > Analytics events**, turn on **Publish Luxe events to Shopify customer events** and save. The events are off by default and included on every Luxe plan.

Luxe's own **Analytics** is not affected: it keeps counting with your visitors' analytics consent, as before.

## The events

Every event's data (`customData`) starts with `v` (1) and `surface`, where it happened: `kit_block`, `tray`, `drawer`, `product` and others. Money is Luxe's predicted price in the shopper's currency, marked `predicted: true`; Shopify's checkout decides the final price. Ids are Shopify's numeric ids as text.

| Event                          | When                                                                                                      | Data                                                                                                                                                                                                                                                                    |
| ------------------------------ | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `luxe_set_built`               | Every slot of a bundle set is filled, or a Collection set reaches its minimum. Once per set per page view | `set_id`, `set_name`, `set_type` (`build_your_own`, `collection`, `fixed`), `items` (`[{variant_id, quantity}]`), `value`, `currency`, `predicted`                                                                                                                      |
| `luxe_set_added`               | A bundle set is added to the bag, or an edited set goes back in it (`edited: true`)                       | As above, plus `purchase_option` (`one_time` or `subscription`)                                                                                                                                                                                                         |
| `luxe_gift_chosen`             | A shopper chooses a reward gift                                                                           | `ladder_id`, `rung_id`, `rung_label`, `variant_id`                                                                                                                                                                                                                      |
| `luxe_upsell_added`            | Products are added from an upsell or the checkout offer                                                   | `offer_id`, `offer_type` (`frequently_bought_together`, `pairs_well`, `quantity_breaks`, `make_it_a_set`, `refill`, `tier_gap`, `gift_addon`, `upgrade`, `drawer`, `checkout_offer`), `placement`, `items`, and `value` and `currency` (your store currency) when known |
| `luxe_purchase_option_changed` | A shopper switches a set between one-time and a subscription plan, or between plans                       | `set_id`, `from` and `to` (`one_time` or `subscription`), `selling_plan_id`                                                                                                                                                                                             |

No customer data is ever in an event: no name, email, customer id, cart token or Luxe fee. Anyone can publish a custom event from a browser console, so treat these as analytics, never as proof of a purchase.

## Consent

1. Your cookie banner records each visitor's choice in Shopify's customer privacy: analytics, marketing, preferences and sale of data. Shopify's own banner does, and so do Pandectes, Consentmo, Cookiebot and OneTrust when they are connected through their Shopify app.
2. Each pixel says what it needs. In Shopify's **Settings > Customer events**, a custom pixel set to **Permission: Required** with Analytics or Marketing receives events only from visitors who allowed it.
3. Luxe events follow the same rules as Shopify's own events, whichever banner you use. Luxe does not ask for consent itself: Shopify applies it per pixel.

**Using Cookiebot or OneTrust?** Install the vendor's Shopify app (Cookiebot CMP, or OneTrust with Consent Mapping of its categories to Shopify's purposes). A banner pasted into your theme does not tell Shopify the visitor's choice, so your pixels would not see it. The **Consent** panel in Luxe names the consent app it finds in your live theme.

## GA4, through Google Tag Manager

Shopify's Google & YouTube app sends Shopify's standard events (`add_to_cart`, `purchase`) and does not forward custom events. Keep it for purchases, and add Luxe's events with a custom pixel that loads your Tag Manager container:

1. In Luxe, under **Recipes**, select **Copy custom pixel code** next to **GA4 through Google Tag Manager**.
2. In Shopify, go to **Settings > Customer events > Add custom pixel**, name it "Luxe to GA4", paste the code and replace `GTM-XXXXXXX` with your container id.
3. Set **Customer privacy > Permission** to **Required**, with **Analytics**. Save and **Connect**.
4. In Tag Manager, create a **Custom Event** trigger matching `^luxe_` (regular expression), and a **GA4 Event** tag with `{{Event}}` as the event name and the `luxe_*` values as event parameters. Publish the container.
5. In GA4, register `luxe_set_name`, `luxe_set_type` and `luxe_offer_id` as event-scoped custom dimensions.

Luxe's events are not mapped to GA4's `add_to_cart`: Shopify's Google app already sends it for the same change, and GA4 would count it twice. They stay custom events, so funnels and explorations by set name work; GA4's item reports do not list set contents. Check them in GA4 **DebugView** and Tag Manager's **Preview**.

## Meta

Shopify's Facebook & Instagram channel sends Meta's standard events (`AddToCart`, `Purchase`). Luxe's events go to the same pixel as **custom** events, so no purchase is counted twice:

1. In Luxe, under **Recipes**, select **Copy custom pixel code** next to **Meta**.
2. In Shopify, go to **Settings > Customer events > Add custom pixel**, name it "Luxe to Meta", paste the code and replace `PIXEL_ID` with your pixel id, the one your Facebook & Instagram channel uses.
3. Set **Customer privacy > Permission** to **Required**, with **Marketing** (and Analytics if your policy asks for it). Save and **Connect**.
4. In Events Manager, **Test events** shows `LuxeSetAdded` and the others. Build custom conversions or audiences from them, such as "LuxeSetAdded in the last 14 days, no Purchase".

The pixel sends no page view of its own, so it does not duplicate the channel's.

If your browser keeps Luxe from copying, the code opens in a window instead: select all of it, copy it and paste it into the new custom pixel.

## Other tools

TikTok, Pinterest, Elevar, Triple Whale and other tools take Luxe's events the same way: a custom pixel subscribes to the `luxe_*` names above and calls the tool's own method. For Klaviyo, Luxe sends its own set, reward and upsell events: see [Luxe and Klaviyo](https://www.luxesets.com/help/klaviyo).

## Frequently asked questions

### Why does nothing arrive in GA4 or Meta?

Check the switch is on and saved, the Luxe app embed is on in your live theme, and the pixel is Connected in Shopify's Customer events. In a consent region, accept the banner first: a pixel that requires consent receives nothing from a visitor who has not given it.

### Do analytics events slow my store?

No. Luxe loads the events' small script after the page has loaded, and only while the switch is on.

### Do headless and Tapcart stores publish these events?

No. Headless and Tapcart stores do not publish Luxe's customer events; Luxe's DOM events, such as luxe:kit:added, stay available to your own scripts.
