Skip to content

Custom 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.

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.

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

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