> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpanel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autocapture

export const dataItems = {
  'javascript': `Javascript`,
  'python': `Python`,
  'php': `PHP`,
  'node': `Node`,
  'go': `Go`,
  'ruby': `Ruby`,
  'java': `Java`,
  'reactnative': `React Native`,
  'flutter': `Flutter`,
  'ios': `iOS (Objective-C)`,
  'swift': `iOS (Swift)`,
  'android': `Android`,
  'unity': `Unity`,
  'httpapi': `HTTP API`
};

Starting with SDK version 2.60.0, the Javascript SDK can autocapture events when you enable it. To do so, enable the autocapture configuration:

```javascript theme={"system"}
// create an instance of the Mixpanel object
mixpanel.init('YOUR_PROJECT_TOKEN', {
    autocapture: true,    // enable autocapture
});
```

If you'd like to change the default Autocapture settings, you can use custom configs. These are the default configs:

```javascript theme={"system"}
mixpanel.init('YOUR_PROJECT_TOKEN', {
  autocapture: {
    pageview: "full-url",
    click: true,    
    input: true,
    rage_click: true,
    dead_click: true,
    scroll: true,
    submit: true,
    capture_text_content: false,
  },
});
```

[You can read more about custom configuration of Autocapture here](/docs/tracking-methods/sdks/javascript).
