---
updatedAt: 2026-11-03T16:51:07.000Z
agentTools:
  projectIndex: https://docs.yespo.io/llms.txt
---

# Integration with CMS

Integrating your CMS platform with **Yespo** allows online store owners to quickly start using advanced marketing tools without relying on in-house developers. This integration covers the following steps:

* Syncing CMS contact and order data with Yespo
* Tracking user behavior via events
* How to configure Web Push subscriptions
* (Optional) How to set up a product feed for generating product recommendations on the site and in messages

Once integration is complete, CMS users can connect their store to Yespo, set up additional [media channels](https://docs.yespo.io/docs/what-is-yespo#messages), and launch omnichannel campaigns directly from the Yespo interface — no extra development needed.

> 📘 Note
>
> To simplify configuration, you can use a real-world example of a full-featured integration in our <a rel="nofollow" href="https://github.com/Yespo-CDP/yespo-shopify" target="_blank">Yespo-Shopify</a>, <a rel="nofollow" href="https://github.com/Yespo-CDP/yespo-opencart" target="_blank">Yespo-OpenCart</a> and <a rel="nofollow" href="https://github.com/Yespo-CDP/yespo-woocommerce" target="_blank">Yespo-WooCommerce</a> GitHub Repositories. You may also find the following guides helpful:
>
> * [Installing Plugin for WooCommerce Sites](https://docs.yespo.io/docs/installing-plugin-woocommerce-sites)
> * [Integrating with Shopify](https://docs.yespo.io/docs/integrating-with-shopify)

## 1. Contact Data Synchronization

### 1.1 Syncing New Contacts

**Purpose:** After the integration is enabled, all new contacts created in the CMS are automatically synced to Yespo in real time.

Using contact identifiers such as `externalCustomerId`, `email`, and `phone` helps avoid duplicates, even if the contact already exists in Yespo.

**Implementation:** Use the <Anchor label="Add/update a contact" target="_blank" href="https://docs.yespo.io/reference/addcontact-1">Add/update a contact</Anchor> API.

### 1.2 Importing Existing Contacts

**Purpose:** Historical contacts that existed in the CMS before the integration can be imported into Yespo as part of the initial setup. As mentioned above, Yespo identifies and merges existing contacts using `externalCustomerId`, `email`, and `phone`, so no duplicates are created.

**Implementation:** Use the <Anchor label="Add/update contacts" target="_blank" href="https://docs.yespo.io/reference/contactsbulkupdate-1">Add/update contacts</Anchor> API.

* Contacts that fail to import are flagged with an error, with its description
* Monitor import status via the <Anchor label="Get contact import status" target="_blank" href="https://docs.yespo.io/reference/getimportsessionstatus-1">Get contact import status</Anchor> API

### 1.3 Updating Contacts

**Purpose:** When a contact's email, phone number, or other details change in the CMS, Yespo updates the corresponding profile — or creates it if it doesn't exist.

**Implementation:** Use the <Anchor label="Add/update a contact" target="_blank" href="https://docs.yespo.io/reference/addcontact-1">Add/update a contact</Anchor> API.

### 1.4 Deleting Contacts

**Purpose:** Contacts deleted in the CMS are also removed from Yespo (1st deletion type) or deactivated (2nd deletion type).

**Implementation:** Handle both deletion types:

1. **GDPR-compliant deletion:** Use <Anchor label="Delete contact by externalCustomerId" target="_blank" href="https://docs.yespo.io/reference/deletecontact-1">Delete contact by externalCustomerId</Anchor> API with `erase=true`.
   * This deletion removes all contact data from the Yespo  database and anonymizes orders
2. **Regular/manual deletion:** Use the same API with `erase=false`.

   * Manually deleted contacts are marked as deleted, but profiles still exist at a separate tab and are still linked to orders; they can be restored in Yespo

### Additional Contact Data Sources

#### Newsletter Subscriptions via Widgets

**Purpose:** Contacts subscribing via the Yespo widget are added directly to Yespo, bypassing the CMS.

**Implementation:** Ensure support for all configurations:

* Both Yespo and CMS forms are enabled
* Yespo form only
* CMS form only

> 📘 Note
>
> To use Yespo widgets, <Anchor label="register a domain" target="_blank" href="https://docs.yespo.io/reference/createdomain">register a domain</Anchor>, and <Anchor label="receive" target="_blank" href="https://docs.yespo.io/reference/getscript">receive</Anchor> and install the web tracking script

#### Web Push Subscriptions

**Purpose:** When a user subscribes to Web Push on the CMS site, Yespo creates a contact with a Web Push token, allowing notifications to be sent to this contact.

**Implementation:** [Enable Web Push configuration](https://docs.yespo.io/docs/cms-integration-guide#4-web-push-subscription-configuration) in the CMS and ensure correct token transfer.

#### Contacts from Orders

##### Using Generate event API

**Purpose:** When receiving an order, Yespo identifies the contact via `externalCustomerId` and/or `locator` (`phone`/`email`). If the contact is not found, a new one will be created.

**Implementation:** Use the <Anchor label="Generate event v3" target="_blank" href="https://docs.yespo.io/reference/registerevent_2">Generate event v3</Anchor> API.

<Callout icon="📘" theme="info">
  Check out [the guide](https://docs.yespo.io/docs/how-send-events-resource-v1event) on using Generate event to send orders
</Callout>

##### Using Add orders API

**Purpose:** Same as above.

**Implementation:** Use the <Anchor label="Add orders" target="_blank" href="https://docs.yespo.io/reference/ordersbulkinsert-1">Add orders</Anchor> API.

##### Contacts from PurchasedItems Web Tracking Event

**Purpose:** When a customer places an order on the CMS store, a contact is created in Yespo via the `PurchasedItems` event. Whether the contact is new or already exists, it will be mapped with the web tracking event via the `CustomerData` event.

**Implementation:** Send <Anchor label="JavaScript-based web tracking events" target="_blank" href="https://docs.yespo.io/docs/how-set-web-tracking-sending-events-javascript-request">JavaScript-based web tracking events</Anchor> from the CMS store.

#### Account Creation and Login

**Purpose:** Yespo receives identification data when users sign up or log in.

**Implementation:** Send the <Anchor label="CustomerData" target="_blank" href="https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#customerdata">CustomerData</Anchor>  web tracking event when:

* A user creates a new account
* A user logs in

> 📘 Note
>
> * The `CustomerData` event alone doesn’t create or update contacts. Use the same logic as in the **Receiving Contacts** and **Updating Contacts** sections
> * If a contact is unknown, Yespo uses cookies to track anonymous behavior and links it upon login or registration

## 2. Order Data Synchronization

### 2.1 New Orders

**Purpose:** After the integration is enabled, all new orders created in the CMS are automatically synced to Yespo in real time.

**Implementation:**

* Use <Anchor label="Add orders" target="_blank" href="https://docs.yespo.io/reference/ordersbulkinsert-1">Add orders</Anchor> and/or <Anchor label="Generate event v3" target="_blank" href="https://docs.yespo.io/reference/registerevent_2">Generate event v3</Anchor> API
* Map order statuses between CMS and Yespo and make sure that up-to-date statuses are always synced to Yespo

### 2.2 Importing Existing Orders

**Purpose:** Historical orders data that existed in the CMS before the integration can be imported into Yespo as part of the initial setup.

**Implementation:** Use the <Anchor label="Add orders" target="_blank" href="https://docs.yespo.io/reference/ordersbulkinsert-1">Add orders</Anchor> or <Anchor label="Generate past events V3" target="_blank" href="https://docs.yespo.io/reference/sendhistoryevents_2">Generate past events V3</Anchor> API.

### 2.3 Order Updates

**Purpose:** Yespo reflects updated order data and statuses. When an order’s details or status change in the CMS, Yespo updates the corresponding order, or creates it if it doesn't exist

**Implementation:**

* Use <Anchor label="Add orders" target="_blank" href="https://docs.yespo.io/reference/ordersbulkinsert-1">Add orders</Anchor> and/or <Anchor label="Generate event v3" target="_blank" href="https://docs.yespo.io/reference/registerevent_2">Generate event v3</Anchor> API
* Maintain consistent status mapping (synced to Yespo)

### Additional Order Data Sources

#### Orders from Web Tracking

**Purpose:** Orders are created in Yespo when customers complete a purchase in the CMS store.

**Implementation:** Use the <Anchor label="PurchasedItems" target="_blank" href="https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#purchaseditems">PurchasedItems</Anchor>  web tracking event.

## 3. Website Visitor Behavior Tracking

### Purpose

Track behavioral data to:

* Build audience segments
* Launch personalized omnichannel campaigns
* Trigger automations like abandoned cart or view
* Power product recommendations with AI

### Implementation

1. [Register a domain](https://docs.yespo.io/reference/createdomain).
2. <Anchor label="Receive" target="_blank" href="https://docs.yespo.io/reference/getscript">Receive</Anchor> and install the Yespo web tracking script (skip this step if it is already installed for widgets).
3. Configure the product feed (via <Anchor label="UI" target="_blank" href="https://docs.yespo.io/docs/importing-product-feed">UI</Anchor> or <Anchor label="API" target="_blank" href="https://docs.yespo.io/reference/configureproductfeeds">API</Anchor>).
4. Track events from the <Anchor label="front end" target="_blank" href="https://docs.yespo.io/docs/how-set-web-tracking-sending-events-javascript-request">front end</Anchor>, the <Anchor label="back end" target="_blank" href="https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api">back end</Anchor>, or both — ensure flexibility regardless of the store’s UI configuration options. For example, you can track `CustomerData`, `StatusCart`, and `PurchasedItems` events from the back end and the rest from the front end.

> 📘 Note
>
> If you transfer the `StatusCart` event via the back end, you cannot configure the recommendations display for the cart. In this case, the technical `StatusCartPage` event is used to detect the cart page.

### Required Events

The <Anchor label="Transferring Website Behavior Data via REST API" target="_blank" href="https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api">Transferring Website Behavior Data via REST API</Anchor> article provides the full list of web tracking events; below are listed the necessary ones:

* <Anchor label="PageView" target="_blank" href="https://docs.yespo.io/docs/how-set-web-tracking-sending-events-javascript-request#page-view">PageView</Anchor> : Auto-triggered after script installation
* [ProductPage](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#productpage)
* [StatusCart](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#statuscart) : Use variation ID as a product key if variations are handled on the website
* [PurchasedItems](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#purchaseditems) : Use variation ID as a product key if variations are handled on the website; purchase triggers contact/order creation. Also, when using variation, make sure you pass the variation ID via orders and/or event API
* [CustomerData](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#customerdata)
* [CategoryPage](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#categorypage)
* [ProductImpression](https://docs.yespo.io/docs/how-transfer-website-behavior-data-through-rest-api#productimpressions) : Used to display impressions of recommendation blocks in **Reports**
* <Anchor label="NotFound" target="_blank" href="https://docs.yespo.io/docs/how-set-web-tracking-sending-events-javascript-request#404-page">NotFound</Anchor> : Tracks the 404 page; required for displaying recommendations on the site
* [MainPage](https://docs.yespo.io/docs/how-set-web-tracking-sending-events-javascript-request#main-page)

## 4. Web Push Subscription Configuration

### Purpose

* Store owners can quickly set up Web Push with minimal effort
* Subscribers are added to Yespo with a token
* Rejected subscribers aren't added, but can be prompted again later
* Manual updates (e.g., icons, subscription types) are supported via configuration in the Yespo account
* Store owners can configure сustom push campaigns via Yespo
* CMS activity data powers reporting
* Conflicts with third-party push providers are handled gracefully

### Implementation

1. <Anchor label="Add a domain" target="_blank" href="https://docs.yespo.io/reference/addwebpushdomain">Add a domain</Anchor> for Web Push notifications.
2. <Anchor label="Receive" target="_blank" href="https://docs.yespo.io/reference/getwebpushscript">Receive</Anchor> the Yespo Web Push script and service worker content.
3. Generate `sw.js` with the service worker content and upload it along with the script to the site.

> 📘 Note
>
> The API-based setup creates a one-click subscription by default. A user can change the subscription type in the Yespo account settings

## 5. Product Feed Configuration

### Purpose

<Anchor label="The product feed" target="_blank" href="https://docs.yespo.io/docs/importing-product-feed">The product feed</Anchor> allows Yespo to access real-time catalog data from your CMS, enabling personalized product recommendations, dynamic content, and relevant campaign triggers.

> 📘 Note
>
> Having a feed is necessary for tracking web events

### Implementation

* <Anchor label="Post" target="_blank" href="https://docs.yespo.io/reference/configureproductfeeds">Post</Anchor> product feed links (with language parameters) to Yespo from your CMS
* Detect missing or incorrect feeds and notify the user
* Provide a simple interface for fixing feed errors or updating links
* Allow users to manage feed settings like update frequency and supported languages

## Plugin Uninstallation

When the plugin is uninstalled, remove all configurations it created — including installed scripts and markings on the transferred data — so that every subsequent installation starts from scratch, like the first one.

## Need Help?

If any step seems unclear or technically challenging, contact us at <support@yespo.io> and use the chat in the bottom right corner of this page for direct support. We're happy to help you determine the best integration approach.

<br />