Data collection
Send website and server events to VYG.
Send events such as purchases, page views and support updates to build customer profiles and segments. Use this address to send events:
https://cdp.vyg.appThis host only accepts events. Reading customer data happens on the REST API at https://api.vyg.app/v1;
see Get started.
Ways to send events
| Source | Endpoint | Credential | Page |
|---|---|---|---|
| Shopify storefront | POST /cdp/ingest | None | Browser ingest |
| Other websites | GET /cdp/vyg.js, then POST /cdp/ingest | None | Web pixel |
| Your servers and back-office apps | POST /cdp/events | A vyg_ API key | Server-side events |
- Shopify stores send storefront events through the VYG web pixel that is installed with the VYG Shopify app. There is nothing to add by hand.
- Other websites load the VYG web pixel script. It sends page views on its own and gives you
vyg.trackandvyg.identifyfor anything else. - Servers send batches of events with an API key, for events that do not happen in a browser, such as a shipment or a support ticket.
Use the browser pixel on a registered storefront. Server event requests require a VYG API key. Follow the setup guide for your collection method.
Event types
See Event types or get the list from GET /v1/event-types.
Errors
Collection errors use the same format as REST API errors. See Collect errors.