Skip to content

Commit f1f2f93

Browse files
committed
Collect analytics by default
1 parent 0e245c8 commit f1f2f93

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ client.setStatsSessionId(id);
220220
```
221221

222222
#### Collect search events automatically
223-
Send search events automatically. Not recommended in search-as-you-type implementations, as every keystroke
224-
would fire a statistics event
223+
Send search events automatically to the Analytics Dashboard. Not recommended in search-as-you-type implementations,
224+
as every keystroke would fire a statistics event
225225
```js
226-
// Control whether search queries are sent to your AddSearch Analytics Dashboard automatically or not (default: false)
227-
client.setCollectAnalytics(true);
226+
// Control whether search queries are sent to your AddSearch Analytics Dashboard automatically or not (default: true)
227+
client.setCollectAnalytics(false);
228228
```
229229

230230
### Personalization

src/settings.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ var settings = function() {
1717
facetFields: [],
1818
autocomplete: {
1919
size: 10
20-
},
21-
collectAnalytics: false
20+
}
2221
};
2322

2423
this.getSettings = function() {

0 commit comments

Comments
 (0)