In-app Events for Apple apps

In-app Events for Apple apps

Configure the Events in the Apptics web console, refer to the user guide.
  1. Go to the Xcode project and add the below line to the post_install script of your Podfile.
Installation (available by default with the analytics package)
  1. #This as an optional script that generates the EventsExtension Class of your events configured on Apptics web.
    #Open terminal > go to > project root dir and run this command.
    sh ./Pods/Apptics-SDK/scripts/postinstaller --prefix="AP" --target-name="MAIN TARGET NAME" --config-file-path="YOUR_PATH/apptics-config.plist"
Usage: postinstaller --prefix="PREFIX STRING" --target-name="MAIN TARGET NAME [Optional]" --target-group="TARGET GROUP NAME [Optional]" --project-name="PROJECT NAME [Optional]" --project-file-path="PROJECT FILE PATH [Optional]" --config-file-path="CONFIG FILE PATH [Optional]" --use-swift [Optional]

The enums class will be added/updated automatically for the events configured in the Apptics web console.

Import

Obj-C
  1. #import <AppticsEventTracker/AppticsEventTracker.h>
Swift
  1. import AppticsEventTracker

Use events as strings

  1. To add events as strings, you can use the string literals method.
Obj-C
  1. [APEvent trackEvent:<#(nonnull NSString *)#>]
Swift
  1. APEvent.trackEvent(<#T##eventName: String##String#>, withGroupName: <#T##String#>)
Note: Strings should be the same as configured in the Apptics web console. *AppticsExtension class is also generated for the strings configured in the Apptics web console.

Add custom properties to events

  1. To add custom properties to events, call the below method.
Obj-C
  1. [APEvent trackEvent:<#(nonnull NSString *)#> andGroupName:<#(nonnull NSString *)#> withProperties:<#(nonnull NSDictionary *)#>]
Swift
  1. APEvent.trackEvent(<#T##eventName: String##String#>, andGroupName: <#T##String#>, withProperties: <#T##[AnyHashable : Any]#>)
Note: Custom properties will only be traced for the users who have opted to share their data with identity due to privacy concerns.

Track timed events

  1. To track the timed events, call startTimedEvent method to begin the timing of an event.
Obj-C
  1. [APEvent startTimedEvent:<#(nonnull NSString *)#> group:<#(nonnull NSString *)#> andProperties:<#(nonnull NSDictionary *)#>]
Swift
  1. APEvent.startTimedEvent(<#T##eventName: String##String#>, group: <#T##String#>, andProperties: <#T##[AnyHashable : Any]#>)
  1. Calling the endTimedEvent method will end the timer of the specific event.
Obj-C
  1. [APEvent endTimedEvent:<#(NSString * _Nonnull)#> withGroup:<#(NSString * _Nonnull)#>]
Swift
  1. APEvent.endTimedEvent(<#T##eventName: String##String#>, withGroup: <#T##String#>)

Use events as objc enums

  1. Call APEvent.trackEvent(withType: <#T##APEventType#>) to use events as objc enums.
The post-install script will create*AppticsExtension.{h,m,swift} and add the file to your project. You will have to import the class file to use the enum.

    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








                                    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

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

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

                                                                                                      • In-app Ratings for Apple apps

                                                                                                        In-app Ratings module helps improve app rating by allowing you to customize the appropriate location and time for prompting users to rate your application. Refer to the user guide to configure in-app ratings in the Apptics web console. Installation ...
                                                                                                      • In-app Updates for Apple apps

                                                                                                        In-app update is a separate library from Apptics and is used to show new version available alerts in Apple apps as per the configuration done in the Apptics web console. Refer to the user guide to do the configuration in the web console. There are ...
                                                                                                      • In-app Events for Android apps

                                                                                                        Make sure that you have integrated Apptics in your project, refer to the integration guide. Add the analytics SDK to your app Declare analytics dependency using Apptics BoM. dependencies { // ... // Apptics BoM, latest version is mentioned in the ...
                                                                                                      • In-app Feedback for Apple apps

                                                                                                        In-app feedback allows you to include feedback, attach and annotate images/screenshots, include logs and diagnostics, and report a bug. Before you start integrating In-app Feedback, make sure that you have already integrated Apptics with your app. ...
                                                                                                      • In-app Events for Windows apps

                                                                                                        Configure the Events in the Apptics web console, refer to the user guide. Do the mentioned steps to add AppticsInterface.cs class with configured events and APIs. Add a class file named "AppticsInterface.cs" in project root. Keep AppticsCommand.exe ...
                                                                                                        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