๐Ÿ›๏ธRecommended Events for E-Commerce

Track and react to user behavior with easy-to-integrate recommended events for e-commerce apps

Below, you'll find a bunch of in-app events recommended for your app category. We based our choice on industry-specific best practices and experts' advice. By tracking these selected events, you can improve your behavioral segmentation and perform more effective, user-centric messaging campaigns.

To implement any of these or other events:

  • create the Event in your Pushwoosh Control Panel, add attributes if needed;

  • integrate the postEvent method into your mobile project providing the event name and attributes names are exactly the same as in the Control Panel.

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Event name", { // event name exactly as in Control Panel
    "attribute 1": "string value", // attribute name and type exactly as in Control Panel
    "attribute 2": "string value" // attribute name and type exactly as in Control Panel
  });
});

The samples below can be simply pasted into your app, provided there is a corresponding Event and its attributes are created in your Control Panel. Once integrated, the event data will be collected and become available in Audience -> Events -> Event statistics, and you will be able to use the event in campaign planning.

Product added to cart

Fire this event once a user adds product to their cart to build Abandoned Cart campaigns, set user tags, or analyze the efficiency of your promotions.

Recommended attributes:

  • product_id: String

  • price: Integer

  • source: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Product added to cart", {
    "product_id": "string value",
    "price": 1,
    "source": "string value"
  });
});

Discounted purchase

Trigger this event once a user purchases any product using a discount coupon.

Recommended attributes:

  • product_id: String

  • coupon_id: String

  • price: Integer

  • discount: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Discounted purchase", {
    "product_id": "string value",
    "coupon_id": "string value",
    "price": 1,
    "discount": "string value"
  });
});

Product Page abandoned

Fire this event when a user leaves a product page without a conversion action.

Recommended attributes:

  • product_id: String

  • price: Integer

  • source: String

  • product_page_id: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Product Page abandoned", {
    "product_id": "string value",
    "price": 1,
    "source": "string value",
    "product_page_id": "string value"
  });
});

Product added to wishlist

Stay informed of the products that users have saved to their wishlists and create personal offers and promo campaigns.

Recommended attributes:

  • product_id: String

  • wishlist_id: String

  • product_price: Integer

  • source: String

  • user_id: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Product added to wishlist", {
    "product_id": "string value",
    "currency": "string value",
    "price": 1,
    "source": "string value",
    "user_id": "string value"
  });
});

Product removed from wishlist

Fire this event when a user deletes a product from their wishlist.

Recommended attributes:

  • user_id: String

  • wishlist_id: String

  • product_id: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Product removed from wishlist", {
    "wishlist_id": "string value",
    "user_id": "string value",
    "product_id": "string value"
  });
});

Product category

Send this event when a user purchases a product of a specific category.

Recommended attributes:

  • product_id: String

  • product_category: String

  • currency: String

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Product category", {
    "product_id": "string value",
    "product_category": "string value",
    "currency": "string value"
  });
});

First purchase

Trigger this event once a user makes their first purchase.

Recommended attributes:

  • product_id: String,

  • category: String

  • date: Date

// To use with Web Push SDK, you can integrate this code:

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("First purchase", {
    "product_id": "string value",
    "category": "string value",
    "date": "date value"
  });
});

Last updated