We have provided an Event with example that can be integrated for Applications that belong to the Healthcare Vertical. Please find them below:

1.Purchase Service Event

This is used to track the services purchased by the user which are offered in the application.(After User Successfully completed payment of the service offered.)

Note: Please ensure to include the MTraction header file (as shown below) in the class of your project from where the in App event methods have to be invoked.
#import <mTraction/MTraction.h>

You will need to call the below method to track the In-App Purchase Service event in your Application.

[[MTraction mTractionManager] trackPurchaseService:purchaseService];
-(void)trackPurchaseService:(PurchaseService*) purchaseService;


  • Mandatory parameters (Purchase Service):                                         
    • User Id - Unique User Identifier
    • Service Type-Service Type applied for the Purchase Service
    • Payment mode-CREDIT_CARD or DEBIT_CARD or NET_BANKING or GIFT_CARD or PAYMENT_WALLET
    • Revenue- Total Revenue generated from this Purchase Service event
    • Transaction Id  - Unique Purchase Service Transaction Identifier
    • Locale - Currency code is used for this event.
      NOTE: For passing custom currency code, Follow the sample below: 
      // For Custom Currency Code
      NSLocale *currencyCode = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] ;
  • Optional parameters (Purchase Service):                       
    • Provider Id - Unique Provider Identifier
    • Provider Name -Name of the Provider
    • Page Name - Page that triggered the Event
    • Location - Geolocation of the Event
    • Date - Purchase Booking date

Sample Code

// Example Longitude & Latitude code (Long / Lat is optional)


LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); 
Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);


// Example Purchase Service Constructor Call with the mandatory parameters


PurchaseService purchaseService=new PurchaseService("101","RoutineCheckup",2.9f,"21",PurchaseService.PaymentMode.DEBIT_CARD,Locale.getDefault());
purchaseService.setPageName("Purchase Service");
purchaseService.setProviderId("21");
purchaseService.setProviderName("DoctorInsta");
purchaseService.setLocation(13.0380483, 80.1908878);
purchaseService.setDateTo(Date bookDate);


// Examples for other parameters passed for the Purchase Service Class (These are optional)


purchaseService.setPageName("Purchase Service")
               .setProviderId("21");
               .setProviderName("DoctorInsta");
               .setLocation(location.getLatitude(), location.getLongitude());
               .setDateTo(Date bookDate);


// trackPurchaseService method call


MTractionEventTracker.trackPurchaseService(context,purchaseService);