Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

@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

@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.