gopersonal Platform
English
English
  • Introduction
    • Platform Overview
    • How it works
    • Use Cases
      • Ecommerce
        • Personalizations
          • Web Content
          • Recommendations
          • Notifications
          • Pop up
          • Feedback
          • Custom Code
          • APIs (App & other channels)
        • Broadcasts
    • Roadmap
    • Release Notes
      • Q2 2024
      • Q1 2024
      • Q4 2023
  • ADMIN UI
    • Introduction
    • Projects
    • Top bar
    • Menu
    • Dashboard
    • Analytics
      • Personalizations
      • Recommendations
      • Usage
    • Segmentation
      • Contact Lists
      • Audiences
        • Visit Behavior Rules
        • Purchase Behavior Rules
        • Affinity Rules
        • Predictive Rules
        • Customer Properties Rules
        • Cluster RFM Rules
        • Product Interactions Rules
        • Custom Interactions Rules
        • Live Shopping Rules
        • Location Rules
    • Personalizations
      • Listing
      • Web Content personalization
      • Recommendations personalization
      • Feedback personalization
      • Pop up personalization
      • Notifications personalization
      • Custom Code personalization
      • API personalization
      • Experiences
        • Targeting Rules
          • Session Behavior Rules
          • Time Rules
          • Demographic Rules
        • A/B Testing
        • New Variant from scratch
        • New variant using my templates
        • New variant using Go Personal's template
        • Variables
      • Recommendations strategies
    • Broadcasts
      • Listing
      • New Broadcast
        • New Email Variant
        • New SMS Variant
        • New Push Notification Variant
      • A/B tests
      • Text Generator
    • Journeys
      • Listing
      • Workflow
        • Trigger
        • Dynamic variables
        • Notifications
          • Email
          • SMS
          • App Push Notification
        • Flow control
          • Rules
          • Simple condition
          • Complex condition
          • A/B testing paths
        • Delays
          • Delay time
          • Wait for customer property change
          • Wait for interaction
        • Actions
          • Invoke API
          • Script
    • Customers
    • Addons
      • Go Live Shopping
        • App
      • Go Search
    • Items
    • Users
    • Catalogs
      • Interactions
      • Goals
      • Templates
    • Integrations
  • Developers
    • Magento
    • WooCommerce
    • VTEX
    • SDK Integration Guide for E-Commerce Websites
    • Channels setup
      • Web Push Notifications
Powered by GitBook
On this page
  1. Developers

VTEX

PreviousWooCommerceNextSDK Integration Guide for E-Commerce Websites

Last updated 8 months ago

You can set up the integration with VTEX following these steps:

Step 1: Create the VTEX integration in gopersonal platform. Check the in order to create a new integration. You will need the URL, App Key and App Token.

Also, you can configure the synchronization times for products and customers.

Step 3: Install the gopersonal VTEX app

In your VTEX admin in the App Management section go to gopersonal App.

Open the app settings, paste the clientId and click save.

Step 5: Setup in the checkout page

Open your admin in the Checkout section in the checkout6-custom.js:

Add the following snippet in the file and replace "REPLACE_ME_CLIENT_ID" with your clientId:

async function initializeGSSDK() {
    window.gsSDK = await new window.GSSDK.default('REPLACE_ME_CLIENT_ID', {
        provider: 'Vtex',
        context: {pageType: 'checkout'}
    });
}
var gsSDKScript = document.createElement('script');
gsSDKScript.src = 'https://sdk.gopersonal.ai/gs-sdk.js';
gsSDKScript.onload = initializeGSSDK;
document.head.appendChild(gsSDKScript);

Web Push Channel Setup

To create the Service Worker script, follow the step-by-step instructions below:

  1. In the VTEX Admin, go to Store Settings > Storefront > Checkout, or type Checkout in the search bar at the top of the page.

  2. Click the icon of the desired site.

  3. In the Code tab, click the New buttton.

  4. Then click on File.

  5. Fill in the file name exactly like: gp-firebase.js.

  6. Click the Create button.

  7. Add this code to the script:

"function" === typeof importScripts && importScripts("https://sdk.gopersonal.ai/libs/firebase-messaging-sw.js");
  1. Click the Save button.

Step 2: Create the gopersonal Auth SDK integration. Also in the create a new integration for gopersonal Auth Web. Complete the domain with your ecommerce domain.

Check the VTEX IO documentation . Step 4: Add your clientId in the VTEX app configurations You can get your clientId in the integration panel once created.

Integrations section
here
https://ACCOUNT.myvtex.com/admin/portal/#/sites/default/code/files/checkout6-custom.js
Integrations section