Skip to content

Campaign Cart SDK 0.5.1 updates - #77

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

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

Conversation

@next-devin

Copy link
Copy Markdown
Contributor

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_version example is now 0.5.1.

  • 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: added a 0.5.1 note listing the events the pixel gets on 0.5.1:

    • 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.

Left as is: the starter templates still pin 0.4.43, so the existing 0.4.x tables and blockedEvents steps stay. 0.5.1 reads blockedEvents again.

Checks: npm run generate, 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 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 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 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: 30.8K · Output: 5K · Cached: 399.1K

@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 b6ef66a Commit Preview URL

Branch Preview URL
Nov 26 2026, 08:46 PM

@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).

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