Expand my Community achievements bar.

SOLVED

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

Avatar

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

Avatar

Correct answer by
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

Avatar

Adobe Champion

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

Avatar

Correct answer by
Level 5

Hi

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

 

 

Regards

Devinder