Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

In Product variable, currency code is allowed?

Avatar

Level 5

Hi Team, 

 

products:;1my15aa;1;GBP 13.65; -  is passing GBP in product string will cause any issue? 
1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@dinesh_kumar_r  Hi Dinesh,

 

Products syntax is in this format:

s.products = "Example category;Example product;1;3.50;event1=4.99|event2=5.99;eVar1=Example merchandising value 1|eVar2=Example merchandising value 2";

 

Adding currency or changing the syntax, can cause the hits to get discarded while processing and might result in loss of data in reporting

 

You would need define the currecny code like this separately in your code

 

s.currencyCode = "GBP";

 

but not in products string

 

Hope this helps

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

@dinesh_kumar_r  Hi Dinesh,

 

Products syntax is in this format:

s.products = "Example category;Example product;1;3.50;event1=4.99|event2=5.99;eVar1=Example merchandising value 1|eVar2=Example merchandising value 2";

 

Adding currency or changing the syntax, can cause the hits to get discarded while processing and might result in loss of data in reporting

 

You would need define the currecny code like this separately in your code

 

s.currencyCode = "GBP";

 

but not in products string

 

Hope this helps

Avatar

Level 4

@dinesh_kumar_r Currency code  and product are two different variables . you dont need to specify the Currency while passing the Price in product string . Tipicaly you would pass a numaric value as price in product string which further get denominated as CurrecyCode and report suite Currecy.