> For the complete documentation index, see [llms.txt](https://docs.ep.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ep.mburger.cloud/android-docs/automation/stop-pause-tracking.md).

# Stop/Pause tracking

To property stop view and events tracking you should call

```kotlin
MBAutomation.stopAutomation(applicationContext)
```

We suggest to call it when your app goes on background then restart it with

```kotlin
MBAutomation.startEventsAndViewsAutomation(applicationContext)
```

when your app returns to foreground.
