Mobile App Integration in Zoho PageSense

Mobile - Apps

The Mobile Apps section in Project Settings allows you to integrate your Android and iOS applications with Zoho PageSense. By connecting your mobile app with PageSense, you can track user interactions, capture in-app events, and send push notifications to engage users.


To begin tracking metrics from your mobile application, you must first add your app and integrate the PageSense SDK into your mobile project. Once the SDK is implemented, PageSense can start collecting user activity data from within the app.


NotesNote: The Settings icon is located in the top-right corner of your PageSense interface. From there, navigate to Mobile → Apps to add and manage your mobile applications.

After adding your app, you can configure the following options:

SDK – Integrate the PageSense SDK to start tracking app activity.
User Information – Send user attributes such as email, name, or phone number to PageSense.
Events – Track specific user actions within the app.
Push Notifications – Enable notifications to communicate with mobile users.

SDK

The SDK (Software Development Kit) is required to connect your mobile application with Zoho PageSense. Once integrated, the SDK enables PageSense to collect user interaction data from your mobile application.

PageSense provides SDK support for both Android and iOS platforms.

Android SDK

To start tracking metrics for your Android application, integrate the Zoho PageSense Android SDK into your project.


Step 1: Add the Maven repository

Add the following repository in the root build.gradle file of your Android project.

  1. allprojects {
  2. repositories {
  3. maven {
  4. url 'https://maven.zohodl.com'
  5. }
  6. }
  7. }



Step 2: Add the SDK dependency

Add the PageSense dependency in the app-level build.gradle file.

  1. dependencies {
  2. implementation 'com.zoho.pagesense:pagesense:1.1.2'
  3. }

Step 3: Initialize the SDK

Initialize the PageSense SDK inside the onCreate method of your Application class.

  1. public class CustomApplication extends Application {
  2. @Override
  3. public void onCreate() {
  4. super.onCreate();
  5. PageSense.init(this, "6cxww7rh:20d7168ea0a542869590c71fdf5a6721:2:US");
  6. }
  7. }

Once initialized, PageSense will start tracking activity within your Android application.



 iOS SDK

To track metrics for your iOS application, integrate the Zoho PageSense iOS SDK into your project.

Step 1: Add the SDK

You can add the SDK using either of the following methods:

Direct Integration

Download the SDK and add the ZohoPageSenseSDK.xcframework file into your project.

Using CocoaPods

Add the following line to your Podfile:

  1. pod 'PageSenseSDK'

Step 2: Configure PageSense credentials

Add your PageSense credentials in the Info.plist file.

  1. Open the Info.plist file in your project.

  2. Create a new key named ZPS_APP_ID.

  3. Set the key type to String.

  4. Enter the App ID from your PageSense account.

After completing these steps, PageSense will begin tracking user activity in your iOS application.


User Information

The User Information option allows you to send user-specific details from your mobile application to PageSense. This helps identify users and analyze engagement patterns more effectively.

Examples of user details include:

  1. Email Address
  2. Name
  3. Phone number 
Android



For Android applications, you can send user information using the following API format:
  1. UserInfo userInfo = PageSense.getUserInfoInstance();
  2. userInfo.setEmail(<emailId>);
  3. userInfo.setFirstname(<first_name>);
  4. userInfo.setPhone(<phone>);
  5. PageSense.addUserInfo();


iOS



For iOS applications, use the following API format:
  1. let userPropertiesDictionary = ["firstname":"firstname","lastname":"lastname","email":"email"]
  2. PageSense.trackUser(userProfile : userPropertiesDictionary)

Providing user information helps you better understand how individual users interact with your mobile application.

Events

The Events feature allows you to track specific actions performed by users inside your mobile application. Events help measure engagement and monitor how users interact with different features of your app.

Examples of events include:

  • Purchases
  • Downloads
  • App installs or uninstalls
  • Button clicks
  • Feature interactions
Android


For Android applications, events can be tracked using the following API format:
  1. PageSense.addEvent(
  2. String <EVENT_NAME>,
  3. HashMap<String, Object> <EVENT_CUSTOM_ATTRIBUTE>
  4. );


iOS
  1. PageSense.trackEvent(eventName: "eventName")

or

  1. PageSense.trackEvent(eventName : "eventName", withProperties : ["eventProperty" : "value"])




Tracking events helps you understand how users engage with different parts of your application.

Push Notifications

The Push Notifications option allows you to send notifications directly to users who have installed your mobile application. These notifications help you communicate updates, alerts, or promotional messages and encourage users to return to your app.
Android Push Notifications

To enable push notifications for Android applications, authentication must be configured using Firebase Cloud Messaging (FCM).


Provide the following details:

  • Service Account JSON file

  • Firebase Project ID

After configuring these details, PageSense can deliver push notifications to Android devices.



iOS Push Notifications

To enable push notifications for iOS applications, authentication must be configured using Apple Push Notification Service (APNS).


Provide the following details:

  • APNS Authentication Type

  • Key file (.p8 or .p12)

  • Team ID

  • Bundle ID


 

We’ve designed this documentation to guide you every step of the way. If you need further assistance or have any questions, don’t hesitate to contact us at support@zohopagesense.com - we’re always here to help!