Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Image request show Event is fired 1 time, but report display 7 times

Avatar

Community Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

17 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Community Advisor

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.

Avatar

Community Advisor

Can someone suggest how can i approach to resolve this issue?

Avatar

Level 5

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

Avatar

Community Advisor
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);} ***************************************************************************************************

Avatar

Level 5

PREETPALsingh Bindra wrote...

  1. Hi All,
  2. 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.

 

 
  1. Code
  2. try {
  3. // declare labels for search filters
  4. var all ="All";
  5. var profiles = "Profiles";
  6. var news = "Articles";
  7. var apps = "Applications";
  8. var files = "Files";
  9.  
  10. // label of current clicked element
  11. var clickTitle = $(this).text();
  12. var separator = "|";
  13.  
  14. // query parameters
  15. var searchTerm = s.Util.getQueryParam("term",window.location);
  16. var pageParam = s.Util.getQueryParam("page",window.location);
  17. var page = parseInt(pageParam);
  18. page++;
  19.  
  20. // prepare tracking data
  21. var siteDetail = clickTitle + separator + searchTerm + separator + 'page' + page;
  22.  
  23. // declare events
  24. s.linkTrackEvents = 'event77'
  25. s.events='event77'
  26.  
  27. // set eVar specific to each filter label
  28. if(clickTitle === all) {
  29. s.linkTrackVars="eVar5,events"
  30. s.eVar5=siteDetail;
  31. }
  32. if(clickTitle === profiles) {
  33. s.linkTrackVars="eVar11,events"
  34. s.eVar11=siteDetail;
  35. }
  36. if(clickTitle === news) {
  37. s.linkTrackVars="eVar12,events"
  38. s.eVar12=siteDetail;
  39. }
  40. if(clickTitle === apps) {
  41. s.linkTrackVars="eVar13,events"
  42. s.eVar13=siteDetail;
  43. }
  44. if(clickTitle === files) {
  45. s.linkTrackVars="eVar14,events"
  46. s.eVar14=siteDetail;
  47. }
  48.  
  49. // send tracking data to omniture.
  50. s.tl(this,'o', "Search Filter Click event", null, 'navigate');
  51. }
  52. catch(e) {console.log("Exception:: " + e);}
  53.  
  54. ***************************************************************************************************

 

 

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.

Avatar

Community Advisor

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);}

Avatar

Level 5

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

Avatar

Community Advisor

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.

Avatar

Level 5

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

Avatar

Community Advisor

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?

Avatar

Community Advisor

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?

Avatar

Level 5

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.

Avatar

Community Advisor

Hi,

Can you tell me how can i get in touch directly with support team? Is there a online chat option available?

Avatar

Level 5

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

Avatar

Community Advisor

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 = '';

Avatar

Community Advisor

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.