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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

In Product variable, currency code is allowed?

dinesh_kumar_r
Level 4
Level 4

Hi Team, 

 

products:;1my15aa;1;GBP 13.65; -  is passing GBP in product string will cause any issue? 
1 Accepted Solution
Vani_Bhemarasetty_Adobe
Correct answer by
Level 4
Level 4

@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
Vani_Bhemarasetty_Adobe
Correct answer by
Level 4
Level 4

@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

suneeshkachroo
Level 4
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.