Custom Events

Track user actions and revenue in your app with custom and revenue events.

Pulsate lets you track actions your users take in your app by recording custom events. Tracking these events gives you a better picture of the customer journey, and you can deliver targeted campaigns to users based on their actions.

📘

Custom event campaign example

You create a campaign with a coupon for clothes and decide to show it on a didPressClothesButton event trigger. When the user taps the Clothes section button, you send a didPressClothesButton event through the SDK. The server takes care of the rest and delivers your campaign to the user.

Logging a single event

Call createEvent(_:) on the PULPulsateManager instance:

import PULPulsate

guard let manager = PULPulsateFactory.getDefaultInstance() else { return }
manager.createEvent("didPressClothesButton")

Once an event has been sent, every time a user completes that action it is recorded by Pulsate, and you can choose those events in the Targeting section when sending a campaign.

Logging multiple events

To log several events at once, pass an array to createEvents(_:):

manager.createEvents(["didPressClothesButton", "didViewCart"])

Next steps