forked from organicmaps/organicmaps
[android] Added statistic to 'search similar' button
This commit is contained in:
parent
972acda942
commit
9322369bab
2 changed files with 8 additions and 1 deletions
|
@ -1908,6 +1908,11 @@ public class PlacePageView extends RelativeLayout
|
|||
mMapObject.getPriceRate(),
|
||||
mMapObject.getHotelType());
|
||||
getActivity().onSearchSimilarHotels(filter);
|
||||
String provider = mSponsored != null && mSponsored.getType() == Sponsored.TYPE_BOOKING
|
||||
? Statistics.ParamValue.BOOKING_COM : Statistics.ParamValue.OSM;
|
||||
Statistics.INSTANCE.trackEvent(Statistics.EventName.PP_HOTEL_SEARCH_SIMILAR,
|
||||
Statistics.params().add(Statistics.EventParam.PROVIDER,
|
||||
provider));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,6 +195,7 @@ public enum Statistics
|
|||
public static final String PP_HOTEL_REVIEWS_LAND = "PlacePage_Hotel_Reviews_land";
|
||||
public static final String PP_HOTEL_DESCRIPTION_LAND = "PlacePage_Hotel_Description_land";
|
||||
public static final String PP_HOTEL_FACILITIES = "PlacePage_Hotel_Facilities_open";
|
||||
public static final String PP_HOTEL_SEARCH_SIMILAR = "Placepage_Hotel_search_similar";
|
||||
static final String PP_OWNERSHIP_BUTTON_CLICK = "Placepage_OwnershipButton_click";
|
||||
|
||||
// toolbar actions
|
||||
|
@ -339,7 +340,7 @@ public enum Statistics
|
|||
public static final String ERR_MSG = "error_message";
|
||||
public static final String OSM = "OSM";
|
||||
public static final String FACEBOOK = "Facebook";
|
||||
static final String PROVIDER = "provider";
|
||||
public static final String PROVIDER = "provider";
|
||||
public static final String HOTEL = "hotel";
|
||||
static final String HOTEL_LAT = "hotel_lat";
|
||||
static final String HOTEL_LON = "hotel_lon";
|
||||
|
@ -376,6 +377,7 @@ public enum Statistics
|
|||
public static class ParamValue
|
||||
{
|
||||
public static final String BOOKING_COM = "Booking.Com";
|
||||
public static final String OSM = "OSM";
|
||||
static final String SEARCH_BOOKING_COM = "Search.Booking.Com";
|
||||
static final String OPENTABLE = "OpenTable";
|
||||
static final String VIATOR = "Viator.Com";
|
||||
|
|
Loading…
Add table
Reference in a new issue