Question

Can i multiply two lists?

  • 25 February 2021
  • 0 replies
  • 14 views

Hi there, Is there any way to multiply two lists (quantity*price)?

There are three properties ‘quantity’, ‘product_id’,‘price’ in ‘purchase’ event.

  1. quantity : (from GTM data layer)
    1. data type : list
    2. example : [1,3,1]
  2. product_id : (from GTM data layer)
    1. data type : list
    2. example : [‘P1’, ‘P3’, ‘P4’]
  3. price : (lookup table, key=product_id)

so i made custom event sum(quantity*price) to calculate the revenue per user.

but values are always undefined.

Is there any way to multiply two lists (quantity*price)?


0 replies

Be the first to reply!

Reply


Mixpanel