You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

670 lines
22 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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. /// The search string/keywords used (NSString).
  334. /// <pre>
  335. /// NSDictionary *params = @{
  336. /// kFIRParameterSearchTerm : @"periodic table",
  337. /// // ...
  338. /// };
  339. /// </pre>
  340. static NSString *const kFIRParameterSearchTerm NS_SWIFT_NAME(AnalyticsParameterSearchTerm) =
  341. @"search_term";
  342. /// Shipping cost associated with a transaction (double as NSNumber).
  343. /// <pre>
  344. /// NSDictionary *params = @{
  345. /// kFIRParameterShipping : @(5.99),
  346. /// kFIRParameterCurrency : @"USD", // e.g. $5.99 USD
  347. /// // ...
  348. /// };
  349. /// </pre>
  350. static NSString *const kFIRParameterShipping NS_SWIFT_NAME(AnalyticsParameterShipping) =
  351. @"shipping";
  352. /// Sign up method (NSString).
  353. /// <pre>
  354. /// NSDictionary *params = @{
  355. /// kFIRParameterSignUpMethod : @"google",
  356. /// // ...
  357. /// };
  358. /// </pre>
  359. ///
  360. /// <b>This constant has been deprecated. Use Method constant instead.</b>
  361. static NSString *const kFIRParameterSignUpMethod NS_SWIFT_NAME(AnalyticsParameterSignUpMethod) =
  362. @"sign_up_method";
  363. /// A particular approach used in an operation; for example, "facebook" or "email" in the context
  364. /// of a sign_up or login event. (NSString).
  365. /// <pre>
  366. /// NSDictionary *params = @{
  367. /// kFIRParameterMethod : @"google",
  368. /// // ...
  369. /// };
  370. /// </pre>
  371. static NSString *const kFIRParameterMethod NS_SWIFT_NAME(AnalyticsParameterMethod) = @"method";
  372. /// The origin of your traffic, such as an Ad network (for example, google) or partner (urban
  373. /// airship). Identify the advertiser, site, publication, etc. that is sending traffic to your
  374. /// property. Highly recommended (NSString).
  375. /// <pre>
  376. /// NSDictionary *params = @{
  377. /// kFIRParameterSource : @"InMobi",
  378. /// // ...
  379. /// };
  380. /// </pre>
  381. static NSString *const kFIRParameterSource NS_SWIFT_NAME(AnalyticsParameterSource) = @"source";
  382. /// The departure date, check-in date or rental start date for the item. This should be in
  383. /// YYYY-MM-DD format (NSString).
  384. /// <pre>
  385. /// NSDictionary *params = @{
  386. /// kFIRParameterStartDate : @"2015-09-14",
  387. /// // ...
  388. /// };
  389. /// </pre>
  390. static NSString *const kFIRParameterStartDate NS_SWIFT_NAME(AnalyticsParameterStartDate) =
  391. @"start_date";
  392. /// Tax cost associated with a transaction (double as NSNumber).
  393. /// <pre>
  394. /// NSDictionary *params = @{
  395. /// kFIRParameterTax : @(2.43),
  396. /// kFIRParameterCurrency : @"USD", // e.g. $2.43 USD
  397. /// // ...
  398. /// };
  399. /// </pre>
  400. static NSString *const kFIRParameterTax NS_SWIFT_NAME(AnalyticsParameterTax) = @"tax";
  401. /// If you're manually tagging keyword campaigns, you should use utm_term to specify the keyword
  402. /// (NSString).
  403. /// <pre>
  404. /// NSDictionary *params = @{
  405. /// kFIRParameterTerm : @"game",
  406. /// // ...
  407. /// };
  408. /// </pre>
  409. static NSString *const kFIRParameterTerm NS_SWIFT_NAME(AnalyticsParameterTerm) = @"term";
  410. /// The unique identifier of a transaction (NSString).
  411. /// <pre>
  412. /// NSDictionary *params = @{
  413. /// kFIRParameterTransactionID : @"T12345",
  414. /// // ...
  415. /// };
  416. /// </pre>
  417. static NSString *const kFIRParameterTransactionID NS_SWIFT_NAME(AnalyticsParameterTransactionID) =
  418. @"transaction_id";
  419. /// Travel class (NSString).
  420. /// <pre>
  421. /// NSDictionary *params = @{
  422. /// kFIRParameterTravelClass : @"business",
  423. /// // ...
  424. /// };
  425. /// </pre>
  426. static NSString *const kFIRParameterTravelClass NS_SWIFT_NAME(AnalyticsParameterTravelClass) =
  427. @"travel_class";
  428. /// A context-specific numeric value which is accumulated automatically for each event type. This is
  429. /// a general purpose parameter that is useful for accumulating a key metric that pertains to an
  430. /// event. Examples include revenue, distance, time and points. Value should be specified as signed
  431. /// 64-bit integer or double as NSNumber. Notes: Values for pre-defined currency-related events
  432. /// (such as @c kFIREventAddToCart) should be supplied using double as NSNumber and must be
  433. /// accompanied by a @c kFIRParameterCurrency parameter. The valid range of accumulated values is
  434. /// [-9,223,372,036,854.77, 9,223,372,036,854.77]. Supplying a non-numeric value, omitting the
  435. /// corresponding @c kFIRParameterCurrency parameter, or supplying an invalid
  436. /// <a href="https://goo.gl/qqX3J2">currency code</a> for conversion events will cause that
  437. /// conversion to be omitted from reporting.
  438. /// <pre>
  439. /// NSDictionary *params = @{
  440. /// kFIRParameterValue : @(3.99),
  441. /// kFIRParameterCurrency : @"USD", // e.g. $3.99 USD
  442. /// // ...
  443. /// };
  444. /// </pre>
  445. static NSString *const kFIRParameterValue NS_SWIFT_NAME(AnalyticsParameterValue) = @"value";
  446. /// Name of virtual currency type (NSString).
  447. /// <pre>
  448. /// NSDictionary *params = @{
  449. /// kFIRParameterVirtualCurrencyName : @"virtual_currency_name",
  450. /// // ...
  451. /// };
  452. /// </pre>
  453. static NSString *const kFIRParameterVirtualCurrencyName
  454. NS_SWIFT_NAME(AnalyticsParameterVirtualCurrencyName) = @"virtual_currency_name";
  455. /// The name of a level in a game (NSString).
  456. /// <pre>
  457. /// NSDictionary *params = @{
  458. /// kFIRParameterLevelName : @"room_1",
  459. /// // ...
  460. /// };
  461. /// </pre>
  462. static NSString *const kFIRParameterLevelName NS_SWIFT_NAME(AnalyticsParameterLevelName) =
  463. @"level_name";
  464. /// The result of an operation. Specify 1 to indicate success and 0 to indicate failure (unsigned
  465. /// integer as NSNumber).
  466. /// <pre>
  467. /// NSDictionary *params = @{
  468. /// kFIRParameterSuccess : @(1),
  469. /// // ...
  470. /// };
  471. /// </pre>
  472. static NSString *const kFIRParameterSuccess NS_SWIFT_NAME(AnalyticsParameterSuccess) = @"success";
  473. /// Indicates that the associated event should either extend the current session
  474. /// or start a new session if no session was active when the event was logged.
  475. /// Specify YES to extend the current session or to start a new session; any
  476. /// other value will not extend or start a session.
  477. /// <pre>
  478. /// NSDictionary *params = @{
  479. /// kFIRParameterExtendSession : @YES,
  480. /// // ...
  481. /// };
  482. /// </pre>
  483. static NSString *const kFIRParameterExtendSession NS_SWIFT_NAME(AnalyticsParameterExtendSession) =
  484. @"extend_session";
  485. /// Monetary value of discount associated with a purchase (double as NSNumber).
  486. /// <pre>
  487. /// NSDictionary *params = @{
  488. /// kFIRParameterDiscount : @(2.0),
  489. /// kFIRParameterCurrency : @"USD", // e.g. $2.00 USD
  490. /// // ...
  491. /// };
  492. /// </pre>
  493. static NSString *const kFIRParameterDiscount NS_SWIFT_NAME(AnalyticsParameterDiscount) =
  494. @"discount";
  495. /// Item Category (context-specific) (NSString).
  496. /// <pre>
  497. /// NSDictionary *params = @{
  498. /// kFIRParameterItemCategory2 : @"pants",
  499. /// // ...
  500. /// };
  501. /// </pre>
  502. static NSString *const kFIRParameterItemCategory2 NS_SWIFT_NAME(AnalyticsParameterItemCategory2) =
  503. @"item_category2";
  504. /// Item Category (context-specific) (NSString).
  505. /// <pre>
  506. /// NSDictionary *params = @{
  507. /// kFIRParameterItemCategory3 : @"pants",
  508. /// // ...
  509. /// };
  510. /// </pre>
  511. static NSString *const kFIRParameterItemCategory3 NS_SWIFT_NAME(AnalyticsParameterItemCategory3) =
  512. @"item_category3";
  513. /// Item Category (context-specific) (NSString).
  514. /// <pre>
  515. /// NSDictionary *params = @{
  516. /// kFIRParameterItemCategory4 : @"pants",
  517. /// // ...
  518. /// };
  519. /// </pre>
  520. static NSString *const kFIRParameterItemCategory4 NS_SWIFT_NAME(AnalyticsParameterItemCategory4) =
  521. @"item_category4";
  522. /// Item Category (context-specific) (NSString).
  523. /// <pre>
  524. /// NSDictionary *params = @{
  525. /// kFIRParameterItemCategory5 : @"pants",
  526. /// // ...
  527. /// };
  528. /// </pre>
  529. static NSString *const kFIRParameterItemCategory5 NS_SWIFT_NAME(AnalyticsParameterItemCategory5) =
  530. @"item_category5";
  531. /// The ID of the list in which the item was presented to the user (NSString).
  532. /// <pre>
  533. /// NSDictionary *params = @{
  534. /// kFIRParameterItemListID : @"ABC123",
  535. /// // ...
  536. /// };
  537. /// </pre>
  538. static NSString *const kFIRParameterItemListID NS_SWIFT_NAME(AnalyticsParameterItemListID) =
  539. @"item_list_id";
  540. /// The name of the list in which the item was presented to the user (NSString).
  541. /// <pre>
  542. /// NSDictionary *params = @{
  543. /// kFIRParameterItemListName : @"Related products",
  544. /// // ...
  545. /// };
  546. /// </pre>
  547. static NSString *const kFIRParameterItemListName NS_SWIFT_NAME(AnalyticsParameterItemListName) =
  548. @"item_list_name";
  549. /// The list of items involved in the transaction. (NSArray).
  550. /// <pre>
  551. /// NSDictionary *params = @{
  552. /// kFIRParameterItems : @[
  553. /// @{kFIRParameterItemName : @"jeggings", kFIRParameterItemCategory : @"pants"},
  554. /// @{kFIRParameterItemName : @"boots", kFIRParameterItemCategory : @"shoes"},
  555. /// ],
  556. /// };
  557. /// </pre>
  558. static NSString *const kFIRParameterItems NS_SWIFT_NAME(AnalyticsParameterItems) = @"items";
  559. /// The location associated with the event. Preferred to be the Google
  560. /// <a href="https://developers.google.com/places/place-id">Place ID</a> that corresponds to the
  561. /// associated item but could be overridden to a custom location ID string.(NSString). <pre>
  562. /// NSDictionary *params = @{
  563. /// kFIRParameterLocationID : @"ChIJiyj437sx3YAR9kUWC8QkLzQ",
  564. /// // ...
  565. /// };
  566. /// </pre>
  567. static NSString *const kFIRParameterLocationID NS_SWIFT_NAME(AnalyticsParameterLocationID) =
  568. @"location_id";
  569. /// The chosen method of payment (NSString).
  570. /// <pre>
  571. /// NSDictionary *params = @{
  572. /// kFIRParameterPaymentType : @"Visa",
  573. /// // ...
  574. /// };
  575. /// </pre>
  576. static NSString *const kFIRParameterPaymentType NS_SWIFT_NAME(AnalyticsParameterPaymentType) =
  577. @"payment_type";
  578. /// The ID of a product promotion (NSString).
  579. /// <pre>
  580. /// NSDictionary *params = @{
  581. /// kFIRParameterPromotionID : @"ABC123",
  582. /// // ...
  583. /// };
  584. /// </pre>
  585. static NSString *const kFIRParameterPromotionID NS_SWIFT_NAME(AnalyticsParameterPromotionID) =
  586. @"promotion_id";
  587. /// The name of a product promotion (NSString).
  588. /// <pre>
  589. /// NSDictionary *params = @{
  590. /// kFIRParameterPromotionName : @"Summer Sale",
  591. /// // ...
  592. /// };
  593. /// </pre>
  594. static NSString *const kFIRParameterPromotionName NS_SWIFT_NAME(AnalyticsParameterPromotionName) =
  595. @"promotion_name";
  596. /// The shipping tier (e.g. Ground, Air, Next-day) selected for delivery of the purchased item
  597. /// (NSString).
  598. /// <pre>
  599. /// NSDictionary *params = @{
  600. /// kFIRParameterShippingTier : @"Ground",
  601. /// // ...
  602. /// };
  603. /// </pre>
  604. static NSString *const kFIRParameterShippingTier NS_SWIFT_NAME(AnalyticsParameterShippingTier) =
  605. @"shipping_tier";