Custom currency code | Community
Skip to main content
Level 2
June 25, 2021
Solved

Custom currency code

  • June 25, 2021
  • 2 replies
  • 4223 views

We're implementing Adobe Analytics for a eCommerce site that has different currencies, depending which country you are in (i.e. Sweden gives you price in SEK, Germany in EUR, etc.). When a purchase is completed, the following is pushed to digitalData: 

 

"transaction": {
"transactionID": "1234567",
"total": {
"Price": {{PRICE}},
"currency": "{{CURRENCY}}" // e.g. SEK, USD, EUR
}

 

According to the docs, in such as scenario you can change the currency from a preset to custom, inside the Adobe Analytics extension in Adobe Launch. I changed to custom, and am referencing a variable whose property path is transaction.total.currency (this should match the path from the code above). EDIT: I know its collecting the currency correctly, because I also set a eVar which is showing me e.g. "SEK" in the AEP debugger extension

 

However, it still doesn't seem to be reporting this correctly in Workspace. What am I doing wrong? How can I debug/troubleshoot this to check that it's actually working when I do test purchase? 

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 yuhuisg

Are you setting the "Currency Code" field correctly in the AA extension? See What is the currencyCode variable, and how do I use it? | Adobe Analytics.

2 replies

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAccepted solution
Community Advisor
June 25, 2021

Are you setting the "Currency Code" field correctly in the AA extension? See What is the currencyCode variable, and how do I use it? | Adobe Analytics.

Level 2
June 25, 2021
Thanks for the prompt reply! I'm not sure - assuming I'm not setting it correctly, what would be the correct way to set the "currency code" field, if I want to use custom currency?
Andrey_Osadchuk
Level 10
June 26, 2021

1) Just in case you expected the amount in different currencies, Workspace will report revenue in the currency set in the report suite settings. So if it's set to USD and you collect data in SEK, the SEK amount will be converted in USD and reported in Workspace in USD.

2) If you are concerned with the FX rate, Adobe may use the rates that do not match the ones you use.