Advertisement
pablomoratinos

view_item Swift IOS

Oct 31st, 2023
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.31 KB | None | 0 0
  1. // Prepare ecommerce parameters
  2. var productDetails: [String: Any] = [
  3.   AnalyticsParameterCurrency: "USD",
  4.   AnalyticsParameterValue: 19.99
  5. ]
  6.  
  7. // Add items array
  8. productDetails[AnalyticsParameterItems] = [esim1]
  9.  
  10. // Log view item event
  11. Analytics.logEvent(AnalyticsEventViewItem, parameters: productDetails)
Tags: App Tracking
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement