Im trying to send a numeric value to Adobe server, i tried with eVar, props, events but nothing works, after many searches came to know that events are best which supports the numbers but when i tried it, it is not sending the given value, will it consider only the instances? If so, please suggest me a way to send the numeric value
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Cool.
Could you try using the snippet below once and see what you get ? This should work if everything else is fine at your end.
s.eVar1 = 'My Text';
s.eVar2 = 'My Text2';
s.events = 'event1=10.5';
s.linkTrackVars = 'eVar1,eVar2,events';
s.linkTrackEvents = 'event1';
s.tl(true, 'o','Fire event');
Views
Replies
Total Likes
I guess you should be on Adobe Launch instead of DTM, which is already sunset.
The first thing to capture numeric value is setting the success event as "Numeric" first instead of "Counter" in the Adobe Analytics Admin console for the report suite.
Then in Adobe Launch, you can assign value to an event in the Adobe Analytics' "Set Variables" action.
I'm using Adobe Analytics only, I don't see Adobe launch anywhere in the console, even the script which I load says adobedtm.
Success event is also set as numeric
Views
Replies
Total Likes
Hi @karthik_22
How are you sending the event ? Do you have a rule firing from Launch ?
Is yes, then as @leocwlau mentioned, you would need to ensure the event is mapped in the set variables action in the rule.
If you are using custom code, make sure you have the event set properly in s.events.
Regards,
Abhinav
Views
Replies
Total Likes
Hi @abhinavbalooni
i'm sending data from the client like this.
s.linkTrackVars = 'eVar1,eVar2';
Views
Replies
Total Likes
Hey @karthik_22
You are missing events in linkTrackVars. That should be the reason you aren't getting numbers.
Also, try using linktrackvars after you have initialised all the variables.
Views
Replies
Total Likes
For the format of s.events, you may refer to events | Adobe Analytics, where basically something like
s.events = "event1=4.5";
A sidetracked comment, check out Adobe Launch (aka Tags now) Tags Overview | Adobe Experience Platform. It is way better and easier to use a tag manager for tracking instead of doing JavaScript directly.
@abhinavbalooni and @leocwlau I'm sending data in this format only but i couldn't see that in the dashboard, its been an hour, let me wait for few more time and I will also check the Tags now
Views
Replies
Total Likes
Hey @karthik_22 ,
Out of curiosity, you are getting data in eVars that are part of the request ?
Also, could you share a screenshot of the network request as well.
Regards,
Abhinav
Views
Replies
Total Likes
@abhinavbalooni
Yes! eVars & props are populating, only this event is not working, do we have to add anything in the data collection?
Apologies, i cannot share the screenshot of the request
Views
Replies
Total Likes
Cool.
Could you try using the snippet below once and see what you get ? This should work if everything else is fine at your end.
s.eVar1 = 'My Text';
s.eVar2 = 'My Text2';
s.events = 'event1=10.5';
s.linkTrackVars = 'eVar1,eVar2,events';
s.linkTrackEvents = 'event1';
s.tl(true, 'o','Fire event');
Views
Replies
Total Likes
s.events = 'event1='+10.5;
s.linkTrackVars = 'eVar1,eVar2, events';
Views
Replies
Total Likes
Yeah, in your code the s.events = 'event1='+10.5; should be s.events='event1=10.5'; Correct that bit or else use the snippet I pasted above.
This will increment value of event1 every time it is fired.
Views
Replies
Total Likes
Cool! this correction can be done but the value 10.5 is a dynamic one, for testing purpose I hardcoded it and so I gave as s.events= 'event1='+10.5;
let me change the value and see
Views
Replies
Total Likes
Even if you want to keep it dynamic, just feed the dynamic value in such a manner that the string format remains the same and it should work.
Cheers
Views
Replies
Total Likes
Okay! I'm trying the same way as you suggested, i've sent the data to Adobe and waiting for it to reflect in the dashboard, hope it should work
Views
Replies
Total Likes
Views
Replies
Total Likes
HI @abhinavbalooni
Firstly thank you so much for spending time in helping me out.
Numeric type is not working but when I change it to counter and give a value without decimals it is working, since it is a counter it is accepting values and summing it up but not sure why numeric type is not working, need to check on this further
Views
Replies
Total Likes
Hey @karthik_22
Just a query, Are you using the same event to send both types of values?
I am pretty sure you already did this but you might want to change the type of the event to numeric for decimal values in the report suite settings.
Else, a cleaner soln, use two separate events, one for counter and one for numeric.
Cheers,
Abhinav
Views
Replies
Total Likes
Hey @abhinavbalooni
I used a separate event and declared its type to counter in report suite settings which was working but the other which had numeric was not working
Views
Replies
Total Likes
That's weird.
I will also try a small piece and get back some time today on what I see
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies