trackSearch
The trackSearch() method tracks searches on your internal search engine.
Syntax
await FlutterPiwikPro.sharedInstance.trackSearch(
keyword: 'keyword',
category: "category",
numberOfHits: searchCount);
Parameters
keyword (string, required)
The keyword the user typed into the search box.
category (string | array, optional)
The category selected in the search engine.
searchCount (number, optional)
The number of search results.
Examples
To send an internal search with the keyword “ATM in London” and 20 search results, but no category:
await FlutterPiwikPro.sharedInstance.trackSearch(
keyword: 'ATM in London',
category: "",
numberOfHits: 20);
Updated 6 days ago