Android - In App Search

If there is a search function available in your mobile app, use the following method to send search data: 

  1. Create a HashMap<String, String>.

  2. Add the OM.oss parameter to HashMap which defines a search event.

  3. Call the customEvent function.

HashMap<String, String> parameters= new HashMap<String, String>();
parameters.put("OM.OSS","Search Keyword");
parameters.put("OM.OSSR","Number of search results");
parameters.put("OM.exVisitorID","memberID/userID");
parameters.put("OM.sys.TokenID","Token ID to use for push messages");
parameters.put("OM.sys.AppID","App ID to use for push messages");
Visilabs.CallAPI().customEvent("In App Search", parameters);

You need to replace Search Keyword with the user’s actual search phrase.

Do not forget to use a universaID/customerID as the userID which you also share with other parties such as your ESP. If you are using a GSM number or an email address instead of a userID please send that info as the userID. Make sure that you share the same ID with all other parties.

Parent Topic: Android - MobileTagging

Copyright 2020 Related Digital