# Configure FoxMetrics

### Using Google Tag Manager <a href="#google_tag_manager" id="google_tag_manager"></a>

We highly recommend using a tag manager such as Google Tag Manager to install FoxMetrics.&#x20;

We currently have an approved tag in Google Tag Manager and here are the steps to get started.

* Log into [Google Tag Manager](https://tagmanager.google.com/).
* Scroll to **Tags** on the left navigation pane.
* Click on **New** button on the top right after page loads.
* Click on the **Tag Configuration** pane.
* Once the window slides in, scroll down to the **More** section and locate and click on the FoxMetrics line.
* Copy and paste the following **000000000000000000000000** into the **Application ID** textbox.
* Click on the **Triggering** pane to choose a trigger
* In the trigger pane that slides in, select the **All Pages** trigger with the type of **Page View\..**
* Provide a friendly name for the tag, click save and publish.
* You are all set.

{% hint style="info" %}
It could take up to an hour before you start seeing data flowing into your warehouse. Use [OBSERVER](https://my.foxmetrics.com/obr/000000000000000000000001/000000000000000000000000) to verify that your account is receiving inbound data.
{% endhint %}

### Using JavaScript

Are you not using Google Tag Manager? No Problem. You can still install FoxMetrics using any other tag manager or pasting the following code onto your pages.

Paste the following snippet just before the closing `</head>` tag of all your pages.

```javascript
<!-- FoxMetrics Web Analytics Start -->
<script type="text/javascript">
    var _fxm = _fxm || {};
    _fxm.events = _fxm.events || [];
    _fxm.app_id = _fxm.app_id || '000000000000000000000000';
    (function () {
        var fxms = document.createElement('script'); fxms.type = 'text/javascript'; fxms.async = true;
        fxms.src = 'https://d35tca7vmefkrc.cloudfront.net/scripts/000000000000000000000000.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fxms, s);
    })();
</script>
<!-- FoxMetrics Web Analytics End -->
```

{% hint style="info" %}
Ensure that you paste it on every functioning page to get 100% coverage.
{% endhint %}
