Repository navigation
Campaign Cart SDK 0.5.1 updates - #77
next-devin wants to merge 3 commits into
Conversation
… setMetadata, sdk_version example
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review at Files Reviewed (5 files)
Previous Review Summaries (2 snapshots, latest commit 4128e60)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 4128e60)Status: No Issues Found | Recommendation: Merge Incremental review at Note: the external Files Reviewed (5 files)
Previous review (commit e7c845d)Status: 2 Issues Found | Recommendation: Address before merge Overview
Note: the external `cart-sdk.nextcommerce.com` URLs could not be fetched from this sandbox, so their validity was not independently verified. Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (5 files)
Reviewed by deepseek-v4.1-flash-1017 · Input: 30.8K · Output: 5K · Cached: 399.1K |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
developer-docs | b6ef66a | Commit Preview URL Branch Preview URL |
Nov 26 2026, 08:46 PM |
masmalsah
left a comment
There was a problem hiding this comment.
Checked each claim against the SDK at v0.5.1. The content is accurate. Holding this until the starter templates move, for the reason at the end.
Checked and correct
- The Meta 0.5.1 event list matches the SDK's Meta event map:
PageView,ViewContent,AddToCart(first add only),InitiateCheckout,Lead,AddPaymentInfo,Purchase. NoRemoveFromCart,AddShippingInfo,ViewedUpsellorSkippedUpsell. Purchaseon the checkout page when the order is paid there: seen in a test order on 0.5.1.next.actions.setMetadataexists from 0.5.1, so the "SDK 0.5.1 and later" label on both snippets is right.- The "What's new in 0.5.1" link resolves.
One change needed
page-kit.mdx: the sdk_version example should be 0.4.43, not 0.5.1. The starter templates pin 0.4.43, the line below the example says to copy the version from the starter template registry, and the tracking pages say the templates use 0.4.43. main currently says 0.5.0, which also needs to go.
Why hold
The starter template bump is on hold (NextCommerceCo/campaign-cart-starter-templates#260) until two SDK questions are answered: NextCommerceCo/campaign-cart#172 (one dl_upsell_purchase per upsell line) and NextCommerceCo/campaign-cart#171 (the built-in GA4 destination). Both will change what these pages need to say:
google-tag-manager.mdxdescribesdl_upsell_purchaseas one event per accepted upsell.more-integrations.mdxsays an order with two upsells shows as three purchases.google-analytics-4.mdxdoes not mention the SDK's own GA4 destination.
Better to update the campaign docs for 0.5.x once, when the templates move, than in two passes. The sdk_version fix can go in on its own now if you want to split it out.
|
Changed the 🤖 Addressed by Claude Code |
|
Correction: NextCommerceCo/campaign-cart#172 was wrong and is closed. 0.4.43 also sends one |
Campaign Cart SDK 0.5.1 is out. These changes bring the campaign docs in line with it. Each claim was checked against the SDK's v0.5.1 release.
Campaigns overview and sidebar: added a link to What's new in 0.5.1.
Page kit: the
sdk_versionexample is now0.5.1.Tracking > Everflow: the direct-link bridge calls
next.actions.setMetadata(SDK 0.5.1 and later) and falls back tonext.setMetadata(SDK 0.4.x).Tracking > Meta: added a 0.5.1 note listing the events the pixel gets on 0.5.1:
RemoveFromCart,AddShippingInfo,ViewedUpsellorSkippedUpsell;AddToCartfor the first add only;Lead;Purchaseonce per order, on the checkout page when the order is paid there.The note also covers removing
fbq('track', 'PageView')from the pixel base code.Left as is: the starter templates still pin 0.4.43, so the existing 0.4.x tables and
blockedEventssteps stay. 0.5.1 readsblockedEventsagain.Checks:
npm run generate,validate-links,check-markupandcheck-frontmatterpass.