Expand my Community achievements bar.

SOLVED

multiple orders in a single transaction

Avatar

Level 1

Implementation question.. What is the best practice for tracking a single transaction that contains multiple "orders"?

Is there a way to differentiate multiple orders in one single s.products string? (only one s.t() call)

What happens if I fire s.tl() multiple times.. each with a new set of products?

I'm hoping you can provide a sample s.products as well as a recommendation.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi 

 

When you send:

s.events="purchase"

s.products=";product1;2;14,;product2;1;30"

It correspond to in sc:

Product    Unit    Order    Revenue

Product1    2    1    14

Product2    1    1    30

Total    3    1    44

There will only be one order here.

If you send the follow :

s.events="purchase"

s.products=";productX;2;14,;productY;1;30"

 

in 3 different s.t() call then you will have 3 distinct orders.

 

Best regards.

 

Alexis Cazes

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi 

 

When you send:

s.events="purchase"

s.products=";product1;2;14,;product2;1;30"

It correspond to in sc:

Product    Unit    Order    Revenue

Product1    2    1    14

Product2    1    1    30

Total    3    1    44

There will only be one order here.

If you send the follow :

s.events="purchase"

s.products=";productX;2;14,;productY;1;30"

 

in 3 different s.t() call then you will have 3 distinct orders.

 

Best regards.

 

Alexis Cazes