# Create a number metric

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2For99xDEElfps9uMDY60K%2Fuploads%2FVpLMhO1wopakt9zvo42U%2Fcreate_number.mp4?alt=media&token=9c277dab-6c33-44aa-9939-9e8a217c382f>" %}

#### Get going[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#get-going) <a href="#get-going" id="get-going"></a>

1. Create a new metric either from the journey map or from the metrics page
2. Select source as "Google Analytics"
3. Select type as "Number"

#### Select date range[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#select-date-range) <a href="#select-date-range" id="select-date-range"></a>

Select a date range for the number

#### Select the metric[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#select-the-metric) <a href="#select-the-metric" id="select-the-metric"></a>

Select the metric you want to sum over the selected date range.

<img src="https://geoffbullen.github.io/smaply-knowledge/assets/images/select_metric-4cef8153095a9d791933ff676725242b.png" alt="select_metric" height="65" width="300">

{% hint style="info" %}
If you don't see the metric you want to compare, your administrator can add it for you. See [Google Analytics configuration](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Administration/google-analytics-config) for more information.
{% endhint %}

#### Preview and save[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#preview-and-save) <a href="#preview-and-save" id="preview-and-save"></a>

<img src="https://geoffbullen.github.io/smaply-knowledge/assets/images/preview_number-9e3b525ad2c9fc12619950dcbd1dfabc.png" alt="preview_number" height="704" width="438">

#### (Optional) Apply filters[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#optional-apply-filters) <a href="#optional-apply-filters" id="optional-apply-filters"></a>

<img src="https://geoffbullen.github.io/smaply-knowledge/assets/images/filters-c6da718ac764cf4e130ecce792587d61.png" alt="apply_filters" height="237" width="500">

#### Preview and save[​](https://geoffbullen.github.io/smaply-knowledge/docs/documentation/metrics/integrations/google-analytics/Using%20in%20metrics/creating-number-metric#preview-and-save-1) <a href="#preview-and-save-1" id="preview-and-save-1"></a>

<img src="https://geoffbullen.github.io/smaply-knowledge/assets/images/preview_comparison-e1925f8e130a6adf7b2b9465535dcbb5.png" alt="preview_comparison" height="675" width="484">

{% hint style="info" %}
*If you don't see any data, check that the comparison period actually has data and that you don't have any filters that are returning no results.*
{% endhint %}


---

# 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://helpdesk.smaply.app/metrics/types-of-metrics/number-metrics/create-a-number-metric.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.
