Hi,
I am new with the web-sdk implementation, need help with one specific scenario.
In page view call i want to append additional events like page-load time, time-spent on previous page (developer have passed the values in datalayer). Like this - web.webPageDetails.pageLoadTime and web.webPageDetails.timeSpentOnPreviousPage.
Created the corresponding data elements and using those data-elements in XDM object. By assigning in _experience.analytics.events1to100.event31.value to corresponding data-element. Is that approach right ? Because i am not seeing any data getting populated into reports.
While i can see data flowing in interact call.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @Parth_Gupta
in your data element, you are trying to assign an object to the actual value of the event.
looking at your data layer screenshot, you are also having a value property in there.
try this instead
web.webPageDetails.pageLoadTime.value
you should be able to verify this by executing this in your console
adobeDataLayer.getState("web.webPageDetails.pageLoadTime")
respectively
adobeDataLayer.getState("web.webPageDetails.pageLoadTime.value")
hope that helps.
Björn
Hi @Parth_Gupta
your approach should be correct. Can you shed a little light on when and where you set custom events? I.e., through custom code or mapping directly in the WebSDK actions?
Have you tried setting a dummy event to value 1 where you set the page relevant data in the XDM? Does that show?
cheers
Björn
Views
Replies
Total Likes
Hi Bjorn,
Yes i tried sending dummy values as well - like random numbers. That data is coming up in the reports.
Page Load time data element -
XDM is set up like this -
My Rule is like this -
Thanks,
Parth
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Abhinav,
That is the first step that i always do. It is enabled.
Views
Replies
Total Likes
That's good then @Parth_Gupta
At times, these small things cause issues.
Can you also look at the type of event. Is it counter or numeric ?
Cheers,
Abhinav
Agree with @abhinavbalooni ,
all is typed, so if your data element returns a "1" instead of a 1, this will cause issues. Even though I am not sure whether WebSDK does some preprocessing and dumps those values since to my understanding the call would rather not be processed yet still go out.
Views
Replies
Total Likes
Hi @Parth_Gupta
in your data element, you are trying to assign an object to the actual value of the event.
looking at your data layer screenshot, you are also having a value property in there.
try this instead
web.webPageDetails.pageLoadTime.value
you should be able to verify this by executing this in your console
adobeDataLayer.getState("web.webPageDetails.pageLoadTime")
respectively
adobeDataLayer.getState("web.webPageDetails.pageLoadTime.value")
hope that helps.
Björn
Ahh such a small mistake. Thanks Bjoern. It worked
Views
Replies
Total Likes
Views
Likes
Replies