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

DTM: How to set Currency Event in Event Based Rules? Any Examples would be of great help ..!!

scott_tiger
Level 1
Level 1

Hello DTM Experts,

Testing time for you guys out there ... just kidding, it should be a simple one ... I am working on the DTM implementation and it seems to be going really well before I encountered this requirement to set the currency event (Ex: event10=4.55) for a event based rule.

Any examples would be of great help.

cheers,

Scott 

1 Accepted Solution
devinderbanga
Correct answer by
Level 5
Level 5

Hi

please use supported variable to set currency https://marketing.adobe.com/resources/help/en_US/dtm/rules_event.html

 

 

Regards

Devinder

View solution in original post

2 Replies
Jason_Egan
Level 3
Level 3

Scott,

You need to go to the custom page code section of the Adobe Analytics tool in DTM (in your DTM rule). There you'd set the event like this:

if(_satellite.getVar('currency_data_element')){ s.events=s.apl(s.events,"event10="_satellite.getVar('currency_data_element'),",",2); }

This assumes:

  1. You have the "apl" plug-in in place
  2. You have a data element named "currency_data_element" in place that has the value that you need to pass to the event
  3. The above example just sets this in the events variable and not in the product string
devinderbanga
Correct answer by
Level 5
Level 5

Hi

please use supported variable to set currency https://marketing.adobe.com/resources/help/en_US/dtm/rules_event.html

 

 

Regards

Devinder

View solution in original post