# How to create and manage counter

#### Step-by-Step Guide

#### &#x20;Login to Questera

* Head over to the Questera  and log in with your credentials.

#### Navigate to Counters

* On the left-hand Nav bar, look for Track & Measurements.
* Click to expand the section.
* Then, select Counters to open the Counters page.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcRkPYLgMgGRtTRQg2KUWJ7hkqYTa8ea-HzHRbpiYodA_VpvzZVQf_RdGzNWcO1mGM3O9yKr8XmY_UZETfUYITH5vUy17GiXM-8HX0FeSdCxNA8JTwPVHgwsPm86msyHL7GPQertQ?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Click on Create a Counter

* On the right side of the Counters page, you’ll see a button labeled Create a Counter.
* Click it to start creating a new Counter.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcmw7LDhuFfLWBE3KiA3bqKfl-cgg-XytY9-OoAg34km77P13xW6lXN1MScvC0Y1hK_yZNPcS_jWSs6tq-3VVOgxVvEQHt7kQfPX-4XOGm2FajajUHbLUCWhlHESMbZSlyfziIfiA?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Choose the Type of Counter

A pop-up will appear with the heading Add Your Type of Counter. Here, you have two options:

* **Independent Counter:** A standalone counter that tracks a value independently, not tied to any specific event.
* **Event-Based Counter:** A counter that tracks how often a specific event (or events) happen, based on the properties you define.

Select the type of counter you want to create.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdd4xB3JMnLn654B7csQjY5kLTsusyu-VPjAjAJjVPBX2-LRHxPR-faI7jtzUPEuSNveUcoU5tUP8ro3SYvfp_I0XQBvauDCWh35iZ8z9MAOO-nnNE9pGtGpHB8OsY2BfosuNOoiA?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Set Up Your Counter

**If you choose Independent Counter:**

* A form will appear where you need to fill in the following details:
  * **Counter Name:** Give your counter a clear and descriptive name
  * **Counter Description**: Briefly explain what this counter is tracking.
  * **Streak:** Optional field to set up streak tracking if needed.
  * **Source SDK:** Pre-filled with your SDK source details.<br>
* You’ll also see an option to copy the SDK code snippet—use this to integrate the counter in your app or website.
* Once you’ve filled in all the details, click Save and Publish.

Your Independent Counter is now live and visible on the Counters page.\
\
\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf7GMHM_W7MfFhFCZESJOCEKHyf-HyJUy_V2DQzk9rDH611Ww4kA6ZueoGrJdPI0Ph55CSKavwRV-pWMyjstPfWx6Ofs_3CVawW8rjTD1OVxkBdI2ANve4Fz-OkDXs_fbeelgehGg?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

&#x20;**If you choose Event-Based Counter:**

* A form will appear where you need to fill in the following details:
  * **Counter Name:** Name the counter (e.g., "Product Page Views").
  * **Counter Description:** Describe what this counter measures.
  * **Event Name:** Choose the event you want to base this counter on (e.g., "Button Click", "Purchase Made").
  * **Counter Property Details:** Add properties to refine what you’re counting (e.g., "Category: Electronics").
* You can add multiple properties if needed.
  * **Increment By:** Define how much the counter should increase when the event occurs (default is 1, but you can set any value).
* After filling in the details, click Save and Publish.

Your Event-Based Counter is now active and visible on the Counters page.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXee3VZ0LY6p5jzzNjgT0m8dN_DeVTNpcF8P2-ex17IVg-rV7JWBHxRFIEjcxEdixh0a-_y_kTieBtdK0AtlS6g-4nrokjK0okX7RuiqEnCLmGNdJm7AEgO6pahH1o14CkzlkaXcKg?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Managing Your Counters

* Once created, all your active counters both independent and event-based will appear on the Counters page.
* If you need to delete a counter, simply click on the  delete icon on the right side of the counter.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeGiB7B8waq8TJBlFhodUOBOmiJ1Zte6lqxoGWMaUExXFvVx9gGDqXLIig0hr7c9TqNE5lSQl5jImQWwiwCLBwuXfxEErLPgtLhK7H4WCk4Bpyz35Q1tzM_d60Djz3zy3B_ONZzLg?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.questera.ai/questera-ai-platform/data/counters/how-to-create-and-manage-counter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
