setClickAnalytics method

AlgoliaQuery setClickAnalytics({
  1. bool enabled = false,
})

clickAnalytics

Enable the Click Analytics feature.

The effect of setting clickAnalytics to true is to add a queryID to the search response. As explained here, this queryID can subsequently be used in click and conversion analytics.

TODO: Add documention. Source: Learn more

Implementation

AlgoliaQuery setClickAnalytics({bool enabled = false}) {
  assert(enabled != null, 'value can not be empty');
  assert(!_parameters.containsKey('clickAnalytics'));
  return _copyWithParameters(<String, dynamic>{'clickAnalytics': enabled});
}