AdGyde Logo

Events


Event is a powerful tool to track interaction between user and mobile application.
There are 5 kinds of events, which are
  1. Simple Event
  2. Counting Event
  3. Computing Event
  4. Revenue Event
  5. Unique Event

  6. Following are the steps to add event in AdGyde Dashboard
    This step is mandotory as events will not show on panel incase not added already.
    1. Login to AdGyde Dashboard
    2. Open Setup Page from Left Navigation Menu
    3. Click on Manage Events under Events option
    4. Click on 'Create an Event' button on Top right Corner
    5. Select your Application Name
    6. Enter Event id name which are used at event integration call on app level
    7. Enter Event parameter name which are used at event integration call on app level
      ** For Simple Event parameters is not required.
    8. Select Event type under Type field
    9. Click on 'Create' button


      1. 1. Simple Event
        Simple event is an event without parameters. It can be used to track simple event. For example, if you need to track how many times user Clicked "Registration" button. Just put a line at onClick() function in the activity.

        // Adgyde.ag_SimpleEvent(eventId: String#String#)

        Adgyde.ag_SimpleEvent("Registration")
        //event_name should be exactly same as event created in Adgyde panel

        Simple event can be used to construct funnel, the details for same can be found under funnel section.

        For more complicated event tracking - Counting Event or Computing Event should be considered.

        2. Counting Event
        Counting Event is useful to track event which needs counting. For example, if we are developing a news application. This application has three categories, which are local news, national news and international news. We need to know which category is the most popular, just implement the following code on click listener.

        // Adgyde.ag_CountingEvent( paramValue: <#String#>))

        /**
        * Being triggered if "Local News" tab clicked.
        */
        public void func LocalNews() {
        let parameters = [
        //First parameter is params_name which same as created on adgyde dashboard , second is value name which will be accumulated.
        ["name": " category", "value": "LocalNews"]
        ]
        // First parameter is event_id which same as created on adgyde dashboard , secons is pass parameters value
        Adgyde.ag_CountingEvent("selected_category", parameters: parameters)
        }

        /**
        * Being triggered if "National News" tab clicked.
        */
        public void func NationalNews() {
        let parameters = [
        ["name": " category", "value": " NationalNews "]
        ]
        Adgyde.ag_CountingEvent("selected_category", parameters: parameters)
        }

        /**
        * Being triggered if "International News" tab clicked.
        */
        public void func InternationalNews() {
        let parameters = [
        ["name": " category", "value": " InternationalNews "]
        ]
        Adgyde.ag_CountingEvent("selected_category", parameters: parameters)
        }


        As the events are different and AdGyde Server needs to differentiate that the event is counting event, therefore events need to be added in Dashboard with specified type.

        Following are the steps to add counting event in Dashboard
        1. Login to AdGyde Dashboard
        2. Open Setup Page from Left Navigation Menu
        3. Click on Manage Events under Events option
        4. Click on 'Create an Event' button on Top right Corner
        5. Select your Application Name
        6. Select 'Counting' under Type field
        7. Enter event_id as 'selected_category', this should be same as first parameter of Adgyde.ag_CountingEvent( paramValue: <#String#>))
        8. Enter 'category' on parameter_name field
        9. Click on 'Create' button



        3. Computing Event
        Computing Event can be used to track accumulative values.

        E.g. If we put our banner in application with different Weightage or say Cost, then using the computing event we can know the Contribution of each Banner as per weightage assigned.

        // Adgyde().ag_ComputingEvent(, paramName: <#String#>, paramValue: <#String#>, paramWeightage: <#String#>)

        /**
        ** “Offer” is class name where functions getname() and getprice() are defined
        */
        public void func OfferCliked(offer : Offer) {
        // First parameter is event_id, same as created on adgyde dashboard
        // Second parameter is params_name which is also same as created on adgyde dashboard
        // Third parameter is value name which is like sub-event shown in Console.
        // Fourth parameter is the value / weightage for the value name / sub-event. Value must be integer type.

        Adgyde.ag_ComputingEvent("offers ", paramName: "offers_list", paramValue: "offer:getname()", paramWeightage: "offer:getprice")
        }

        Computing event uses 2 parameters. First parameter defines event id say 'offerslist' and parameter which will be accumulated. Second parameter defines parameter value. For example, application placed 2 banners. First for a 'Special Offer', with Product of ₹6. Second is 'Exclusive Offer', with Product of ₹55. 'Special Offer' clicked 39 times, 'Exclusive Offer' clicked 4 times. Accumulated value is 'Special Offer' = ₹6 * 39 = ₹234, 'Exclusive Offer' = ₹55 * 4 = ₹210.



        4. Revenue Event
        There is a separate Revenue event which should and can be used for keeping track of revenue generated through the application. Revenue shown in the Dashboard is also based on this event only.

        // Adgyde().ag_RevenueEvent(<#amount: Int#Int#>)

        Adgyde.ag_RevenueEvent(100)

        5. Unique Event
        Unique Event is useful to track events which need unique counting in a specific time period. For example, if we develop a news application. This application has three categories, which are local news, national news and international news.

        AdGyde provides Unique Events in three types
        1. onDailyUnique
        2. onPermanentUnique
        3. onCustomUnique

        The 3 Types of Unique events can be used for different requirements
        1. To know how many unique users complete the Game Stage in each date, onDailyUnique should be used
        2. To know how many unique users complete the Game Stage in user lifetime, onPermanentUnique should be used
        3. To know how many unique users complete the Game Stage in 24 Hours, onCustomUnique should be used

        For the unique event following code needs to be implemented

        /**
        * Daily Unique event allows to keep an event unique for current date
        * When user completes Game Stage
        */
        // Adgyde().ag_DailyUniqueEvent(<#eventId: String#String#>, paramName: <#String#>, paramValue: <#String#>)

        public void func onGameStageCompleted () {
        // First parameter is event_id which same as created on adgyde dashboard
        // Second parameter is event params_name which same as created on adgyde dashboard
        // Third parameter is value name which will be accumulated.
        Adgyde.ag_DailyUniqueEvent("gamelevelcomplete ", paramName: " level ", paramValue: " level_1")
        }


        /**
        * Permanent Unique event allows to keep an event unique for user lifetime
        */
        // Adgyde().ag_ParmanentUniqueEvent(<#eventId: String#String#>, paramName: <#String#>, paramValue: <#String#>)

        public void func onGameStageCompletedUnique() {
        // First parameter is event_id which same as created on adgyde dashboard
        // Second parameter is event params_name which same as created on adgyde dashboard
        // Third parameter is value name which will be accumulated.
        Adgyde.ag_PermanentUniqueEvent("gamelevelcomplete ", paramName: " level ", paramValue: " level_1")
        }


        /**
        * Custom Unique event allows to keep an event unique for user defined time (hours)
        */
        // Adgyde().ag_ CustomUniqueEvent(<#eventId: String#String#>, paramName: <#String#>, paramValue: <#String#> , interval : Intvalue )

        public void func onCategoryInternationalNewsClicked() {
        // First parameter is event_id which same as created on adgyde dashboard
        // Second parameter is event params_name which same as created on adgyde dashboard
        // Third parameter is value name which will be accumulated.
        // Fourth parameter (120) specifies that the Event will not be counted again before 120 second
        Adgyde.ag_CustomUniqueEvent("gamelevelcomplete ", paramName: " level ", paramValue: " level_1", interval: 120)
        }



        As the events are different and AdGyde Server needs to differentiate that the event is unique event, therefore events need to be added in Dashboard with specified type.

        Please follow instructions below to create unique event
        1. Login to AdGyde Dashboard
        2. Open Setup Page from Left Navigation Menu
        3. Click on Manage Events under Events option
        4. Click on 'Create an Event' button on Top right Corner
        5. Select your Application Name
        6. Select 'Unique' under Type field
        7. Enter event_id as 'gamelevelcomplete', this should be same as first parameter of Adgyde().ag_DailyUniqueEvent(<#eventId: String#String#>, paramName: <#String#>, paramValue: <#String#>)
          ag_PermanentUniqueEvent
          ag_CustomUniqueEvent
        8. Enter 'level' on parameter_name field
        9. Click on 'Create' button

This website uses cookies in order to improve your experience and our services. By continuing to use our website, agree to the use of such cookies. Click here for Privacy Policy.