Skip to main content

Ad Tracking - Meta (Claude Prompt)

Prompt for Merchant's to run in claude specifically for checking Meta over-attribution

ENTER THE BELOW PROMPT INTO CLAUDE:
​
I use Lasso for my external checkout and I think my ad tracking is misreporting. Audit my pixel setup end to end and tell me what's actually firing.
​
My store: https://[YOUR-STORE].com
The Meta Pixel ID I entered in Lasso: [PIXEL ID, if you know it]
​
Use your browser to do this yourself — don't rely on Meta Pixel Helper, and don't
ask me to read anything off my screen. Run JavaScript in the page to gather real
evidence at each step.
​
STEP 1 — Storefront inventory
Open my homepage. Then:
- List every Meta pixel initialised on the page. Use fbq.getState().pixels to get
the IDs. Cross-check against the connect.facebook.net/signals/config/<id> script
tags in case any load without registering.
- List every other tracker present: TikTok (ttq), Snapchat (snaptr), Triple Whale
(TriplePixel), Whop (t.whop.tw), Google Ads / GTM, Klaviyo, and anything else
sending analytics.
​
STEP 2 — Who fires what on the storefront
- Record each pixel's eventCount from fbq.getState() right after page load.
- Navigate to a product page and record the counts again.
- Click Add to Cart, wait a few seconds, and record them a third time.
- Report the deltas per pixel. A pixel that gains more than one event per action is
double-firing — that's a real duplication bug. Same count across many pixels just
means one script feeding several datasets, which is noisy but not duplication.
​
STEP 3 — Hidden Meta sources in Shopify web pixels
Shopify custom web pixels run in sandboxed iframes you cannot read into, but their
sandbox URLs are same-origin. For each iframe whose src contains "web-pixels",
fetch() that URL, read the returned HTML, and tell me whether it touches Meta
(fbq / facebook / any 15-16 digit pixel ID). Say what each one actually does.
​
STEP 4 — What Lasso itself sends
Fetch https://checkout.[MY-DOMAIN].com/shopify-scripts/lasso-script-v4.min.js and
search it for: fbq, facebook, PageView, ViewContent, AddToCart, InitiateCheckout,
Purchase, ttq, snaptr. Report the hit count for each. This settles which storefront
events are Lasso's and which are my own theme's.
​
STEP 5 — The checkout page
Lasso's Meta integration only fires Initiate Checkout and Purchase, and both fire on
my Lasso checkout page — NOT on my storefront. So proceed to checkout from the cart
and, on the checkout page, report which Meta pixels are initialised there and which
events fire, with the pixel ID each one goes to.
​
STOP at the checkout page. Do not enter payment details and do not place an order.
Warn me before you start this step that it will create one abandoned checkout and one
Initiate Checkout event in my pixel data.
​
REPORT BACK
1. A table: every event (PageView, ViewContent, AddToCart, InitiateCheckout,
Purchase) x which source fires it x which pixel IDs receive it.
2. Which events are Lasso's and which are mine — stated plainly.
3. Any event firing more than once into the same pixel, and which source is the
duplicate.
4. Whether the pixel ID I gave you is among the ones on my site. If it isn't, that
alone explains missing events.
5. What I should change, in priority order, and what I should stop worrying about.
​
Also tell me: for any purchase-side duplication you suspect but can't see from the
browser (server-side CAPI from tools like Triple Whale), tell me exactly where in
Meta Events Manager to check the Browser vs Server split, rather than guessing.

Did this answer your question?