Revenue with no decimal places

Avatar

Avatar
Give Back
Level 2
VasconcelosAqui
Level 2

Likes

7 likes

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back
Level 2
VasconcelosAqui
Level 2

Likes

7 likes

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile
VasconcelosAqui
Level 2

02-09-2019

Hello there, guys,

I have recently deployed one solution to adobe analytics for a client and on workspace the revenue is comming as integers and not as decimals. As if the values are beeing applied with Math.root and being round. Is there some configuration that I should do to get the numbers in decimal?

Please let me know if you faced that problem or have an solution to that.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

Correct reply

146 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

130 likes

Total Posts

334 posts

Correct reply

146 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile
Asheesh_P
MVP

02-09-2019

You need to make sure when you parse revenue value as integer parseInt(), also use JavaScript toFixed() Method else it will only return integer values. This should solve your issue.

e.g.

revenueValue = 10.5266;

var revenueVariable = parseInt(revenueValue).toFixed(2);

s.products="Mens;Shoes;1;revenueVariable",

Thanks!

Asheesh

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

03-09-2019

If one of the replies above answers your question, please be sure to click the "Correct Answer" button on that reply. This will ensure others can quickly find the correct answer.

Thanks,
Jantzen

Avatar

Avatar
Boost 5
Employee
harish_kumar
Employee

Likes

14 likes

Total Posts

35 posts

Correct reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Employee
harish_kumar
Employee

Likes

14 likes

Total Posts

35 posts

Correct reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
harish_kumar
Employee

03-09-2019

You may need to create calculated metric from Revenue metrics and set the decimal point . Standard Revenue metrics can not be changed.

Avatar

Avatar
Coach
MVP
ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts

Correct reply

257 solutions
Top badges earned
Coach
Contributor
Bedrock
Seeker
Springboard
View profile

Avatar
Coach
MVP
ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts

Correct reply

257 solutions
Top badges earned
Coach
Contributor
Bedrock
Seeker
Springboard
View profile
ursboller
MVP

02-09-2019

I don't think you can change the default metric... you can create a custom "calculated metric" which contains just the revenue event, and change to currency event & set the decimals as needed.

you might want to hide the original metric from the usage, best done in VRS by component curation.