forked from organicmaps/organicmaps
Added new values for Utm
This commit is contained in:
parent
ab0a7d8436
commit
5b411f8133
2 changed files with 12 additions and 0 deletions
|
@ -24,6 +24,8 @@ public class UTM
|
|||
public static final int UTM_TIPS_AND_TRICKS = 7;
|
||||
public static final int UTM_BOOKING_PROMO = 8;
|
||||
public static final int UTM_CROWN_BUTTON = 9;
|
||||
public static final int UTM_DISCOVER_CATALOG_ONBOARDING = 10;
|
||||
public static final int UTM_FREE_SAMPLES_ONBOADING = 11;
|
||||
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef({ UTM_CONTENT_DESCRIPTION, UTM_CONTENT_VIEW, UTM_CONTENT_DETAILS, UTM_CONTENT_MORE })
|
||||
|
|
|
@ -17,6 +17,8 @@ enum class UTM : uint8_t
|
|||
TipsAndTricks,
|
||||
BookingPromo,
|
||||
CrownButton,
|
||||
DiscoverCatalogOnboarding,
|
||||
FreeSamplesOnboading
|
||||
};
|
||||
|
||||
enum class UTMContent : uint8_t
|
||||
|
@ -72,6 +74,14 @@ inline std::string InjectUTM(std::string const & url, UTM utm)
|
|||
params.emplace_back("utm_medium", "button");
|
||||
params.emplace_back("utm_campaign", "map_sponsored_button");
|
||||
break;
|
||||
case UTM::DiscoverCatalogOnboarding:
|
||||
params.emplace_back("utm_medium", "onboarding_button");
|
||||
params.emplace_back("utm_campaign", "catalog_discovery");
|
||||
break;
|
||||
case UTM::FreeSamplesOnboading:
|
||||
params.emplace_back("utm_medium", "onboarding_button");
|
||||
params.emplace_back("utm_campaign", "sample_discovery");
|
||||
break;
|
||||
case UTM::None:
|
||||
return url;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue