Unspecified Line item with AA product string builder | Community
Skip to main content
Level 2
June 30, 2023
Solved

Unspecified Line item with AA product string builder

  • June 30, 2023
  • 1 reply
  • 2358 views

Hi everyone, 

in one of the e-commerce events, such as scPurchase, i am trying to set the variables for products and payment as suggested in the AA product string builder guide (https://techdocs.searchdiscovery.com/adobe-solutions/adobe-launch/launch-extensions/aa-product-string-builder/tutorials/e-comm-order-placed)

In particular, i am setting additional merch evars (with product syntax) for both products and payments. 

Let the situation be

eVarX = sku (in products)
evarY = id (in payments)

everything works correctly and i am getting data, however, in analysis workspace, if i use eVarX as a dimension and Revenue/Orders/any other success event i see the correct eVarX line items and metrics and an unspecified line item. 

By breaking down the unspecified line item by evarY i get the evarY value. 
Thus, i am basically getting unspecified line items, corresponding to the eVarY payment evarY when i should not get them within the freeform table. 
I observe this behavior in analysis workspace whenever i have an event in which i set 2 AA product string builder extension variables. 

Would anyone have any suggestion beside filtering out unspecified from the freeform table?

Thanks!


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 Jennifer_Dungan

Without seeing the tagging and the result, it might be hard to disagnose... I know this is common if you have 2 or more products where only some of them are setting eVarX - the other items on the same tracking call that don't have eVarX can trigger an unspecified value...

 

But in this case it sounds like they should all have eVarX?

 

How in depth have you tested your implementation? Have you reviewed the product string for issues? Maybe there is an extra comma (,) at the end making it look like an empty product being passed?

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 30, 2023

Without seeing the tagging and the result, it might be hard to disagnose... I know this is common if you have 2 or more products where only some of them are setting eVarX - the other items on the same tracking call that don't have eVarX can trigger an unspecified value...

 

But in this case it sounds like they should all have eVarX?

 

How in depth have you tested your implementation? Have you reviewed the product string for issues? Maybe there is an extra comma (,) at the end making it look like an empty product being passed?

yuhuisg
Community Advisor
Community Advisor
July 1, 2023

Agree with @jennifer_dungan , we need to see a sample s.products string to diagnose the problem.

I suspect that you're setting both eVarX and eVarY in your s.products string at the same time, but at the Payments, you're setting eVarY with a blank string. If so, then AA would interpret that as "I have received a hit for Products where there is an eVarY, but oh! It's a blank string! I'll report that as "Unspecified" then."

UmbertoAuthor
Level 2
July 1, 2023

s.products=;%productID%;2;127.5;event41=2;eVarX=%my evarX%,;%PaymentID%;;;;eVarY=%my evarY%

Tag setup:

Product set up

AA product string builder (search discovery): set variable

Root data object = %my root data object%
Product Collection path = %my collection path%
productID = %path to product id%

Product string merchandising evar

evarX = %my evarX%

Payment set up

AA product string builder (search discovery): set variable

Root data object = %my root data object%
Product Collection path = %my collection path%
productID = %path to payment id%

Product string merchandising evar

evarY = %my evarY%

from _satellite.setDebug(true)
i see that the product array get the variables correctly. 
In line 0 i have my product product string
in line 1 i have my payment product string.

As you pointed out, i see "null" for line 1 (payment product string) as a value for evarX, however, i should not get it counted as suggested by SDI doc since it is not in the set product of payment.

Thanks in advance!