Setting up events for Mobile Analytics in iOS

Setting up events for Mobile Analytics in iOS

A User Event is an action that a user takes in your mobile application. PageSense records the event on the User Profile, using an event name and optional associated key:value based event properties.

An example of recording a Product Viewed user event is shown as follows:
Objective-C
Swift
Objective-C
  1. // event without properties
  2. [[PageSense sharedInstance] recordEvent:@"Product viewed"];
Swift
  1. // event without properties
  2. PageSense.trackEvent(eventName: "Product viewed")
To record a list of items viewed, use the Items collection. Along with the product name, you can also add properties like size, color, category etc. An example of recording a Product Viewed user event with properties is shown as follows:
  1. let eventPropertiesDictionary = ["Product":"productname","Price":"59.99"]
  2. PageSense.trackEvent(eventName: "Product viewed", withProperties: eventPropertiesDictionary)// event without properties
  3. PageSense.trackEvent(eventName: "Product viewed"

Objective-C

  1. // event with properties
  2. NSDictionary *props = @{
  3.     @"Product name": @"Casio Chronograph Watch",
  4.     @"Category": @"Mens Accessories",
  5.     @"Price": @59.99,
  6.     @"Date": [NSDate date]
  7. };
  8.  
  9. [[PageSense sharedInstance] recordEvent:@"Product viewed" withProps:props];
Info
Data types: The value of a property can be of type NSDate, a NSNumber, a NSString, or a BOOL.
NSDate object: When a property value is of type NSDate, the date and time are both recorded to the second. This can be later used for targeting scenarios. For e.g. if you are recording the time of the flight as an event property, you can send a message to the user just before their flight takes off.

Events help you understand how your users interact with your app. PageSense tracks certain common user events automatically while giving you the flexibility to record business-specific events.


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!


      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG


                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now




                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media


                                                                  • Desk Community Learning Series


                                                                  • Digest


                                                                  • Functions


                                                                  • Meetups


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner


                                                                  • Word of the Day


                                                                  • Ask the Experts


                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now








                                                                                                                            • Related Articles

                                                                                                                            • Introducing Mobile Analytics in Zoho PageSense

                                                                                                                              What is Mobile Analytics? Observing, understanding, and evaluating user behavior within a mobile application is called Mobile Analytics. This includes collecting information on user behavior, such as in-app purchases, software installations, user ...
                                                                                                                            • Learn how to configure your Push Notifications for iOS

                                                                                                                              PageSense allows you to send push notifications to your applications from our dashboard. Please follow the steps to send your first push notification to your application. Please note to test remote push notifications you need to connect your actual ...
                                                                                                                            • Get started with your PageSense Mobile Push Notifications

                                                                                                                              Building and maintaining an efficient relationship with your user group is crucial and mobile push notifications are spot-on the most effective way. From interacting with your consumers, boosting conversions, and improving user experience—it’s a ...
                                                                                                                            • Create your first mobile push notifications for Android

                                                                                                                              Mobile push notifications help drive appropriate interactions to boost conversions on Android devices. You will get a complete walkthrough on setting up Mobile Push Notifications for Android in PageSense. You will learn all the configurations needed, ...
                                                                                                                            • Introduction to web analytics in PageSense

                                                                                                                              Today, there are plenty of CRO (conversion rate optimization) tools in the market that can help you get insights into what exactly your visitors do on your webpage, where they drop off in their journey, and how you can optimize your website for ...
                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources