We have provided a list of Events with their example usage that can be integrated for Social Applications. Please find them below:

1. Paid Subscription Deactivated Event

This is used to track when the User has unsubscribed from any of the services of the Social Application.
You will need to call the below method to track the Subscription Deactivated event in your Application.

trackPaidSubscriptionDeactivated: 
function(userID,pageName,latitude,longitude)

  • Mandatory parameters (Paid Subscription Deactivated):                          
    • User Id -Unique User Identifier
  • Optional parameters (Product):                         
    • Page Name -Page that triggered the Event
    • Location  - Geolocation of the Event

Sample Code

<script>
function trackPaidSubscriptionDeactivated(){
mtractiontracker.trackPaidSubscriptionDeactivated(“123”,”My Account”,35.01,70.01);
}</script>

2. Profile Updated Event

This is used to track the event triggered when the user has updated his profile information on the Application.
You will need to call the below method to track the Profile Updation event in your Application.

function(userID,category,pageName,latitude,longitude)

  • Mandatory parameters (Profile Updated):                           
    • User Id - Unique User Identifier
    • Category -Category/Section of the profile update
  • Optional parameters (Profile Updated):                           
    • Page Name - Page that triggered the Event
    • Location - Geolocation of the Event

Sample Code

<script>

function trackProfileUpdated(){
mtractiontracker.trackProfileUpdated(“123”,”Personal Section”,”My Profile”,35.01,70.01);

}</script>



3. Friends Added Event

This is used to track the event triggered when the user has added a new friend to his list on the Application.
You will need to call the below method to track the Friends added event in your Application.

trackFriendsAdded: 
function(userID,description,age,pageName,latitude,longitude,gender)

  • Mandatory parameters (Friends Added):                           
    • User Id - Unique User Identifier
  • Optional parameters (Friends Added):                          
    • Gender- MALE or FEMALE based on the sex of the person, being added as a friend
    • Age - Age of the person being added
    • Pagename - Page that triggered the Event
    • Location - Geolocation of the Event
    • Description - Event Description

Sample Code

<script>
function trackFriendsAdded(){
mtractiontracker.trackFriendsAdded(“123”,Friend request sent to id: 567”,27,”Recommended Friends”,35.01,70.01,”MALE”);
}</script>

4. Chatted Event

This is used to track the private or group chat event initiated by the user to other user(s) on the Application.
You will need to call the below method to track the Chatted event in your Application.

trackChatted: 
function(userIDFrom,userIDTo,pageName,latitude,longitude,chatType)

  • Mandatory parameters (Chatted):                           
    • User Id From - Unique Identifier of the User who initiated the Chat
    • User Id To  - Unique Identifier of the User who received the Chat
  • Optional parameters (Chatted):                           
    • Chat Type -  DIRECT_CHAT or GROUP_CHAT
    • Page Name - Page that triggered the Event
    • Location - Geolocation of the Event

Sample Code

<script>
function trackChatted(){
mtractiontracker.trackChatted(“123”,”567”,”Private Chat”,35.01,70.01,”GROUP_CHAT”);
}</script>

5. New Group Created Event

This is used to track the event triggered when an user has created a group in your Application.
You will need to call the below method to track the Group Created event in your Application.

trackNewGroupCreated: 
function(userID,pageName,quantity,latitude,longitude)

  • Mandatory parameters (New Group Created):                           
    • User Id - Unique User Identifier
  • Optional parameters (New Group Created):                           
    • Quantity - Size of the Group created
    • Page Name - Page that triggered the Event
    • Location - Geolocation of the Event

Sample Code

<script>

function trackNewGroupCreated(){
mtractiontracker.trackNewGroupCreated(“123”,”Create group”,50,35.01,70.01);

}</script>

6. Call Placed Event

This is used to track the call event initiated by an user to another user on the Application.
You will need to call the below method to track the Call Placed event in your Application.

trackCallPlaced: 
function(userIDFrom,userIDTo,pageName,latitude,longitude)
  • Mandatory parameters (Call Placed Item):                           
    • User Id From - Unique Identifier of the User who initiated the Call
    • User Id To - Unique Identifier of the User who received the Call
  • Optional parameters (Call Placed Item):                           
    • Pagename - Page that triggered the Event
    • Location - Geolocation of the Event

Sample Code

<script>

function trackCallPlaced(){
mtractiontracker.trackCallPlaced(“123456789”,”87654321”,”Contact List”,35.01,70.01);

}</script>

7.Add to playlist Event

This is used to track the playlist initiated by an user on the Application.
You will need to call the below method to track the Add To Playlist event in your Application.

trackAddToPlaylist: 
function(playListName,identifier,pageName,latitude,longitude,playListItems)


  • Mandatory parameters (Add to playlist):                           
    • Playlist Name - Unique User Playlist Name.
    • Identifier  -Unique Identifier of the playlist.
    • ProductItemList  - Item list of product.
  • Optional parameters (Add to playlist):                           
    • Pagename - Page that triggered the Event
    • Location - Geolocation of the Event

AddToPlaylist Item List’s Pre-defined parameters for tracking product data on our system

  • Mandatory parameters (Add to playlist):                           
    • Product Name - Name of the Social Product
    • Identifier  -Unique Identifier of the playlist.
  • Optional parameters (Add to playlist):                           
    • Brand - Brand Name of the Product
    • Artist  - Artist of playlist
    • Category  - Product Category

// Sample - Adding the product to the AddToPlaylist List

<script>
var playListItems=[ ];
var values = {
              "PRODUCT_NAME": "MI",
              "IDENTIFIER_PLAYLIST": "12345",
              "BRAND": "Movie",
              "CATEGORY": "Hollywood",
              "ARTIST": "Tom"
              }
var addProduct=JSON.stringify(values);
playListItems.push(addProduct);
</script>

// Sample - Add to playlist event tracking

<script>

// Calling trackAddToPlaylist Method...
  mtractiontracker.trackAddToPlaylist( "MyFavPlaylist", "12345", "Search Movie", "latitude","longitude",playlistItem);}

</script>