Repository navigation
Add Guides > Tracking for NEXT Campaigns - #75
Conversation
New content/docs/campaigns/tracking/ (12 pages): overview, getting started, Triple Whale, Meta Pixel and Conversions API, TikTok, Google Ads and YouTube, GA4, GTM, more integrations, Shop Sync stores, events and attribution reference, testing and troubleshooting. Each platform page carries a verification status table from source review (SDK v0.4.43 and v0.5.0, starter templates 206780f, store app sources) and a test order walked on 2026-11-16. Consolidation: campaigns getting-started analytics section points to the new section and corrects the development-domain wording; pointers from the Campaigns API, marketing attribution, storefront event tracking, checkout links and external checkout pages; tracking pages added to the campaigns capability; CODEOWNERS for the tracking folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t, dev-domain scope Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
developer-docs | c38e256 | Commit Preview URL Branch Preview URL |
Nov 17 2026, 02:38 AM |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The five findings from the previous pass are fixed at Files Reviewed (5 files)
Previous Review Summaries (7 snapshots, latest commit 9843eab)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 9843eab)Status: 7 Issues Found | Recommendation: Address before merge The increment deletes Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (7 files)
Targeted re-checks of unchanged files carried four prior findings forward and confirmed the earlier Fix these issues in Kilo Cloud Previous review (commit bf00798)Status: 5 Issues Found | Recommendation: Address before merge The latest commit ( Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (6 files)
Only Fix these issues in Kilo Cloud Previous review (commit ce03576)Status: 5 Issues Found | Recommendation: Address before merge The incremental commits ( Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (14 files)
Note: no stale Fix these issues in Kilo Cloud Previous review (commit 0cabdb8)Status: 2 Issues Found | Recommendation: Address before merge The latest commit ( Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (3 files)
Previous review (commit bd2b759)Status: 2 Issues Found | Recommendation: Address before merge The latest commit ( Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (4 files)
Fix these issues in Kilo Cloud Previous review (commit 8ad9bc0)Status: 5 Issues Found | Recommendation: Address before merge The third commit rewrites most of the section. The previous findings on deleted pages ( Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (21 files)
Fix these issues in Kilo Cloud Previous review (commit 951ece6)Status: 11 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (22 files)
Reviewed by deepseek-v4.1-flash-1017 · Input: 41.4K · Output: 9.1K · Cached: 466.6K |
Rewrites the Tracking section in plain language for merchants and developers, and corrects it against the SDK (v0.4.43), starter templates, store app and Shop Sync source. - Remove per-claim verification tables, "Unconfirmed" framing and SDK 0.5.0 content; the section describes SDK 0.4.43. - Triple Whale: one Shop Sync setup (block funnel purchases, Contact on); add a section for stores without Shopify. - Everflow: new page covering redirect and direct links, the bridge, reporting from GTM, and more than one affiliate network. - AppLovin Axon: new page, with a server function that keeps Axon's cookie for a year. - Fold Google Ads into the GA4 page and TikTok into More integrations. - Replace the Events and attribution page with links to the SDK reference; point Shop Sync detail at the existing Shop Sync guides. - Fix source-contradicted claims (Everflow postback fields and repeats, purchase reporting, amounts and tax, Shop Sync orders). - Campaigns page: shorten the Analytics section and link to Tracking. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…pt-in wording - Everflow bridge: create the SDK ready queue if it does not exist yet, so the deferred write is not dropped. - Triple Whale, stores without Shopify: say to add only the one line. - TikTok, Snapchat, Pinterest: shopper details are held back only when a marketing opt-in checkbox exists and is unticked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The three numbered steps above it already say the same thing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
masmalsah
left a comment
There was a problem hiding this comment.
Reviewed against the SDK (v0.4.43), the starter templates, the store apps and Shop Sync. Rather than leave comments I pushed the changes to this branch (8ad9bc0, bd2b759, 0cabdb8). The description is updated with what changed and why.
In short:
- Rewritten in plain language, about half the length.
- Verification tables, "Unconfirmed" labels and SDK 0.5.0 content removed.
- Triple Whale on Shop Sync is one setup: funnel purchase blocked, Contact on.
- Everflow and AppLovin Axon have their own pages. Google Ads is folded into GA4 and TikTok into More integrations. The events reference links to the SDK docs.
- Claims the source contradicted are fixed, mostly on Everflow and on how purchases and amounts are reported.
Still not proven, and listed in the description: Triple Whale attribution on a Shop Sync store, Triple Whale on a store without Shopify, and the Axon cookie function on a production funnel.
Good to merge from my side.
Triple Whale attributes a sale only when it gets both the pixel purchase and a matching order record. NEXT sends no orders to Triple Whale's Orders API, so stores without Shopify get pixel events but no attributed sales. Mark that as not supported yet, point those stores to Shop Sync, and scope the overview and getting-started entries to Shopify stores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Storefront only Refer to the thing being tracked as a campaign, and to the product as Campaigns, keeping funnel only where it means a shopper's path. Replace the storefront-apps callout: apps set up under Apps in the dashboard add scripts to the Storefront only and are not added to Campaigns; the server-side Meta, Everflow and Klaviyo apps are the exceptions. Same note on the GA4, GTM, Axon, TikTok and Taboola sections. GA4 verify steps now connect Tag Assistant so DebugView shows events. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
||
| A starter template campaign is a static site, so this needs a small server function. On Netlify, add this one file. It runs on every page request, and when the shopper already has `_axwrt`, it adds `axwrt` to the response: | ||
|
|
||
| ```js title="netlify/edge-functions/axwrt.js" |
There was a problem hiding this comment.
@brettstirlingbond @masmalsah we shouldn't document using netlify edge functions, should be a standard page template. Netlify edge functions also cannot be tested locally.
There was a problem hiding this comment.
Removed in 9843eab. The Netlify function is gone, and Axon is back to a short entry on More integrations. It now only says AppLovin recommends setting the cookie from the server, links to their page, and notes the starter templates don't do this because they're static sites.
When you say it should be a standard page template, what do you mean?
| ## Campaigns & API Order Attribution | ||
|
|
||
| <Callout type="info" title="Setting up tracking on a campaign"> | ||
| This guide is for building an attribution app. To set up Triple Whale, Meta, TikTok, Google Ads or another platform on a NEXT campaign, see [Tracking](/docs/campaigns/tracking). |
There was a problem hiding this comment.
Should simplify and not list every tracking service...
There was a problem hiding this comment.
Done in 9843eab. It now reads "To set up ad tracking on a NEXT campaign, see Tracking". I shortened the same kind of list on the Campaigns page too.
- Remove the Netlify edge function from the Axon guide. Keep AppLovin's recommendation and link, and note that a static campaign needs a server to set the cookie. - With that gone Axon is a one-line setup again, so fold it back into More integrations and remove its page. - Pointers to Tracking no longer list individual platforms. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This adds a Tracking section under Guides in the Campaigns tab, so merchants and developers can set up and test ad tracking on a campaign funnel without asking the team. It covers Google Tag Manager, Google Analytics 4 (including Google Ads), Meta, Everflow, Triple Whale, AppLovin Axon and the smaller integrations, plus Shop Sync stores and testing.
The section describes starter template funnels on Campaign Cart SDK 0.4.43.
Pages
content/docs/campaigns/tracking/, 11 pages, listed under the Guides separator after Page Kit:Other files:
campaigns/index.mdx: the Analytics & Tracking section now links to Tracking instead of repeating the setup; domain location wording and the SDK analytics link corrected.campaigns/api/index.mdx,storefront/checkout-links.mdx,admin-api/guides/external-checkout.mdx.content/capabilities.yaml: tracking pages listed for the campaigns capability..github/CODEOWNERS: the tracking folder is owned by @masmalsah.What changed in the third commit (8ad9bc0)
The first two commits were a full draft. The third is a review pass against source and a rewrite for readability. In short:
Corrections against source in that pass:
ga4_allowed_eventsreplaces the default set;next.addUpsellfalls back to 0; the GTM container loads ongtm_idalone.How it was checked
main(206780f); Meta Pixel app, Everflow (in the platform repo), Klaviyo, Shop Sync and the Campaigns app read at their current default branches on 2026-11-16.npm run checkwas left to CI.Stated on the pages but not yet proven
Two details are left generic because they could not be confirmed: where the Axon event key is found in AppLovin's dashboard, and Everflow's exact macro for the redirect link.
Follow-ups outside this PR
campaigns/index.mdxhas other SDK links that point at/latest/, which is now the 0.5.0 documentation./docs/campaigns/analyticsredirects to the SDK's/latest/analytics page.🤖 Generated with Claude Code