Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

216
Views
¿Por qué el evento logPurchase en firereact-native-firebase/analytics devuelve un valor de precio vacío?

Instalé esta biblioteca para mi proyecto nativo de reacción y funciona bien, pero cuando uso el evento logPurchase , el precio de la tabla firebase siempre es 0. También intenté agregar un valor codificado pero tampoco funciona. Entonces, ¿qué va mal? Porque no puedo encontrar ninguna solución.

 import analytics from '@react-native-firebase/analytics'; async sendPurchaseAnalytics() { const { order} = this.state; const tax = order?.data?.totalRevenue - order?.data?.totalExclTax; const items = order?.products.map(product => { return { item_brand: product?.vendorName, item_id: product?.prodlevid, item_name: product?.name, price: +product?.sprice, quantity: product?.quantity, } }) await analytics().logPurchase({ value: +order?.total, currency: 'euro', tax: +tax?.toFixed(2), items, }); }

Pero la columna Item revenue siempre es 0;

esta es la imagen de analytics.google

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!