gopersonal Platform
Español
Español
  • Guia de Usuario
    • Primeros Pasos
      • ¿Cómo funciona?
      • Conceptos básicos
      • Roadmap
    • Novedades
      • Q3 2024
      • Q2 2024
      • Q1 2024
      • Q4 2023
    • Navegación General
      • Login
      • Proyectos
      • Top bar
      • Menu
      • Configuraciones
        • Límites de frecuencia por canal
    • Dashboard
    • Analytics
      • Recomendaciones
      • Broadcasts
      • Journeys
      • Generales
      • Uso
    • Segmentación
      • Lista de Contactos
      • Explorador de Audiencias
      • Audiencias
        • Nueva Audiencia
        • Condiciones de Audiencia
          • Comportamiento de visitas
          • Comportamiento de compras
          • Afinidad
          • Predictivo
          • Propiedad de cliente
          • RFM
          • Lista de Contactos
          • Interacciones con Items
          • Interacciones Custom
          • Live Shopping
          • Ubicación
        • Destinos
          • Facebook Ads
    • Personalizaciones
      • Listado de personalizaciones
      • Contenido Web
      • Recomendaciones
      • Recolector de Feedback
      • Pop Up
      • Notificaciones
      • Código Custom
      • API
      • Experiencias
        • Targeting
          • Comportamiento visita en la sesión
          • Comportamiento de compra en la sesión
          • Interacciones con items en la sesión
          • Interacciones custom en la sesión
          • Lista de contactos
          • Afinidad en la sesión
          • Audiencia
          • Ubicación
          • Clima
          • Dispositivo
          • Tiempo
        • Variantes
          • Nueva Variante desde 0
          • Nueva Variante mediante template de gopersonal
          • Nueva Variante mediante template guardado previamente
          • Variables
        • Pruebas A/B
    • Journeys
      • Listado de User Journeys
      • Editor Workflow
        • Trigger
        • Espera
          • Esperar por tiempo
          • Esperar por propiedad de cliente
          • Esperar por interacción
          • Esperar hasta intervalo
        • Control de flujo
          • Condiciones simples
          • Condiciones complejas
          • A/B testing de caminos
          • Chequeo Contactabilidad
          • Reglas
        • Canales
          • Email
          • SMS
          • App Push Notification
          • Web Push Notification
          • Variables dinámicas
        • Acciones
          • Invocar API
          • Ejecutar Script
    • Broadcasts
      • Listado de broadcasts
      • Nuevo Broadcast
        • Email
          • Editor Drag & Drop
          • Editor HTML
          • Templates
          • Parámetros UTM
          • Apple Mail Privacy Protection (MPP)
        • SMS
        • App Push Notification
        • Web Push Notification
        • A/B Testing
      • Enviar Broadcast
      • Generador de Texto
    • Clientes
      • Vista 360 de cliente
    • Recomendaciones
      • Estrategias de Recomendaciones
      • Estrategias Custom
        • Listado de Estrategias Custom
        • Customizar una estrategia
        • Mix de Estrategias
        • Promocionar Items manualmente
        • Promocionar Items por filtro
        • Categorías cruzadas
    • Catálogos
      • Propiedades
        • Propiedades Standard
        • Condiciones
      • Componentes de Email
        • Listado de Componentes
        • Recomendaciones en Email
    • Go live Shopping
      • Analytics
        • Llamadas
        • Videos
      • Disponibilidades
      • Campañas
      • Grupos
      • Eventos
      • LLamadas
      • Agenda
      • Host App
        • Introducción
        • App
        • Próximos eventos
        • Eventos
        • Perfil
      • Llamada
      • Show
    • Go search
      • Analytics
      • Búsquedas
      • Configuraciones
        • General
        • Propiedades
        • Ranking
        • Sinónimos
        • Redireccionaes a URL
        • Probar Search
    • Go loyalty
      • Analytics
      • Miembros
      • Niveles
      • Campañas
        • Configurar Campaña
      • Recompensas
        • Recompensa de Tipo Material
        • Recompensa de tipo Cupón descuento
        • Recompensa de tipo Convertir puntos en cupón
      • Canjes
      • Página Loyalty
    • Integraciones
    • Colaboradores
  • Integraciones
    • Facebook Ads
  • Developers
    • Plataforma Ecommerce
      • Magento
        • Go Search API
      • Woocommerce
      • VTEX
        • API Credentials: Setup Guide for Gopersonal Integration
      • SDK Integration Guide for E-Commerce Websites
    • Channels Setup
      • Web Push Notification
    • API Reference
      • Items
      • Interacciones
      • Search
      • Recommendations
Powered by GitBook
On this page
  • Step 1: Create the VTEX integration in gopersonal platform.
  • Step 2: Create the gopersonal Auth SDK integration.
  • Step 3: Install the gopersonal VTEX app
  • Step 4: Setup in the checkout page
  • Web Push Channel Setup
  1. Developers
  2. Plataforma Ecommerce

VTEX

PreviousWoocommerceNextAPI Credentials: Setup Guide for Gopersonal Integration

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 2: Create the gopersonal Auth SDK integration.

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 4: 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:

Copy

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:

Copy

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

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