u.addEvent in set data extension

Silver Contributor
Silver Contributor

I am trying to use u.addEvent to set a currency event in a set data extension.  I see the events fire but the value coming along is "undefined"

 

the set data extension looks like this

u.addEvent("event38="+b.js_page.order_merchandise_total);

4 REPLIES 4

u.addEvent in set data extension

Moderator
Moderator

Hi Joe,

 

The extension you wrote looks correct to me.

 

What scope if your u.addEvent() function scoped to? It sounds as if the value of b.js_page.order_merchandise_total is not being populated correctly.

 

If you are using the value in an extension scoped to All Tags or a specific tag you would reference it as:

b['js_page.order_merchandise_total']

If you are using the value in an Extension Scoped to DOM Ready: 

utag.data['js_page.order_merchandise_total']

If you are using the value in an Extension Scoped to PreLoader: 


utag.data['js_page.order_merchandise_total']

 

 

Ask me anything Tealium!

u.addEvent in set data extension

Silver Contributor
Silver Contributor

Hi @corbinspicer. So I am scoped to just the adobe tag and have it set as follows.

u.addEvent("event38="+b['js_page.order_merchandise_total']);

 

I see in the image request events: event38=undefined. 

u.addEvent in set data extension

Silver Contributor
Silver Contributor

Nevermind.  I got it.  I needed to remove the js_page piece.  The below is working and passing the correct information.

u.addEvent("event38="+b['order_merchandise_total']);

u.addEvent in set data extension

Employee Emeritus

Great job @joecbrown!

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.
Public