SDK Integration Guide for E-Commerce Websites
Important Concepts
Pre-requirements
Installation Steps
<script> async function initializeGSSDK() { window.gsSDK = await new window.GSSDK.default('REPLACE_ME_CLIENT_ID', { provider: 'Custom', context: { pageType: 'home' } // This context varies based on the page }); } var gsSDKScript = document.createElement('script'); gsSDKScript.src = 'https://sdk.gopersonal.ai/gs-sdk.js'; gsSDKScript.onload = initializeGSSDK; document.head.appendChild(gsSDKScript); </script>
Context Configuration Examples
Customer Authentication Management
Adding Interactions
Viewing a Product
Liking a Product
Adding a Product to the Cart
Removing a Product from the Cart
Handling Quantity Changes in the Cart
Clearing the Cart
Completing a Purchase
Last updated