📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Goals
Blue Mouse17b738fe0f7e
diff --git a/docs/docs/analytics-dashboard/goals.md b/docs/docs/analytics-dashboard/goals.mdnew file mode 100644index 000000000..1f31a29c4--- /dev/null+++ b/docs/docs/analytics-dashboard/goals.md@@ -0,0 +1,68 @@+---+id: goals+title: Goals+sidebar_label: Goals+---++import useBaseUrl from '@docusaurus/useBaseUrl';++Goals allow you to track specific actions that visitors perform on your website. They help you measure how well your site fulfils your target objectives.++<img alt="Goals list" src={useBaseUrl('img/analytics-dashboard/goals-list.png')} />++## Overview++A Goal in Swetrix represents a desired outcome, such as a visitor signing up for a newsletter, downloading a file, or reaching a "Thank You" page after a purchase. By defining goals, you can see conversion rates and trends for these critical actions directly in your dashboard.++Swetrix supports two types of goals:++1. **Pageview**: Triggered when a visitor visits a specific page URL.+2. **Custom Event**: Triggered when a specific custom event is sent from your website.++## Creating a Goal++To create a new goal:++1. Navigate to the **Goals** tab in your project dashboard.+2. Click the **Add Goal** button.+3. Fill in the goal details in the modal window.++<img alt="Create a goal" src={useBaseUrl('img/analytics-dashboard/create-goal.png')} />++### Goal Settings++| Setting | Description |+| :------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------- |+| **Name** | A friendly name for your goal (e.g., "Newsletter Signup"). |+| **Type** | Choose **Pageview** to track page visits or **Custom Event** to track specific interactions. |+| **Match Type** | **Exact match**: The value must match exactly.<br/>**Contains**: The value must contain the specified string. |+| **Value** | For **Pageview**: The path of the page (e.g., `/pricing` or `/thank-you`).<br/>For **Custom Event**: The name of the event (e.g., `signup_completed`). |+| **Metadata Filters** | (Optional) Add specific conditions based on event metadata. For example, track only signups where `plan` equals `pro`. You can add multiple key-value pairs. |++## Managing Goals++Once created, your goals will appear in a list on the Goals tab.++- **Search**: Use the search bar to filter goals by name.+- **Edit**: Click the pencil icon to modify a goal's settings.+- **Delete**: Click the trash icon to remove a goal.++## Analyzing Goal Data++Each goal in the list displays a quick summary of its performance for the selected time period.++### Summary Cards++- **Conversions**: The total number of times the goal was completed.+- **Conversion Rate**: The percentage of unique sessions that completed the goal. Calculated as: `(Unique Visitors who completed goal / Total Unique Visitors) * 100`.++### Detailed Chart++Click on any goal in the list to expand it and view a detailed performance chart.++The chart visualises two metrics over time:++1. **Conversions** (Green): The volume of goal completions.+2. **Sessions** (Blue): The number of unique sessions that contributed to these conversions.++This visualisation helps you identify trends, such as which days or times generate the most conversions.diff --git a/docs/sidebars.js b/docs/sidebars.jsindex 2363e8932..70b6805af 100644--- a/docs/sidebars.js+++ b/docs/sidebars.js@@ -32,6 +32,7 @@ module.exports = {'analytics-dashboard/alerts','analytics-dashboard/profiles-and-sessions','analytics-dashboard/error-tracking',+ 'analytics-dashboard/goals','analytics-dashboard/feature-flags','analytics-dashboard/experiments','analytics-dashboard/captcha',diff --git a/docs/static/img/analytics-dashboard/create-goal.png b/docs/static/img/analytics-dashboard/create-goal.pngnew file mode 100644index 000000000..9c1633c84Binary files /dev/null and b/docs/static/img/analytics-dashboard/create-goal.png differdiff --git a/docs/static/img/analytics-dashboard/goals-list.png b/docs/static/img/analytics-dashboard/goals-list.pngnew file mode 100644index 000000000..344ae7de0Binary files /dev/null and b/docs/static/img/analytics-dashboard/goals-list.png differ