How to track multiple products purchased in a single visit | Community
Skip to main content
Level 2
January 29, 2020
Solved

How to track multiple products purchased in a single visit

  • January 29, 2020
  • 2 replies
  • 6347 views

Hi, colleagues.

I nee to track different values inside the single variable. For example, on one of our pages user can select up to 6 devices to purchase. And for each of the device user can select number of devices. For example user can purchase two items of Device_1, three items of Device_2 and four items of Device_3. And I need to store it in variables in single hit.

 

So, I don't want to put all values of devices in the string with some delimiter and use this concatenated string as a single value of the eVar.

I would like to have separate value for each purchased device. Also, i need to store number of devices purchased into the second variable and be able to detect how many devices of each type were bought.

I think guys from e-commerce market do this every day )) Could somebody describe me best practices?

 

P.s. We use Launch with datalayer architecture.

 

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

Hi Aleks,

Begin with this article explaining the s.products variable 

https://docs.adobe.com/help/en/analytics/implementation/javascript-implementation/variables-analytics-reporting/page-variables/products.html

2 replies

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
January 29, 2020
AleksLeusAuthor
Level 2
January 30, 2020
Hi, Andrey. Thanks for the answer! Let me give more context. Product for which we need this tracking is not our main one. This is additional tools for the main IT product which we create and sell. And s.product functionality we use for this main product. That's why we don't want to mix data about the main product and additional product. What I think for now - it is to use list variable for names of the additional products. How to put number of each product to the second variable I still don't know.
Level 2
January 31, 2020

How is it this scenario different then passing the quantity value in product string?