MFilterIt
  • mFilterIt - Eliminating Ad Fraud
  • mFilterIt SDK
    • mFilterIt SDK
    • mFilterIt Android SDK
    • mFilterIt React-Native Integration
    • mFilterIt iOS SDK
    • mFilterIt Uninstall Tracking
    • mFilterIt Event Tracking
    • mFilterIt iOS EventTracking
  • API Integrations
    • mFilterIt Data Collection API
    • mFilterIt Reporting API
    • mFilterIt Referer Data Collection API
    • mFilterIt Referer Status API
  • Integrating Data Sources
    • Adjust S3 Data Export Configuration
Powered by GitBook
On this page
  • Getting Started
  • Event Tracking Integration
  1. mFilterIt SDK

mFilterIt iOS EventTracking

This guide details the steps to integrate the MFilterIt Event tracking into an iOS App.

Getting Started

Integrating the mFilterIt Event Tracking solution into an app includes framework integration and sharing event details with the framework.

Event Tracking Integration

The integration of this feature can be done by following below steps:

Step 1 : Integrate the mFilterIt iOS framework.

Step 2 : Pass event details using this method:

[[MFAnalytics sharedAnalytics] track:EventType

                              properties:eventArray];

Parameter

Description

eventArray

A JSON string that captures the array of events to be sent.

For example the below string sends two events called event1 and event2, with values value1 and value2

@{ @"event1": @"value1", @"event2": @"value2" }

eventType

String which can have event-types as, for example: ReferralEvent

Example :

[[MFAnalytics sharedAnalytics] track:@"ReferralEvent"

                              properties:{ @"event1": @"value1", @"event2": @"value2" }];

Note: For following events, one should follow an specific convention:

ReferralEvent: This event is meant for realtime fraud detection and removal of bad traffic for referral events. eventType should be written as- ReferralEvent. s2s event will be triggered for fraud information to be sent on configured url.

S2S integration for passing fraud information:

mFilterIt supports a real time interface for passing fraud information back to the client’s backend to allow quick decision making for business aspects. The interface supported is a HTTPS GET URL which triggers the Client endpoint with the relevant information.

The fields supported are : -Fraud Category -Fraud Risk Score -Event TransactionID -Device_Id -Phone Number -Email ID -mfilterIt Event ID -Registration ID -Optional_1

The client needs to provide the endpoint on which mFilterIt will trigger the S2S hit. It is recommended to whitelist certain IP ranges of mFilterIt to prevent malicious hits to this endpoint.

Step 4 : The below import statement needs to be added to the corresponding files (if needed).

#import <Mfilterit/Mfilterit.h>

PreviousmFilterIt Event TrackingNextmFilterIt Data Collection API

Last updated 5 years ago