Server-side / PWA Activity Tracking
The Mobile and App API allows your mobile apps, PWAs, services, and other systems to pass data to Fresh Relevance, as well as use the platform’s technology to drive personalization in your apps, web pages, and other channels.
The standard configuration of Fresh Relevance captures data about shoppers’ behavior using JavaScript on every webpage of a website. This is called client-side data collection. This JavaScript sends data to the Fresh Relevance server for each page visited. This is referred to as a beacon and includes a JSON structure containing the following types of data:
- Product Details Page
- Device ID (Cookie)
- Product information such as ID, name, image, URL, description, price
- Product List Page
- Device ID (Cookie)
- Array of products and information such as ID, name, image, URL, description, price
- Cart Page
- Device ID (Cookie)
- A list of all Products in the cart and information such as ID, name, image, URL, description, price, quantity
- Cart level information, such as cart price
- Transaction Complete Page
- Email address of visitor
- Device ID (Cookie)
- Email address
This is not an exhaustive list.
Additional custom data can be sent for both the person, for example a CRM ID, and for the product(s).
As an alternative, you can also collect data on your web server (server-side) and from your mobile apps.
Record data on your web server using the API
Data capture for websites driven from your server is straightforward – your web server needs to make a call to Record Activity on the Mobile Data Collection API for each page that is viewed.
For example, your website should post a beacon of type 1 (PRODUCT_BROWSE) for every product page that’s visited. With this beacon, you should supply details of the product(s) viewed and the visitor's cookie ID.
Learn more in Mobile Data Collection API.
Updated 2 months ago