iOS Mobile SDK: Notify Page Visit Event

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
    })

 

 

Congratulations!
You have reached the end of the lesson.

 

Do you still have unresolved questions?
Remember that our Connectif specialists are at your disposal. To contact them, just open a support ticket by clicking on the blue “Help” button on your dashboard.


Keep learning!

To make the most of your Connectif account, we recommend continuing with the following articles:

Was this article helpful?
0 out of 0 found this helpful