📱Recommended Events for Mobile Apps

Track and react to user behavior with easy-to-integrate recommended events for mobile 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 an Event in your Pushwoosh Control Panel and add attributes if needed;

  • integrate the postEvent method into your mobile project, providing the name of the event and its attributes exactly as they are 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.

Log out

Trigger this event when users log out of their accounts in your app.

Recommended attributes:

  • user_id: String

  • date: Date

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

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Log out", {
    "user_id": "string value",
    "date": "date value"
  });
});

Payment method added

Fire this event when a user adds a payment method to their account in your app, e.g. provides card credentials or links the account to a payment system.

Recommended attributes:

  • payment_method: 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("Payment method added", {
    "user_id": "string value",
    "payment_method": "string value"
  });
});

Payment method changed

Send this event when a user updates their payment method in the app.

Recommended attributes:

  • user_id: String,

  • payment_method: String

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

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Payment method changed", {
    "user_id": "string value",
    "payment_method": "string value"
  });
});

Button clicked

Track button clicks within the app with this event to improve your analytics, test various communication strategies, and increase relevance of your messages based on customer behavior.

Recommended event attributes:

  • user_id: String

  • button_link: String

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

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Button clicked", {
    "user_id": "string value",
    "button_link": "string value"
  });
});

Application updated

Trigger this event every time a user installs an updated version of your app.

Recommended attributes:

  • previous_app_version: String

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

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("Application updated", {
    "previous_app_version": "string value"
  });
});

OS updated

Fire this event when a user updates their device's OS version to ensure your app is fully compliant.

Recommended attributes:

  • previous_OS_version: String

  • new_OS_version: String

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

const Pushwoosh = window.Pushwoosh || [];
Pushwoosh.push(function(api) {
    api.postEvent("OS updated", {
    "previous_OS_version": "string value",
    "new_OS_version": "string value"
  });
});

Last updated