> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.metalocator.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Analytics API

## Introduction

MetaLocator tracks nearly all events that occur within the customer-facing software.  These events are tracked in our internal analytics platform and optionally in your Google Analytics.

## Authentication

The Analytics API uses a token-based authentication method which is available to Enterprise accounts.  All requests must also include a "siteId" parameter.  To obtain these values, login as the account administrator, or a user with Analytics access.  Click Analytics, then Open this Dashboard in a new Window.  The idSite & token_auth parameters required will be shown in the URL address bar.

[![](https://storage.crisp.chat/users/helpdesk/website/-/9/9/5/9/9959a1a9db80f800/a98a234e-45bf-40c2-a206-15852e_1rp11uy.png)](https://downloads.intercomcdn.com/i/o/yn1vvwtq/1335271027/88c5bad73d4c2c21b94d63466cde/image.png?expires=1794512700&signature=4a1325202ce10646e9f988fd057bd09626bc6fd285ac5f61d47f1f79fb4cdae0&req=dSMkE8t5nIFdXvMW1HO4zS4kPD0YKhM1hDS3T1tBIVZmgYxR%2FB6HVNVVzveq%0A03U9hGAwLNbAosHvhAw%3D%0A)

The platform we use for analytics offers a robust API.  Documentation for that API can be found below:

[https://developer.piwik.org/api-reference/reporting-api](https://developer.piwik.org/api-reference/reporting-api)  
​

## Testing

To test an API call select any widget on the analytics dashboard and select Export.

[![](https://storage.crisp.chat/users/helpdesk/website/-/7/4/8/5/7485d12c18932400/3aebfd7d-8fea-496a-8439-a3c8c3_1emet5a.png)](https://downloads.intercomcdn.com/i/o/yn1vvwtq/1335274277/db577a6027ca97b7c5de51d1964f/image.png?expires=1794512700&signature=de4043c8264a642cf223b9e36a8644f3de8d74dbe83d3c55e8d7f8f20f0525ff&req=dSMkE8t5mYNYXvMW1HO4zR%2BTtawiafH1eCV%2FZvg9N2cmgGr4As7fXyfYtw8E%0AWzcqkT%2FMsUSkCoBQN4g%3D%0A)

Select Export format Json and click Show Export URL at the bottom of the modal to view the URL.

[![](https://storage.crisp.chat/users/helpdesk/website/-/b/2/f/1/b2f1f19c29c81000/5486d42d-6001-4789-98f7-28c82a_19w6hc7.png)](https://downloads.intercomcdn.com/i/o/yn1vvwtq/1335269420/fb6cecdc24212d0cb9a20fda2f85/image.png?expires=1794512700&signature=43c730465418afe8dee2d685487f53f7bf6fefbe3e36ce54015a2e2e8fe20baa&req=dSMkE8t4lIVdWfMW1HO4zYl4GeeZY2zC3H08nTAked6Sr5GBycXfx3Rivt4S%0AnewkNKTJgCTR6ZVyZOc%3D%0A)

Insert the token_auth for the account and test in a new tab.