trackSearch
The trackSearch() method tracks searches in your internal search engine.
Syntax
await FlutterPiwikPro.sharedInstance.trackSearch(
keyword: 'keyword',
category: "category",
numberOfHits: numberOfHits);Parameters
keyword (string, required)
The keyword the user entered in the search box.
category (string, optional)
The category selected in the search engine.
numberOfHits (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 21 days ago