window.sideshift after loading. Calls made before consent do not queue events for later delivery. Connect consent using the installation guide.
Standard events
Call these methods after the script has loaded. Do not include customer names, addresses, email addresses, payment details, or other personal information in event properties.Product view
Add to cart
Call this after your cart confirms that the item was added:Checkout started
Checkout completed
Call this on your order confirmation page:Custom event
Visitor ID
null before consent. After consent, the ID is stored in the ss_vid_YOUR_STORE_ID cookie for up to 30 days. The attribution window is seven days; cookie lifetime does not extend it.
Pass the ID to your server with the checkout request and store it with the order. If your server receives the store cookie, it can read that cookie directly. Do not replace a missing ID with a guessed or shared ID.
Event IDs and delivery
Methods that accept a data object accept an optionalevent_id string (1–200 characters). Use a stable ID when retrying the same action. Otherwise, the pixel generates one. Its bounded network retries reuse that ID. Custom event deduplication includes both event name and ID; use a new ID for a new action.
track('purchase') as an order integration. Browser purchase, checkout, subscription, and trial aliases do not create verified orders or advertising purchases. Use the Orders API.
Utility methods
Advertising context is optional and is not a substitute for
getVisitorId(). See advertising measurement.