# Acme Store: tracking stack (fictional example of martech-context/stack.md)

This is the file the worked example reads. It shows the fields the audit needs; a real one holds no secrets. [example-acme-config.json](example-acme-config.json) is built from it.

## Sites and hostnames

- www.example.com: marketing site and product pages
- shop.example.com: cart and checkout
- pay.example.com: hosted payment page; returns to shop.example.com/thank-you
- Purchases complete on two hosts: the `purchase` dataLayer event fires on www.example.com (quick buy) and on shop.example.com after the payment return. Nothing fires on pay.example.com.

## Google Tag Manager

- Web container: "Acme Store - web", GTM-XXXXXXX, loaded with gtm.js on every page of the three hosts
- Owner: web analytics lead. Publish permission: web analytics lead and one deputy.
- Server container: https://sgtm.example.com (first-party subdomain), owner: data engineering
- The server container sends Meta Conversions API events for Purchase and Lead, using the data layer `event_id` as the event ID.

## Expected destination IDs

- GA4: G-XXXXXXXXXX (one property, one web stream)
- Google Ads: AW-123456789 (customer 123-456-7890), conversion actions Purchase and Lead
- Meta pixel: 1234567890123456

## Retired IDs

- Google Ads 987654321: previous agency account, retired 2026-03-01. Nothing should send to it.
- Universal Analytics UA-XXXXXXX-1: retired with UA.
- Hotjar site 1234567: contract ended 2026-06-30.

## GA4 property

- Key events (exact case): purchase, generate_lead
- Data filters: Developer traffic filter Active; Internal traffic filter Testing
- Enhanced measurement on the web stream: page changes based on browser history events on; form interactions off
- Data redaction on the web stream: email redaction on; no query parameters listed yet (open question: the order confirmation URL carries an order token)

## Consent

- CMP: a gallery CMP template is the plan; today the default is set in Custom HTML.
- Decision (see decisions.md, 2026-02-10): advanced consent mode for Google tags in every region; non-Google advertising tags require ad_storage, ad_user_data and ad_personalization.
- Default by region: EEA, UK and Switzerland all four signals denied; elsewhere not yet decided (open question for the privacy owner).

## Tracking plan pointers

- Conversions: purchase (www and shop hosts), generate_lead (contact form, after the server accepts it)
- Data layer events: purchase, purchase_failed, add_payment_info, begin_checkout, generate_lead, cookie_consent_update
- Must not fire: on consent changes, on page reloads of /thank-you, on rejected form submissions, on purchase_failed

## Naming rules (from naming-rules.md)

- Tags: `<Tool> - <Type> - <Detail>`, for example "Ads - Conversion - Purchase"
- Triggers: `<CE|PV|Click|Form|Timer|Exception> - <detail>`
- Variables: `<Const|DLV|JS|Cookie|LT> - <detail>`
