JavaScript API
Complete reference for all JavaScript methods available in the Campaign Cart SDK.
Quick Navigation
- Complete Methods Reference - All JavaScript methods in one place
Method Categories
The JavaScript API is organized into the following categories:
- Cart Methods - Add, remove, update cart items
- Campaign & Package Methods - Get campaign and package data
- Coupon Methods - Apply and manage discount codes
- Shipping Methods - Manage shipping options
- Tracking & Analytics Methods - Track e-commerce events
- Upsell Methods - Post-purchase upsell management
- Event Methods - Subscribe to SDK events
- Utility Methods - Formatting and validation
- Debug API - Development and troubleshooting tools
Documentation
- Events - Complete event system documentation
- Profiles API - Profile-based package mapping
- Attribution API - Attribution tracking
- URL Parameters API - URL parameter management
- Data Attributes - HTML attribute reference
- Utilities - FOMO, exit intent, and debugging tools