How to pass the Data Element values to the Adobe Analytics
Hi There,
I am trying to capture the Search Type in following script code and this code has been written in Data Element in DTM. I am facing issue with that how to set condition in Rule so that i can send this data element result to the prop17.
jQuery(document).on("click mouseup touchstart",".lia-search-results-container .page-link, .lia-autocomplete-container .lia-js-autocomplete-list-item-link", function(){
if(LITHIUM.CommunityJsonObject.Page.name == "SearchPage"){
return "Search Results Page";
}else{
return "Auto Suggested Search";
}
})
Is this code need to add somewhere else (except data element)?
Thanks!