The “Notify Page Visit Event” is used to indicate that the contact has visited any page. It notifies when a user visits your page using the function Connectif.sendPageVisit.
How to use
The page visit notification uses the pageName parameter to enrich the information of the events sent, in addition to automatically sending additional information.
As a recommendation, the proper place should be the onAppear() lifecycle callback in the view to be tracked, which will allow us to know when a user has started using a certain view.
Notify Page Visit Event
- Page Info:
Attribute | Definition | Required | Limitations |
---|---|---|---|
pageName | The name of the page being visited. | Yes | First 50 characters are obtained, discarding the rest. |
This type of event automatically collects the following information:
- Operating system: Android or iOS.
- App version.
- Operating system version.
- Connectif SDK version.
Example
The notification will look like this:
Connectif.sendPageVisit("Home")
Callbacks (Opcional)
Si queremos tener feedback de posibles errores al enviar eventos, podremos añadir un EventCallbacks cuando usemos nuestro método.
EventCallbacks( onSuccess: { // Manejo en caso de éxito }, onError: { error in // Manejo en caso de error })
Keep learning!
To make the most of your Connectif account, we recommend continuing with the following articles:
- Android SDK Get Started
- Firebase Cloud Messaging Configuration, to activate push notifications for the Android Mobile SDK.
- iOS SDK Get Started
- Apple Push Notifications Service Configuration, to activate push notifications for the iOS Mobile SDK.