Hi,
I send an Event 1 time whenever I click on a button. However, the Adobe Analytics report show that Event is set 1 time for initial 5 minutes. But when I refresh the report, I see that Event is again got hit 6 more times.
Note that Event participation is not enabled.
Please suggest any possible issue.
I can share a screenshot if needed.
Regards,
Preetpal
Solved! Go to Solution.
Hi Preetpal,
How are you checking the image requests? Could it be that the event is firing off on other places as well. Or maybe other users are using the button as well?
You can get the Data Feeds for more information on the event and the data that was captured.
-Hyder
Hi Preetpal,
How are you checking the image requests? Could it be that the event is firing off on other places as well. Or maybe other users are using the button as well?
You can get the Data Feeds for more information on the event and the data that was captured.
-Hyder
Hi Hyder,
I am checking the eVar report in Adobe Analytics where I see the event.
I know its the correct one, because the data generated for eVar value is unique for my user.
Can someone suggest how can i approach to resolve this issue?
Please share your code/image request or even better, the URL where the tracking are fired from... That would make it easier...
You can set the event one time in the code like this (event1=6) and then it would actually count 6 times in Analytics...
/Løjmann
Hi All, Below is the code. Attaching the screenshot of the website. The access is restricted as its an internal site within the organization.
The requirement is to use different eVars for each tab namely, All, Pages, Profles, and so on.
However, same event is used to get the count.
Code try { // declare labels for search filters var all ="All"; var profiles = "Profiles"; var news = "Articles"; var apps = "Applications"; var files = "Files"; // label of current clicked element var clickTitle = $(this).text(); var separator = "|"; // query parameters var searchTerm = s.Util.getQueryParam("term",window.location); var pageParam = s.Util.getQueryParam("page",window.location); var page = parseInt(pageParam); page++; // prepare tracking data var siteDetail = clickTitle + separator + searchTerm + separator + 'page' + page; // declare events s.linkTrackEvents = 'event77' s.events='event77' // set eVar specific to each filter label if(clickTitle === all) { s.linkTrackVars="eVar5,events" s.eVar5=siteDetail; } if(clickTitle === profiles) { s.linkTrackVars="eVar11,events" s.eVar11=siteDetail; } if(clickTitle === news) { s.linkTrackVars="eVar12,events" s.eVar12=siteDetail; } if(clickTitle === apps) { s.linkTrackVars="eVar13,events" s.eVar13=siteDetail; } if(clickTitle === files) { s.linkTrackVars="eVar14,events" s.eVar14=siteDetail; } // send tracking data to omniture. s.tl(this,'o', "Search Filter Click event", null, 'navigate'); } catch(e) {console.log("Exception:: " + e);} ***************************************************************************************************
PREETPALsingh Bindra wrote...
Hi All,
Below is the code. Attaching the screenshot of the website. The access is restricted as its an internal site within the organization.
The requirement is to use different eVars for each tab namely, All, Pages, Profles, and so on.
However, same event is used to get the count.
Code
try {
// declare labels for search filters
var all ="All";
var profiles = "Profiles";
var news = "Articles";
var apps = "Applications";
var files = "Files";
// label of current clicked element
var clickTitle = $(this).text();
var separator = "|";
// query parameters
var searchTerm = s.Util.getQueryParam("term",window.location);
var pageParam = s.Util.getQueryParam("page",window.location);
var page = parseInt(pageParam);
page++;
// prepare tracking data
var siteDetail = clickTitle + separator + searchTerm + separator + 'page' + page;
// declare events
s.linkTrackEvents = 'event77'
s.events='event77'
// set eVar specific to each filter label
if(clickTitle === all) {
s.linkTrackVars="eVar5,events"
s.eVar5=siteDetail;
}
if(clickTitle === profiles) {
s.linkTrackVars="eVar11,events"
s.eVar11=siteDetail;
}
if(clickTitle === news) {
s.linkTrackVars="eVar12,events"
s.eVar12=siteDetail;
}
if(clickTitle === apps) {
s.linkTrackVars="eVar13,events"
s.eVar13=siteDetail;
}
if(clickTitle === files) {
s.linkTrackVars="eVar14,events"
s.eVar14=siteDetail;
}
// send tracking data to omniture.
s.tl(this,'o', "Search Filter Click event", null, 'navigate');
}
catch(e) {console.log("Exception:: " + e);}
***************************************************************************************************
In the mean-time Løjmann gets back to you, I would suggest you to try using s.tl() function call as below -
s.tl(false,'o', "Search Filter Click event");
Regards,
Saurabh Kumar.
Hi All,
I see the following method to reset events. Can you please review if there are any side affects of this approach on my code and any other tag on the page?
I see that the values get reset within the if condition scope before calling s.tl().
I have not tested it to see if the count shows correctly yet, however, i did few console prints and I see the values become blank.
Please review and suggest.
Summary
I am resetting these 3 variables inside the if condition.
s.linkTrackEvents = ''; s.events=''; s.linkTrackVars='';
Complete code
try { // declare labels for search filters var all ="All"; var profiles = "People"; var news = "Pages"; var apps = "Applications"; var files = "Files"; // label of current clicked element var clickTitle = $(this).text().trim(); var separator = "|"; // query parameters var searchTerm = s.Util.getQueryParam("term",window.location); var pageParam = s.Util.getQueryParam("page",window.location); var page = parseInt(pageParam); page++; // prepare tracking data var siteDetail = clickTitle + separator + searchTerm + separator + 'page' + page+ separator + 'Click'; // set eVar specific to each filter label if(clickTitle === all) { s.linkTrackEvents = ''; s.events=''; s.linkTrackVars=''; // declare events console.log("all:before"); console.log(s.linkTrackEvents); console.log(s.events); console.log(s.linkTrackVars); s.linkTrackEvents = 'event77'; s.events='event77'; s.linkTrackVars='events,eVar5'; s.eVar5=siteDetail; console.log("all:later"); console.log(s.linkTrackEvents); console.log(s.events); console.log(s.linkTrackVars); // send tracking data to omniture. s.tl(true,'o', 'Search Filter Click event'); } if(clickTitle === news) { s.linkTrackEvents = ''; s.events=''; s.linkTrackVars=''; console.log("page:before"); console.log(s.linkTrackEvents); console.log(s.events); console.log(s.linkTrackVars); // declare events s.linkTrackEvents = 'event77'; s.events='event77'; s.linkTrackVars='events,eVar12'; s.eVar12=siteDetail; console.log("page:later"); console.log(s.linkTrackEvents); console.log(s.events); console.log(s.linkTrackVars); // send tracking data to omniture. s.tl(true,'o', 'Search Filter Click event'); } } catch(e) {console.log("Exception:: " + e);}
Hi,
I don't see why it would record the event multiple times. Could you try to write the value of s.events to the console, before the tracking request are fired?
Do you have any processing rule, that could affect the count?
/Løjmann
Hi Lojmann,
I printed the s.events variable, it looks correct and as expected. It just have one event (event77). There is exactly one image request which is triggered on the button click. it has the correct eVar and event
However, when i open the eVar report, i see multiple counts.
No other processing rule that I see being triggered on click.
Okay, then the implementation sounds good... What data does the eVar contains? Don't you think, it is simply because the eVar have had the same value multiple times when the button has been clicked?
/Løjmann
The format of the eVar value is like as following,
eVar14=Files|Milwaukee|page0
where, the format is <search-Filter>|<search-Term>|<current-page-number>
are you pointing to these 3 pipe symbol separated values that it the count is 3?
I tried with the following suggestion, however, the link tracking stops with this "false" parameter. Unfortunately, it did not help in my case.
s.tl(false,'o', "Search Filter Click event");
As I can see the Adobe Analytics image request & its variables being sent correctly, could it be that the report configuration may be wrong? I mean is there a configuration(s) with the Report Suite or the eVar report that could be incorrect &/or I should verify/double check it/them?
For your above use-case, configure eVars settings (in admin tab) for Allocation & Expire After as per below screenshot:
It should fix. Let me know your feedback.
Regards,
Saurabh Kumar.
Hi,
Can you tell me how can i get in touch directly with support team? Is there a online chat option available?
You can get in touch with Client Care, by clicking help and then the 'Customer Care' menu point, after logging into Analytics/Experience Cloud.
/Løjmann
Thanks.
I tried setting "Expire after" to Hit & allocation as suggested above, but the same problem continued to persist.
I resolved this issue by resetting the variables in this manner. Do you see any side effects by doing this?
s.events='';
s.linkTrackVars='';
s.linkTrackEvents = '';
Forgot to mention, there was an exit rule triggering after i navigate away from the search page, and so, all the eVars and events on the page were sent again with the exit link.
Views
Likes
Replies