# Automatic Source: https://docs.datopus.io/auto-tracking Automatic Event Tracking Any website or web app can be decomposed into a set of features. A feature can consist of other features and/or controls, such as buttons, forms, links, etc. Datopus watches for any activity happening inside a specific HTML element that marked with a special tag `[data-ds-feature=name]`. You should define this HTML element yourself, and it should represent a feature in your app or website. ```javascript HTML theme={null}
...
``` Tracker looks at all the smaller parts within a marked element and records what they do. These events include clicks, mouse movements, form submissions, or any other user interactions within that designated area. # Manual Source: https://docs.datopus.io/manual-tracking Manual Event Tracking #### Tracking actions Use the track method `trackAction` to manually register activity on a feature. For example, you can register engagement on feature `CTA: Add To Cart` in the next ways ```javascript JS theme={null} window.datopus('trackAction', 'CTA: Add To Cart'); ``` ```javascript JS theme={null} window.datopus('trackAction', 'CTA: Add To Cart', { elemTag: 'button', elemName: 'add-to-cart-btn', elemText: 'Add To Cart', elemEvent: 'click' }); ``` ```javascript JS theme={null} window.datopus('trackAction', 'CTA: Add To Cart', { user_subscription: 'Premium', product_name: 'Product A', product_category: 'Category B' }); ``` #### Tracking views Use the track method `trackView` to manually register a view on a feature. This method is useful for tracking when a feature appears on a page, also known as an **impression**. By analyzing feature **views** and feature **actions**, businesses determine the **Feature Engagement Rate**. ```javascript JS theme={null} window.datopus('trackView', this.featureName); ``` # Quickstart Source: https://docs.datopus.io/quickstart Follow these instructions to quickly implement a Datopus web tracker with default configuration. Getting started with sending events using the JavaScript tracker is very similar to other web analytics vendors like Google Analytics, Adobe Analytics, etc. The process involves the following high level steps: #### Adding the code snippet Add the code snippet below to your site, to all the pages you'd like to track. Place the code snippet directly into your codebase. Typically this will be wrapped with `