Skip to content

Campaign Cart SDK 0.5.1 and 0.5.2 updates - #77

Open
next-devin wants to merge 5 commits into
mainfrom
sdk-0-5-1
Open

next-devin wants to merge 5 commits into
mainfrom
sdk-0-5-1

Conversation

@next-devin

@next-devin next-devin commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Campaign Cart SDK 0.5.2 is out and the starter templates now load it. These changes bring the campaign docs in line. Each claim was checked against the SDK's v0.5.1 and v0.5.2 releases.

  • Campaigns overview and sidebar: links to What's new in 0.5.2 and What's new in 0.5.1.

  • Page kit: the sdk_version example is 0.5.2, matching the starter templates.

  • Tracking overview: the starter templates load SDK 0.5.2, with links to its analytics, destinations, events and JavaScript API pages. The 0.4.43 reference table stays for campaigns still on 0.4.x.

  • Tracking > Everflow: the direct-link bridge calls next.actions.setMetadata (SDK 0.5.1 and later) and falls back to next.setMetadata (SDK 0.4.x).

  • Tracking > Meta: a note for SDK 0.5.1 and later (0.5.2 sends the same Meta events as 0.5.1) listing the events the pixel gets:

    • no RemoveFromCart, AddShippingInfo, ViewedUpsell or SkippedUpsell;
    • AddToCart for the first add only;
    • a new Lead;
    • Purchase once 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, and the test-code snippet uses next.actions.setMetadata on 0.5.1 and later.

Left as is: the blockedEvents: ['dl_purchase'] steps in the Meta and Shop Sync guides. SDK 0.5.1 and 0.5.2 still read analytics.providers.facebook.blockedEvents with dl_* names. The other tracking guides (GTM, attribution, debugger links) still describe SDK 0.4.43 and need their own pass for 0.5.

Checks: npm run validate-links, check-markup and check-frontmatter pass.

@kilo-code-bot

kilo-code-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Incremental review at d0f48bc covers the 0.5.2 pass: the new "What's new in 0.5.2" links in content/docs/campaigns/index.mdx and content/docs/campaigns/meta.json, the sdk_version example in content/docs/campaigns/page-kit.mdx set to 0.5.2, the rewritten developer paragraph in content/docs/campaigns/tracking/index.mdx, and the "0.5.1 and later" qualifiers in content/docs/campaigns/tracking/meta.mdx.

The earlier Meta findings were re-checked at their current lines (101, 103-104, 121, 196) and remain addressed. Version claims are internally consistent: the starter templates are described as loading 0.5.2 everywhere this PR touches, and the 0.4.43 reference pages stay scoped to campaigns still on 0.4.x. everflow.mdx is unchanged since the previous review and was re-checked without new findings.

Note: the external cart-sdk.nextcommerce.com URLs could not be fetched from this sandbox, so their validity was not independently verified. validate-links only checks internal links.

Files Reviewed (6 files)
  • content/docs/campaigns/index.mdx - 0 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/page-kit.mdx - 0 issues
  • content/docs/campaigns/tracking/everflow.mdx - 0 issues (targeted re-check, unchanged)
  • content/docs/campaigns/tracking/index.mdx - 0 issues
  • content/docs/campaigns/tracking/meta.mdx - 0 issues
Previous Review Summaries (3 snapshots, latest commit b6ef66a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit b6ef66a)

Status: No Issues Found | Recommendation: Merge

Incremental review at b6ef66a covers the single changed line in content/docs/campaigns/page-kit.mdx (line 369): the sdk_version example is now 0.4.43. That matches the surrounding guidance on line 374 (copy the version from the starter template registry you match) and the 0.4.43 template pin documented in content/docs/campaigns/tracking/index.mdx. The earlier Meta tracking comments on meta.mdx lines 103-104 were re-checked against current code (lines 101, 121, 196) and are addressed; nothing is carried forward.

Files Reviewed (5 files)
  • content/docs/campaigns/index.mdx - 0 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/page-kit.mdx - 0 issues (incremental: line 369)
  • content/docs/campaigns/tracking/everflow.mdx - 0 issues
  • content/docs/campaigns/tracking/meta.mdx - 0 issues (targeted re-check of previous findings)

Previous review (commit 4128e60)

Status: No Issues Found | Recommendation: Merge

Incremental review at 4128e60 covered the 3 changed hunks in content/docs/campaigns/tracking/meta.mdx; the other four files were unchanged since the previous review and kept no open findings.

Note: the external cart-sdk.nextcommerce.com URLs could not be fetched from this sandbox, so SDK 0.5.1 claims were not independently verified.

Files Reviewed (5 files)
  • content/docs/campaigns/index.mdx - 0 issues
  • content/docs/campaigns/meta.json - 0 issues
  • content/docs/campaigns/page-kit.mdx - 0 issues
  • content/docs/campaigns/tracking/everflow.mdx - 0 issues
  • content/docs/campaigns/tracking/meta.mdx - 0 issues (incremental: lines 101, 121, 196-197)

Previous review (commit e7c845d)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 1

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

File Line Issue
`content/docs/campaigns/tracking/meta.mdx` 104 Version scope covers only the event table; the purchase-timing statements below still describe 0.4.x and contradict the 0.5.1 note

SUGGESTION

File Line Issue
`content/docs/campaigns/tracking/meta.mdx` 103 The Verify it works snippet still calls the 0.4.x `next.addMetadata`; add the 0.5.1 metadata equivalent
Files Reviewed (5 files)
  • `content/docs/campaigns/index.mdx` - 0 issues
  • `content/docs/campaigns/meta.json` - 0 issues
  • `content/docs/campaigns/page-kit.mdx` - 0 issues
  • `content/docs/campaigns/tracking/everflow.mdx` - 0 issues
  • `content/docs/campaigns/tracking/meta.mdx` - 2 issues

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash-1017 · Input: 58.4K · Output: 19.4K · Cached: 1.2M

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
developer-docs d0f48bc Commit Preview URL

Branch Preview URL
Dec 03 2026, 04:05 AM

@masmalsah masmalsah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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. No RemoveFromCart, AddShippingInfo, ViewedUpsell or SkippedUpsell.
  • Purchase on the checkout page when the order is paid there: seen in a test order on 0.5.1.
  • next.actions.setMetadata exists 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.mdx describes dl_upsell_purchase as one event per accepted upsell.
  • more-integrations.mdx says an order with two upsells shows as three purchases.
  • google-analytics-4.mdx does 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.

@next-devin

Copy link
Copy Markdown
Contributor Author

Changed the sdk_version example in page-kit.mdx to 0.4.43, matching the starter templates and the line below it. The rest of the PR stays on hold with the templates, as you suggest; whether to split the sdk_version fix out is Devin's call.

🤖 Addressed by Claude Code

@masmalsah

Copy link
Copy Markdown
Contributor

Correction: NextCommerceCo/campaign-cart#172 was wrong and is closed. 0.4.43 also sends one dl_upsell_purchase per bundle item, so it is not a reason to hold. The hold stands on the open direction questions: the data layer path the adapters use is marked deprecated in the SDK's migration guide, the built-in GA4 destination (NextCommerceCo/campaign-cart#171) cannot be customized, and there is no migration path yet for the 0.5 attribute names (NextCommerceCo/campaign-cart-starter-templates#275).

@next-devin next-devin changed the title Campaign Cart SDK 0.5.1 updates Campaign Cart SDK 0.5.1 and 0.5.2 updates Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants