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

# Manual

> 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

<AccordionGroup>
  <Accordion title="Context-free" defaultOpen={true}>
    ```javascript JS theme={null}
    window.datopus('trackAction', 'CTA: Add To Cart');
    ```
  </Accordion>

  <Accordion title="Leverage standard Datopus params to convey action's relation to HTML tag" defaultOpen={true}>
    ```javascript JS theme={null}
    window.datopus('trackAction', 'CTA: Add To Cart', {
    	elemTag: 'button',
    	elemName: 'add-to-cart-btn',
    	elemText: 'Add To Cart',
    	elemEvent: 'click'
    });
    ```
  </Accordion>

  <Accordion title="Add your own context" defaultOpen={true}>
    ```javascript JS theme={null}
    window.datopus('trackAction', 'CTA: Add To Cart', {
    	user_subscription: 'Premium',
    	product_name: 'Product A',
    	product_category: 'Category B'
    });
    ```
  </Accordion>
</AccordionGroup>

#### 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**.

<Tip>
  By analyzing feature **views** and feature **actions**, businesses determine the **Feature Engagement Rate**.
</Tip>

```javascript JS theme={null}
window.datopus('trackView', this.featureName);
```
