Tags

Analytics

Collects, processes, and reports website analytics through its own privacy-focused API and infrastructure.

Usage

The nano-analytics tag is used to embed the analytics functionality into your web application. It allows you to track user interactions and events securely.

Installation

Install the analytics npm package:

npm install nano-analytics

Embedding

To embed the analytics functionality, include the following script in your top-level HTML (e.g., index.html):

<script>
  import "nano-analytics";
</script>
 
<nano-analytics
  userId="USER_ID"
  projectKey="PROJECT_KEY"
/>
Edit on GitHub

Last updated on

On this page