In AA - Product String Builder - You should set product with only events and only eVar you want to set in the product string. Other events can be set within "AA - Set Variable" for the direct call rule you want to trigger on the purchase.
For currency Event - you need to make sure you set it correct and event2=%currency dataElement%
%currency dataElement% should return a numeric value, not a string.
My transaction event is supposed to fire on a direct call.
While using this AA string builder, which variables should I populate via AA "Set Variables" Vs "SDI string builder"
In my current workspace report, I can see that the Evars are populating for purchase category/product. However, the events [currency] are showing as 0 while ecommerce variables such as product/category are empty.
In my rule for Purchase event:
Adobe Analytics - Set variables has a few evars + events only
AA string builder has my root object as: %Transaction: Root Object% [where it is a JS var called digitalData.transaction]
Product collection path is set to: .transaction.item [because the object is available in digitalData.transaction.item]
Category is setup as .transaction.item.category as Collection Item Path
Quantity as 1 as Static Text
Unit price as .transaction.item.basePrice as Collection Item Path
Question: In the AA string builder, should I again set custom events if they are already set in the AA "Set variables" action?
I'm attaching a screenshot of the transaction object.
You will need to set transaction.total details in few currency events (event1, event2, event3, event4), purchaseId and currencyCode variables and transaction.item will go in s.products variable for each product (seperatrd by comma) as following E.g.