FIRParameterNames.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. /// @file FIRParameterNames.h
  2. ///
  3. /// Predefined event parameter names.
  4. ///
  5. /// Params supply information that contextualize Events. You can associate up to 25 unique Params
  6. /// with each Event type. Some Params are suggested below for certain common Events, but you are
  7. /// not limited to these. You may supply extra Params for suggested Events or custom Params for
  8. /// Custom events. Param names can be up to 40 characters long, may only contain alphanumeric
  9. /// characters and underscores ("_"), and must start with an alphabetic character. Param values can
  10. /// be up to 100 characters long. The "firebase_", "google_", and "ga_" prefixes are reserved and
  11. /// should not be used.
  12. #import <Foundation/Foundation.h>
  13. /// Game achievement ID (NSString).
  14. /// <pre>
  15. /// NSDictionary *params = @{
  16. /// kFIRParameterAchievementID : @"10_matches_won",
  17. /// // ...
  18. /// };
  19. /// </pre>
  20. static NSString *const kFIRParameterAchievementID NS_SWIFT_NAME(AnalyticsParameterAchievementID) =
  21. @"achievement_id";
  22. /// Ad Network Click ID (NSString). Used for network-specific click IDs which vary in format.
  23. /// <pre>
  24. /// NSDictionary *params = @{
  25. /// kFIRParameterAdNetworkClickID : @"1234567",
  26. /// // ...
  27. /// };
  28. /// </pre>
  29. static NSString *const kFIRParameterAdNetworkClickID
  30. NS_SWIFT_NAME(AnalyticsParameterAdNetworkClickID) = @"aclid";
  31. /// A product affiliation to designate a supplying company or brick and mortar store location
  32. /// (NSString). <pre>
  33. /// NSDictionary *params = @{
  34. /// kFIRParameterAffiliation : @"Google Store",
  35. /// // ...
  36. /// };
  37. /// </pre>
  38. static NSString *const kFIRParameterAffiliation NS_SWIFT_NAME(AnalyticsParameterAffiliation) =
  39. @"affiliation";
  40. /// The individual campaign name, slogan, promo code, etc. Some networks have pre-defined macro to
  41. /// capture campaign information, otherwise can be populated by developer. Highly Recommended
  42. /// (NSString).
  43. /// <pre>
  44. /// NSDictionary *params = @{
  45. /// kFIRParameterCampaign : @"winter_promotion",
  46. /// // ...
  47. /// };
  48. /// </pre>
  49. static NSString *const kFIRParameterCampaign NS_SWIFT_NAME(AnalyticsParameterCampaign) =
  50. @"campaign";
  51. /// Character used in game (NSString).
  52. /// <pre>
  53. /// NSDictionary *params = @{
  54. /// kFIRParameterCharacter : @"beat_boss",
  55. /// // ...
  56. /// };
  57. /// </pre>
  58. static NSString *const kFIRParameterCharacter NS_SWIFT_NAME(AnalyticsParameterCharacter) =
  59. @"character";
  60. /// The checkout step (1..N) (unsigned 64-bit integer as NSNumber).
  61. /// <pre>
  62. /// NSDictionary *params = @{
  63. /// kFIRParameterCheckoutStep : @"1",
  64. /// // ...
  65. /// };
  66. /// </pre>
  67. /// <b>This constant has been deprecated.</b>
  68. static NSString *const kFIRParameterCheckoutStep NS_SWIFT_NAME(AnalyticsParameterCheckoutStep) =
  69. @"checkout_step";
  70. /// Some option on a step in an ecommerce flow (NSString).
  71. /// <pre>
  72. /// NSDictionary *params = @{
  73. /// kFIRParameterCheckoutOption : @"Visa",
  74. /// // ...
  75. /// };
  76. /// </pre>
  77. /// <b>This constant has been deprecated.</b>
  78. static NSString *const kFIRParameterCheckoutOption
  79. NS_SWIFT_NAME(AnalyticsParameterCheckoutOption) = @"checkout_option";
  80. /// Campaign content (NSString).
  81. static NSString *const kFIRParameterContent NS_SWIFT_NAME(AnalyticsParameterContent) = @"content";
  82. /// Type of content selected (NSString).
  83. /// <pre>
  84. /// NSDictionary *params = @{
  85. /// kFIRParameterContentType : @"news article",
  86. /// // ...
  87. /// };
  88. /// </pre>
  89. static NSString *const kFIRParameterContentType NS_SWIFT_NAME(AnalyticsParameterContentType) =
  90. @"content_type";
  91. /// Coupon code used for a purchase (NSString).
  92. /// <pre>
  93. /// NSDictionary *params = @{
  94. /// kFIRParameterCoupon : @"SUMMER_FUN",
  95. /// // ...
  96. /// };
  97. /// </pre>
  98. static NSString *const kFIRParameterCoupon NS_SWIFT_NAME(AnalyticsParameterCoupon) = @"coupon";
  99. /// Campaign custom parameter (NSString). Used as a method of capturing custom data in a campaign.
  100. /// Use varies by network.
  101. /// <pre>
  102. /// NSDictionary *params = @{
  103. /// kFIRParameterCP1 : @"custom_data",
  104. /// // ...
  105. /// };
  106. /// </pre>
  107. static NSString *const kFIRParameterCP1 NS_SWIFT_NAME(AnalyticsParameterCP1) = @"cp1";
  108. /// The name of a creative used in a promotional spot (NSString).
  109. /// <pre>
  110. /// NSDictionary *params = @{
  111. /// kFIRParameterCreativeName : @"Summer Sale",
  112. /// // ...
  113. /// };
  114. /// </pre>
  115. static NSString *const kFIRParameterCreativeName NS_SWIFT_NAME(AnalyticsParameterCreativeName) =
  116. @"creative_name";
  117. /// The name of a creative slot (NSString).
  118. /// <pre>
  119. /// NSDictionary *params = @{
  120. /// kFIRParameterCreativeSlot : @"summer_banner2",
  121. /// // ...
  122. /// };
  123. /// </pre>
  124. static NSString *const kFIRParameterCreativeSlot NS_SWIFT_NAME(AnalyticsParameterCreativeSlot) =
  125. @"creative_slot";
  126. /// Currency of the purchase or items associated with the event, in 3-letter
  127. /// <a href="http://en.wikipedia.org/wiki/ISO_4217#Active_codes"> ISO_4217</a> format (NSString).
  128. /// <pre>
  129. /// NSDictionary *params = @{
  130. /// kFIRParameterCurrency : @"USD",
  131. /// // ...
  132. /// };
  133. /// </pre>
  134. static NSString *const kFIRParameterCurrency NS_SWIFT_NAME(AnalyticsParameterCurrency) =
  135. @"currency";
  136. /// Flight or Travel destination (NSString).
  137. /// <pre>
  138. /// NSDictionary *params = @{
  139. /// kFIRParameterDestination : @"Mountain View, CA",
  140. /// // ...
  141. /// };
  142. /// </pre>
  143. static NSString *const kFIRParameterDestination NS_SWIFT_NAME(AnalyticsParameterDestination) =
  144. @"destination";
  145. /// The arrival date, check-out date or rental end date for the item. This should be in
  146. /// YYYY-MM-DD format (NSString).
  147. /// <pre>
  148. /// NSDictionary *params = @{
  149. /// kFIRParameterEndDate : @"2015-09-14",
  150. /// // ...
  151. /// };
  152. /// </pre>
  153. static NSString *const kFIRParameterEndDate NS_SWIFT_NAME(AnalyticsParameterEndDate) = @"end_date";
  154. /// Flight number for travel events (NSString).
  155. /// <pre>
  156. /// NSDictionary *params = @{
  157. /// kFIRParameterFlightNumber : @"ZZ800",
  158. /// // ...
  159. /// };
  160. /// </pre>
  161. static NSString *const kFIRParameterFlightNumber NS_SWIFT_NAME(AnalyticsParameterFlightNumber) =
  162. @"flight_number";
  163. /// Group/clan/guild ID (NSString).
  164. /// <pre>
  165. /// NSDictionary *params = @{
  166. /// kFIRParameterGroupID : @"g1",
  167. /// // ...
  168. /// };
  169. /// </pre>
  170. static NSString *const kFIRParameterGroupID NS_SWIFT_NAME(AnalyticsParameterGroupID) = @"group_id";
  171. /// The index of the item in a list (signed 64-bit integer as NSNumber).
  172. /// <pre>
  173. /// NSDictionary *params = @{
  174. /// kFIRParameterIndex : @(5),
  175. /// // ...
  176. /// };
  177. /// </pre>
  178. static NSString *const kFIRParameterIndex NS_SWIFT_NAME(AnalyticsParameterIndex) = @"index";
  179. /// Item brand (NSString).
  180. /// <pre>
  181. /// NSDictionary *params = @{
  182. /// kFIRParameterItemBrand : @"Google",
  183. /// // ...
  184. /// };
  185. /// </pre>
  186. static NSString *const kFIRParameterItemBrand NS_SWIFT_NAME(AnalyticsParameterItemBrand) =
  187. @"item_brand";
  188. /// Item category (context-specific) (NSString).
  189. /// <pre>
  190. /// NSDictionary *params = @{
  191. /// kFIRParameterItemCategory : @"pants",
  192. /// // ...
  193. /// };
  194. /// </pre>
  195. static NSString *const kFIRParameterItemCategory NS_SWIFT_NAME(AnalyticsParameterItemCategory) =
  196. @"item_category";
  197. /// Item ID (context-specific) (NSString).
  198. /// <pre>
  199. /// NSDictionary *params = @{
  200. /// kFIRParameterItemID : @"SKU_12345",
  201. /// // ...
  202. /// };
  203. /// </pre>
  204. static NSString *const kFIRParameterItemID NS_SWIFT_NAME(AnalyticsParameterItemID) = @"item_id";
  205. /// The Google <a href="https://developers.google.com/places/place-id">Place ID</a> (NSString) that
  206. /// corresponds to the associated item. Alternatively, you can supply your own custom Location ID.
  207. /// <pre>
  208. /// NSDictionary *params = @{
  209. /// kFIRParameterItemLocationID : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
  210. /// // ...
  211. /// };
  212. /// </pre>
  213. /// <b>This constant has been deprecated. Use @c kFIRParameterLocationID constant instead.</b>
  214. static NSString *const kFIRParameterItemLocationID
  215. NS_SWIFT_NAME(AnalyticsParameterItemLocationID) = @"item_location_id";
  216. /// Item Name (context-specific) (NSString).
  217. /// <pre>
  218. /// NSDictionary *params = @{
  219. /// kFIRParameterItemName : @"jeggings",
  220. /// // ...
  221. /// };
  222. /// </pre>
  223. static NSString *const kFIRParameterItemName NS_SWIFT_NAME(AnalyticsParameterItemName) =
  224. @"item_name";
  225. /// The list in which the item was presented to the user (NSString).
  226. /// <pre>
  227. /// NSDictionary *params = @{
  228. /// kFIRParameterItemList : @"Search Results",
  229. /// // ...
  230. /// };
  231. /// </pre>
  232. /// <b>This constant has been deprecated. Use @c kFIRParameterItemListName constant instead.</b>
  233. static NSString *const kFIRParameterItemList NS_SWIFT_NAME(AnalyticsParameterItemList) =
  234. @"item_list";
  235. /// Item variant (NSString).
  236. /// <pre>
  237. /// NSDictionary *params = @{
  238. /// kFIRParameterItemVariant : @"Black",
  239. /// // ...
  240. /// };
  241. /// </pre>
  242. static NSString *const kFIRParameterItemVariant NS_SWIFT_NAME(AnalyticsParameterItemVariant) =
  243. @"item_variant";
  244. /// Level in game (signed 64-bit integer as NSNumber).
  245. /// <pre>
  246. /// NSDictionary *params = @{
  247. /// kFIRParameterLevel : @(42),
  248. /// // ...
  249. /// };
  250. /// </pre>
  251. static NSString *const kFIRParameterLevel NS_SWIFT_NAME(AnalyticsParameterLevel) = @"level";
  252. /// Location (NSString). The Google <a href="https://developers.google.com/places/place-id">Place ID
  253. /// </a> that corresponds to the associated event. Alternatively, you can supply your own custom
  254. /// Location ID.
  255. /// <pre>
  256. /// NSDictionary *params = @{
  257. /// kFIRParameterLocation : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
  258. /// // ...
  259. /// };
  260. /// </pre>
  261. static NSString *const kFIRParameterLocation NS_SWIFT_NAME(AnalyticsParameterLocation) =
  262. @"location";
  263. /// The advertising or marketing medium, for example: cpc, banner, email, push. Highly recommended
  264. /// (NSString).
  265. /// <pre>
  266. /// NSDictionary *params = @{
  267. /// kFIRParameterMedium : @"email",
  268. /// // ...
  269. /// };
  270. /// </pre>
  271. static NSString *const kFIRParameterMedium NS_SWIFT_NAME(AnalyticsParameterMedium) = @"medium";
  272. /// Number of nights staying at hotel (signed 64-bit integer as NSNumber).
  273. /// <pre>
  274. /// NSDictionary *params = @{
  275. /// kFIRParameterNumberOfNights : @(3),
  276. /// // ...
  277. /// };
  278. /// </pre>
  279. static NSString *const kFIRParameterNumberOfNights
  280. NS_SWIFT_NAME(AnalyticsParameterNumberOfNights) = @"number_of_nights";
  281. /// Number of passengers traveling (signed 64-bit integer as NSNumber).
  282. /// <pre>
  283. /// NSDictionary *params = @{
  284. /// kFIRParameterNumberOfPassengers : @(11),
  285. /// // ...
  286. /// };
  287. /// </pre>
  288. static NSString *const kFIRParameterNumberOfPassengers
  289. NS_SWIFT_NAME(AnalyticsParameterNumberOfPassengers) = @"number_of_passengers";
  290. /// Number of rooms for travel events (signed 64-bit integer as NSNumber).
  291. /// <pre>
  292. /// NSDictionary *params = @{
  293. /// kFIRParameterNumberOfRooms : @(2),
  294. /// // ...
  295. /// };
  296. /// </pre>
  297. static NSString *const kFIRParameterNumberOfRooms NS_SWIFT_NAME(AnalyticsParameterNumberOfRooms) =
  298. @"number_of_rooms";
  299. /// Flight or Travel origin (NSString).
  300. /// <pre>
  301. /// NSDictionary *params = @{
  302. /// kFIRParameterOrigin : @"Mountain View, CA",
  303. /// // ...
  304. /// };
  305. /// </pre>
  306. static NSString *const kFIRParameterOrigin NS_SWIFT_NAME(AnalyticsParameterOrigin) = @"origin";
  307. /// Purchase price (double as NSNumber).
  308. /// <pre>
  309. /// NSDictionary *params = @{
  310. /// kFIRParameterPrice : @(1.0),
  311. /// kFIRParameterCurrency : @"USD", // e.g. $1.00 USD
  312. /// // ...
  313. /// };
  314. /// </pre>
  315. static NSString *const kFIRParameterPrice NS_SWIFT_NAME(AnalyticsParameterPrice) = @"price";
  316. /// Purchase quantity (signed 64-bit integer as NSNumber).
  317. /// <pre>
  318. /// NSDictionary *params = @{
  319. /// kFIRParameterQuantity : @(1),
  320. /// // ...
  321. /// };
  322. /// </pre>
  323. static NSString *const kFIRParameterQuantity NS_SWIFT_NAME(AnalyticsParameterQuantity) =
  324. @"quantity";
  325. /// Score in game (signed 64-bit integer as NSNumber).
  326. /// <pre>
  327. /// NSDictionary *params = @{
  328. /// kFIRParameterScore : @(4200),
  329. /// // ...
  330. /// };
  331. /// </pre>
  332. static NSString *const kFIRParameterScore NS_SWIFT_NAME(AnalyticsParameterScore) = @"score";
  333. /// Current screen class, such as the class name of the UIViewController, logged with screen_view
  334. /// event and added to every event (NSString). <pre>
  335. /// NSDictionary *params = @{
  336. /// kFIRParameterScreenClass : @"LoginViewController",
  337. /// // ...
  338. /// };
  339. /// </pre>
  340. static NSString *const kFIRParameterScreenClass NS_SWIFT_NAME(AnalyticsParameterScreenClass) =
  341. @"screen_class";
  342. /// Current screen name, such as the name of the UIViewController, logged with screen_view event and
  343. /// added to every event (NSString). <pre>
  344. /// NSDictionary *params = @{
  345. /// kFIRParameterScreenName : @"LoginView",
  346. /// // ...
  347. /// };
  348. /// </pre>
  349. static NSString *const kFIRParameterScreenName NS_SWIFT_NAME(AnalyticsParameterScreenName) =
  350. @"screen_name";
  351. /// The search string/keywords used (NSString).
  352. /// <pre>
  353. /// NSDictionary *params = @{
  354. /// kFIRParameterSearchTerm : @"periodic table",
  355. /// // ...
  356. /// };
  357. /// </pre>
  358. static NSString *const kFIRParameterSearchTerm NS_SWIFT_NAME(AnalyticsParameterSearchTerm) =
  359. @"search_term";
  360. /// Shipping cost associated with a transaction (double as NSNumber).
  361. /// <pre>
  362. /// NSDictionary *params = @{
  363. /// kFIRParameterShipping : @(5.99),
  364. /// kFIRParameterCurrency : @"USD", // e.g. $5.99 USD
  365. /// // ...
  366. /// };
  367. /// </pre>
  368. static NSString *const kFIRParameterShipping NS_SWIFT_NAME(AnalyticsParameterShipping) =
  369. @"shipping";
  370. /// Sign up method (NSString).
  371. /// <pre>
  372. /// NSDictionary *params = @{
  373. /// kFIRParameterSignUpMethod : @"google",
  374. /// // ...
  375. /// };
  376. /// </pre>
  377. ///
  378. /// <b>This constant has been deprecated. Use Method constant instead.</b>
  379. static NSString *const kFIRParameterSignUpMethod NS_SWIFT_NAME(AnalyticsParameterSignUpMethod) =
  380. @"sign_up_method";
  381. /// A particular approach used in an operation; for example, "facebook" or "email" in the context
  382. /// of a sign_up or login event. (NSString).
  383. /// <pre>
  384. /// NSDictionary *params = @{
  385. /// kFIRParameterMethod : @"google",
  386. /// // ...
  387. /// };
  388. /// </pre>
  389. static NSString *const kFIRParameterMethod NS_SWIFT_NAME(AnalyticsParameterMethod) = @"method";
  390. /// The origin of your traffic, such as an Ad network (for example, google) or partner (urban
  391. /// airship). Identify the advertiser, site, publication, etc. that is sending traffic to your
  392. /// property. Highly recommended (NSString).
  393. /// <pre>
  394. /// NSDictionary *params = @{
  395. /// kFIRParameterSource : @"InMobi",
  396. /// // ...
  397. /// };
  398. /// </pre>
  399. static NSString *const kFIRParameterSource NS_SWIFT_NAME(AnalyticsParameterSource) = @"source";
  400. /// The departure date, check-in date or rental start date for the item. This should be in
  401. /// YYYY-MM-DD format (NSString).
  402. /// <pre>
  403. /// NSDictionary *params = @{
  404. /// kFIRParameterStartDate : @"2015-09-14",
  405. /// // ...
  406. /// };
  407. /// </pre>
  408. static NSString *const kFIRParameterStartDate NS_SWIFT_NAME(AnalyticsParameterStartDate) =
  409. @"start_date";
  410. /// Tax cost associated with a transaction (double as NSNumber).
  411. /// <pre>
  412. /// NSDictionary *params = @{
  413. /// kFIRParameterTax : @(2.43),
  414. /// kFIRParameterCurrency : @"USD", // e.g. $2.43 USD
  415. /// // ...
  416. /// };
  417. /// </pre>
  418. static NSString *const kFIRParameterTax NS_SWIFT_NAME(AnalyticsParameterTax) = @"tax";
  419. /// If you're manually tagging keyword campaigns, you should use utm_term to specify the keyword
  420. /// (NSString).
  421. /// <pre>
  422. /// NSDictionary *params = @{
  423. /// kFIRParameterTerm : @"game",
  424. /// // ...
  425. /// };
  426. /// </pre>
  427. static NSString *const kFIRParameterTerm NS_SWIFT_NAME(AnalyticsParameterTerm) = @"term";
  428. /// The unique identifier of a transaction (NSString).
  429. /// <pre>
  430. /// NSDictionary *params = @{
  431. /// kFIRParameterTransactionID : @"T12345",
  432. /// // ...
  433. /// };
  434. /// </pre>
  435. static NSString *const kFIRParameterTransactionID NS_SWIFT_NAME(AnalyticsParameterTransactionID) =
  436. @"transaction_id";
  437. /// Travel class (NSString).
  438. /// <pre>
  439. /// NSDictionary *params = @{
  440. /// kFIRParameterTravelClass : @"business",
  441. /// // ...
  442. /// };
  443. /// </pre>
  444. static NSString *const kFIRParameterTravelClass NS_SWIFT_NAME(AnalyticsParameterTravelClass) =
  445. @"travel_class";
  446. /// A context-specific numeric value which is accumulated automatically for each event type. This is
  447. /// a general purpose parameter that is useful for accumulating a key metric that pertains to an
  448. /// event. Examples include revenue, distance, time and points. Value should be specified as signed
  449. /// 64-bit integer or double as NSNumber. Notes: Values for pre-defined currency-related events
  450. /// (such as @c kFIREventAddToCart) should be supplied using double as NSNumber and must be
  451. /// accompanied by a @c kFIRParameterCurrency parameter. The valid range of accumulated values is
  452. /// [-9,223,372,036,854.77, 9,223,372,036,854.77]. Supplying a non-numeric value, omitting the
  453. /// corresponding @c kFIRParameterCurrency parameter, or supplying an invalid
  454. /// <a href="https://goo.gl/qqX3J2">currency code</a> for conversion events will cause that
  455. /// conversion to be omitted from reporting.
  456. /// <pre>
  457. /// NSDictionary *params = @{
  458. /// kFIRParameterValue : @(3.99),
  459. /// kFIRParameterCurrency : @"USD", // e.g. $3.99 USD
  460. /// // ...
  461. /// };
  462. /// </pre>
  463. static NSString *const kFIRParameterValue NS_SWIFT_NAME(AnalyticsParameterValue) = @"value";
  464. /// Name of virtual currency type (NSString).
  465. /// <pre>
  466. /// NSDictionary *params = @{
  467. /// kFIRParameterVirtualCurrencyName : @"virtual_currency_name",
  468. /// // ...
  469. /// };
  470. /// </pre>
  471. static NSString *const kFIRParameterVirtualCurrencyName
  472. NS_SWIFT_NAME(AnalyticsParameterVirtualCurrencyName) = @"virtual_currency_name";
  473. /// The name of a level in a game (NSString).
  474. /// <pre>
  475. /// NSDictionary *params = @{
  476. /// kFIRParameterLevelName : @"room_1",
  477. /// // ...
  478. /// };
  479. /// </pre>
  480. static NSString *const kFIRParameterLevelName NS_SWIFT_NAME(AnalyticsParameterLevelName) =
  481. @"level_name";
  482. /// The result of an operation. Specify 1 to indicate success and 0 to indicate failure (unsigned
  483. /// integer as NSNumber).
  484. /// <pre>
  485. /// NSDictionary *params = @{
  486. /// kFIRParameterSuccess : @(1),
  487. /// // ...
  488. /// };
  489. /// </pre>
  490. static NSString *const kFIRParameterSuccess NS_SWIFT_NAME(AnalyticsParameterSuccess) = @"success";
  491. /// Indicates that the associated event should either extend the current session
  492. /// or start a new session if no session was active when the event was logged.
  493. /// Specify YES to extend the current session or to start a new session; any
  494. /// other value will not extend or start a session.
  495. /// <pre>
  496. /// NSDictionary *params = @{
  497. /// kFIRParameterExtendSession : @YES,
  498. /// // ...
  499. /// };
  500. /// </pre>
  501. static NSString *const kFIRParameterExtendSession NS_SWIFT_NAME(AnalyticsParameterExtendSession) =
  502. @"extend_session";
  503. /// Monetary value of discount associated with a purchase (double as NSNumber).
  504. /// <pre>
  505. /// NSDictionary *params = @{
  506. /// kFIRParameterDiscount : @(2.0),
  507. /// kFIRParameterCurrency : @"USD", // e.g. $2.00 USD
  508. /// // ...
  509. /// };
  510. /// </pre>
  511. static NSString *const kFIRParameterDiscount NS_SWIFT_NAME(AnalyticsParameterDiscount) =
  512. @"discount";
  513. /// Item Category (context-specific) (NSString).
  514. /// <pre>
  515. /// NSDictionary *params = @{
  516. /// kFIRParameterItemCategory2 : @"pants",
  517. /// // ...
  518. /// };
  519. /// </pre>
  520. static NSString *const kFIRParameterItemCategory2 NS_SWIFT_NAME(AnalyticsParameterItemCategory2) =
  521. @"item_category2";
  522. /// Item Category (context-specific) (NSString).
  523. /// <pre>
  524. /// NSDictionary *params = @{
  525. /// kFIRParameterItemCategory3 : @"pants",
  526. /// // ...
  527. /// };
  528. /// </pre>
  529. static NSString *const kFIRParameterItemCategory3 NS_SWIFT_NAME(AnalyticsParameterItemCategory3) =
  530. @"item_category3";
  531. /// Item Category (context-specific) (NSString).
  532. /// <pre>
  533. /// NSDictionary *params = @{
  534. /// kFIRParameterItemCategory4 : @"pants",
  535. /// // ...
  536. /// };
  537. /// </pre>
  538. static NSString *const kFIRParameterItemCategory4 NS_SWIFT_NAME(AnalyticsParameterItemCategory4) =
  539. @"item_category4";
  540. /// Item Category (context-specific) (NSString).
  541. /// <pre>
  542. /// NSDictionary *params = @{
  543. /// kFIRParameterItemCategory5 : @"pants",
  544. /// // ...
  545. /// };
  546. /// </pre>
  547. static NSString *const kFIRParameterItemCategory5 NS_SWIFT_NAME(AnalyticsParameterItemCategory5) =
  548. @"item_category5";
  549. /// The ID of the list in which the item was presented to the user (NSString).
  550. /// <pre>
  551. /// NSDictionary *params = @{
  552. /// kFIRParameterItemListID : @"ABC123",
  553. /// // ...
  554. /// };
  555. /// </pre>
  556. static NSString *const kFIRParameterItemListID NS_SWIFT_NAME(AnalyticsParameterItemListID) =
  557. @"item_list_id";
  558. /// The name of the list in which the item was presented to the user (NSString).
  559. /// <pre>
  560. /// NSDictionary *params = @{
  561. /// kFIRParameterItemListName : @"Related products",
  562. /// // ...
  563. /// };
  564. /// </pre>
  565. static NSString *const kFIRParameterItemListName NS_SWIFT_NAME(AnalyticsParameterItemListName) =
  566. @"item_list_name";
  567. /// The list of items involved in the transaction. (NSArray).
  568. /// <pre>
  569. /// NSDictionary *params = @{
  570. /// kFIRParameterItems : @[
  571. /// @{kFIRParameterItemName : @"jeggings", kFIRParameterItemCategory : @"pants"},
  572. /// @{kFIRParameterItemName : @"boots", kFIRParameterItemCategory : @"shoes"},
  573. /// ],
  574. /// };
  575. /// </pre>
  576. static NSString *const kFIRParameterItems NS_SWIFT_NAME(AnalyticsParameterItems) = @"items";
  577. /// The location associated with the event. Preferred to be the Google
  578. /// <a href="https://developers.google.com/places/place-id">Place ID</a> that corresponds to the
  579. /// associated item but could be overridden to a custom location ID string.(NSString). <pre>
  580. /// NSDictionary *params = @{
  581. /// kFIRParameterLocationID : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
  582. /// // ...
  583. /// };
  584. /// </pre>
  585. static NSString *const kFIRParameterLocationID NS_SWIFT_NAME(AnalyticsParameterLocationID) =
  586. @"location_id";
  587. /// The chosen method of payment (NSString).
  588. /// <pre>
  589. /// NSDictionary *params = @{
  590. /// kFIRParameterPaymentType : @"Visa",
  591. /// // ...
  592. /// };
  593. /// </pre>
  594. static NSString *const kFIRParameterPaymentType NS_SWIFT_NAME(AnalyticsParameterPaymentType) =
  595. @"payment_type";
  596. /// The ID of a product promotion (NSString).
  597. /// <pre>
  598. /// NSDictionary *params = @{
  599. /// kFIRParameterPromotionID : @"ABC123",
  600. /// // ...
  601. /// };
  602. /// </pre>
  603. static NSString *const kFIRParameterPromotionID NS_SWIFT_NAME(AnalyticsParameterPromotionID) =
  604. @"promotion_id";
  605. /// The name of a product promotion (NSString).
  606. /// <pre>
  607. /// NSDictionary *params = @{
  608. /// kFIRParameterPromotionName : @"Summer Sale",
  609. /// // ...
  610. /// };
  611. /// </pre>
  612. static NSString *const kFIRParameterPromotionName NS_SWIFT_NAME(AnalyticsParameterPromotionName) =
  613. @"promotion_name";
  614. /// The shipping tier (e.g. Ground, Air, Next-day) selected for delivery of the purchased item
  615. /// (NSString).
  616. /// <pre>
  617. /// NSDictionary *params = @{
  618. /// kFIRParameterShippingTier : @"Ground",
  619. /// // ...
  620. /// };
  621. /// </pre>
  622. static NSString *const kFIRParameterShippingTier NS_SWIFT_NAME(AnalyticsParameterShippingTier) =
  623. @"shipping_tier";