diff --git a/README.md b/README.md index 8ace152..f9b908b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ npm install npm run dev npm test npm run build +npm run start ``` ## Add A New Car @@ -40,13 +41,41 @@ Sold cars are hidden by default. To show a sold section on the homepage, set `sh ## Meta Pixel -Set `META_PIXEL_ID` in your Vercel environment variables. Leave it empty locally if the pixel should not load. +Set `PUBLIC_META_PIXEL_ID` in Coolify or Vercel environment variables. `META_PIXEL_ID` is also supported for build-time compatibility. Leave both empty locally if the pixel should not load. -Phone and WhatsApp buttons fire a `Contact` event when the pixel is configured. `src/pages/api/meta-capi.ts` is only a static stub for a future server-side Conversions API function. +Tracking setup: + +1. `PageView` fires on every route with a unique `eventID` and page context. +2. Phone and WhatsApp buttons fire `Contact` with `content_name`, `content_ids`, `contact_channel`, `currency`, and `value` when listing data is available. +3. The sell-car form fires `Lead` on submit when a form endpoint is configured. +4. Events also push to `window.dataLayer` for future Google Tag Manager or debugging. +5. A `