Numeric events in Adobe Analytics

Bronze Contributor
Bronze Contributor

Hi,

 

I'm wondering how to set numeric events in an Adobe Analytics tag. Normally, you'd set event50=1234, and then include event50 in the event list. But how do we do it in Tealium iQ?

 

Thanks

4 REPLIES 4

Numeric events in Adobe Analytics

Tealium Employee

Hi @andrew_leigh


I think this article answers your question:

 

https://community.tealiumiq.com/t5/Tags-and-Client-side/Adobe-Analytics-SiteCatalyst-Tag/ta-p/664

 

 

Thanks

Steve Lake

 

Connecting data systems since the 1980s.

Numeric events in Adobe Analytics

Bronze Contributor
Bronze Contributor

Thanks Steve. Unfortunately there is not enough information in that post about Numeric Events specifically.

 

For anyone else looking for a solution, we got this back from Tealium support. Let's say that the source of the number you want to record is a JS variable called "sourceNumber" and the numeric event you want to set is event1. Leave the event unmapped in the Adobe Analytics tag and just add this in a JavaScript Code extension:

 

if (sourceNumber !== undefined) {
u.addEvent("event1","" + sourceNumber);
}

 

Remember to scope the JavaScript Code extension to the Adobe Analytics / SiteCatalyst tag.

 

Numeric events in Adobe Analytics

Employee Emeritus

Thank you for sharing @andrew_leigh

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.

Numeric events in Adobe Analytics

Employee Emeritus

@andrew_leigh

I see a small typepo in your code:

Just want to update in case anyone else is using your code as a reference.

 

 

if (typeof sourceNumber !== 'undefined') {
  u.addEvent("event1","" + sourceNumber);
}

//also this will work
if (typeof sourceNumber !== 'undefined') {
u.addEvent("event1=" + sourceNumber);
}

// you can also pass in an array of strings
u.addEvent(["event1=10.50", "event2", "event3"]);

 

Public