# Cookies and Browser Storage
# Local Storage
Local storage is used by sponsorship (opens new window) & e-commerce (opens new window) scripts to propagate details cart and sponsorship details for analytics & display between all e-commerce checkout pages.
combo-cart- contains full details of the cart & sponsorship for the combo cart web app.stc-basket-items- contains the details of cart.stc-category-map- contains category information for the products added to the cart.stc-receipt- contains e-commerce receipt for thank you page display.stc-donation-purchase-id- contains the last donation purchase id for analytics.
# Session Storage
Donation pop-up authoring app (opens new window) and TeamRaiser alumni (opens new window) pages rely on session storage to keep the app data for the duration of the session.
stc-donation-pop-up-authoring- contains the details about the authored pop-up for the web app.stc-tr-ambassadors- contains information about alumni, quotes, and current interaction state for the web app.
# Cookies
A number of cookies is set with JavaScript. This is a comprehensive list of all the cookies set or read by the scripts or dependent scripts and their functions.
# Global Necessary Cookies
stc-basket- records cart product count and product summary. The cookie is set in the cart view. Item details are added intoitems: []property in cart step Total number of items in the cart are set ascount: 5property on product addition & reset in cart view (Need confirmation from combo-cart code) Total monetary value of the cart are set astotal: $50property on product addition & reset in cart view (Need confirmation from combo-cart code) Purchaser's/buyer's info is inserted on billing step intobuyer: { email: '', firstName: '', lastName: '' }property. The information is used on the thank you page to pre-populate the Mailing Card Survey and on the eCard page to pre-populate buyer's informationstc-buyer- Stores user information for eCommerce thank you page.stc-donation-result- Stores information about Venmo or Apple Pay donation.stc-logged-in- Detects if the user is logged in.stc-session-count- Used to help extend the logged in session.stc-survey-submitted- if the user have submitted one of the main sign up surveys
# Global Optional Cookies
stc-exit-intent-popup-shown-{donationId}- Hides the overlay shown to the user when they try to leave the form.stc-{alertId}- Hides the site alert.stc-sign-up-submitted- Hides the sign up form after user has submitted it.
# Analytics
stc-analytics-params- Stores the URL query parameters on the pages that use Vue.js app, so when the Vue.js rewrites the URL query parameters are preserved for analytics.stc-analytics-source- Stores the external campaign id from analytics to be added to transactions.stc-analytics-sub_source- Stores the users MCID unique identifier from analytics to be added to transactions.stc-member- Store's user properties, consId, isDonor, isParter, isFaf.stc-social-login- Stores which social media a user has used to sign in.