In Product variable, currency code is allowed? | Community
Skip to main content
September 7, 2021
Solved

In Product variable, currency code is allowed?

  • September 7, 2021
  • 2 replies
  • 1043 views

Hi Team, 

 

products:;1my15aa;1;GBP 13.65; -  is passing GBP in product string will cause any issue? 
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 VaniBhemarasetty

@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

2 replies

VaniBhemarasetty
Adobe Employee
VaniBhemarasettyAdobe EmployeeAccepted solution
Adobe Employee
September 7, 2021

@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

suneeshkachroo
September 7, 2021

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