Set up DataMate

Install and sign in

  1. Run the DataMate server on a host with persistent storage. Set a strong setup token and a 32-byte encryption key represented as 64 hexadecimal characters. The deployment guide in the source repository includes examples.
  2. Open first-run setup over HTTPS and create the owner account.
  3. In the dashboard, select Add website. Enter the website domain without the URL scheme or path and choose its reporting currency.

Install the tracker

Copy the tracker tag from your website's Settings tab and put it in the head of the pages you want to measure. Load a tracked page and check Realtime. Use the site-specific tag for each domain.

The tracker records page paths and campaign parameters. Use datamate('goal', 'newsletter_signup') for goals and datamate('checkout') for a custom checkout step.

Connect a payment provider

Choose a provider in Settings. Register the displayed HTTPS URL in the payment provider's dashboard, then save that endpoint's signing secret. Use the same currency as your website's reporting currency.

For checkout created in code, send the value of window.datamate.visitorId to your backend and attach it as datamate_visitor_id metadata. Run a test-mode checkout before connecting live traffic.

Telegram alerts

Start a chat with your bot or add it to the intended group. In Settings, enter the bot token and numeric chat ID, then choose sales, spikes or both. Traffic alerts compare the last completed hour with the same hour over the preceding week.

Connect an MCP client

Create a read-only key in Settings. Configure your MCP client with the displayed /mcp URL and an Authorization: Bearer YOUR_KEY header. Each key is scoped to one website. The same header works for read-only reports such as GET /api/v1/stats, /api/v1/breakdown, and /api/v1/sales. Revoke a key from its website settings.