Gravatar for

Question by Hussain Shaik, Apr 8, 2017 12:59 PM

sending custom search event to specific coveo cloud source in coveo cloud organization id

I am using coveo cloud v2 with sitecore 8.2.

i am sending

 var coveoAnalyticsclient = new{
                    token: 'XXXXXXXXXXX'                 }); 
coveoAnalyticsclient.sendSearchEvent({ eventType: "sendSearchEvent", eventValue: 1, language: "en", actionCause: 'search', queryText: query, responseTime: data.duration, searchQueryUid: data.searchUid });

i have multiple data-sources in coveo cloud for one organisation. I need to send to specific data source and at the same time i need to fetch from same data source by using JS framework.

Any Thoughts here?

Gravatar for

Comment by Sébastien Belzile, Apr 9, 2017 9:08 PM

Not sure I understand the question.

  1. What do you mean by data-source? A Coveo source? a Sitecore data source item?
  2. Send to data-source???
  3. Not sure I can actually link the beginning of your question (which is clearly about analytics) and the end (about data-source).
Gravatar for

Comment by François Lachance-Guillemette, Apr 10, 2017 11:44 AM

There is no such thing as "an event for a particular source".

Coveo is a unified index, your users should be able to get results from any source (if they have the required permissions).

What is your use case?

Also, why would you want to send a search event like this?

The `coveo-search-ui` framework should handle the events for you.

1 Reply
Gravatar for

Answer by jrochette, Apr 10, 2017 3:13 PM

Hi Hussain,

Your query seems to be missing a filter, which is the reason why you see results from both DEV and SIT.

When you say "source", what usage analytics dimension are you talking about? Are you refering to the origin_level_1 (search hub) or the Source Name on a click event? This will help us determine on which dimension the filter should be.

You can refer to this documentation if you want more information about the dimensions available in Usage Analytics:

Gravatar for

Comment by Hussain Shaik, Apr 10, 2017 4:16 PM

I am talking about Source Name on click event. I need get these data by using analytics API by filtering Coveo Index Source name

Ask a question