Skip to content

Commit f57f612

Browse files
authored
set autocapture in README mixpanel.init calls
1 parent 04d623c commit f57f612

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can then import the lib:
1919
```javascript
2020
import mixpanel from 'mixpanel-browser';
2121

22-
mixpanel.init("YOUR_TOKEN");
22+
mixpanel.init("YOUR_TOKEN", {autocapture: true});
2323
mixpanel.track("An event");
2424
```
2525

@@ -56,7 +56,7 @@ Then you are free to import `mixpanel-browser` in your javascript modules.
5656
// main.js
5757
import mixpanel from 'mixpanel-browser';
5858

59-
mixpanel.init('YOUR_TOKEN', {debug: true, track_pageview: true, persistence: 'localStorage'});
59+
mixpanel.init('YOUR_TOKEN', {autocapture: true, debug: true, persistence: 'localStorage'});
6060
```
6161

6262
## Building bundles for release

0 commit comments

Comments
 (0)