MIDA Session Recording Replay
  • About App
    • Enable app embed
    • Session Replays
      • View Recordings
      • Delete Recordings
      • Export Recordings
    • Advanced filters
      • Customer segmentation
    • Heatmaps
      • View Heatmaps
      • Click maps
      • Move maps
      • Scroll maps
      • Area maps
      • Share Heatmaps
    • Manage Visitors
    • Surveys
      • Create Surveys
      • View Survey Analytics
    • View Analytics
    • Settings
    • API Data Export
  • FAQs
    • How much does it cost to use the app?
    • Can I get a trial for the app?
    • Can I get a discount on special cases?
    • Can I subscribe to an annual plan?
    • Can I cancel the subscription at any time?
    • Can I request a refund then?
    • Can I change my plan?
    • Can I change the number of recordings per page?
    • Can I reset visitor quota?
    • How is my session limit calculated?
    • What is a quick back?
    • Can I watch recordings of the Checkout page?
Powered by GitBook
On this page
  • Overview
  • Prerequisites
  • In-App Configuration
  • API Request
  • Response
  • Monitoring
  • Re-generate API secret key
  • Notes
  1. About App

API Data Export

This guide provides instructions for synchronizing analytics data.

PreviousSettingsNextFAQs

Last updated 1 day ago

Overview

This guide provides instructions for synchronizing analytics data using the MIDA Sessions Replay & Heatmap API, including in-app configuration for sync frequency and API key management, as well as the cURL request format.

Prerequisites

  • API Endpoint: https://mida-session-recording-replay.bsscommerce.com/apiv1/analytics/sync

    • API Key: Generated and named via the in-app API Configuration Screen.

  • Tool: cURL or any HTTP client for making POST requests.

  • Access: Admin access to the MIDA application for configuration.

In-App Configuration

API Configuration Screen

  1. Navigate to Settings:

    • Go to the "Analytics API Data Export" section in the MIDA application.

  2. Enable API:

    • Toggle API Status to [Activated].

  3. Generate API Key:

    • Click [Generate API Key].

    • Copy the generated key using the [Copy Button] for use in API requests.

  4. Set Sync Frequency:

    • Select from the Data Sync Frequency dropdown:

      • Daily: Syncs data from the previous day.

      • Weekly: Syncs data from the previous week.

  5. (Optional) Configure Email Notifications:

    • Choose "Notify me when data sync is successful" in Receive email Notifications.

    • Enter Recipient (default as store email).

  6. Save Settings:

    • Click [Save] on the top barto apply changes.

API Request

To synchronize analytics data, use the following cURL command, ensuring the frequency matches the in-app setting:

curl -X POST \\
  <https://mida-session-recording-replay.bsscommerce.com/apiv1/analytics/sync> \\
  -H 'Content-Type: application/json' \\
  -H 'x-mida-secret-key: {your_api_key}' \\

Parameters

  • Method: POST

  • Headers:

    • Content-Type: application/json

    • Mida-api-key: {your_api_key} (Replace {your_api_key} with your generated API key in API secret key)

Example

curl -X POST \\
  <https://mida-session-recording-replay.bsscommerce.com/apiv1/analytics/sync> \\
  -H 'Content-Type: application/json' \\
  -H 'x-mida-secret-key: abc123xyz789' \\

Response

  • Success: Returns synced data (e.g., Total Visitors, Total Sessions, Successful Orders, etc.).

  • Failure: Returns error message (e.g., "Invalid API key" or "Sync failed").

Monitoring

  • Email Notifications:

    • Success:

      • Subject: "[Analytics Sync] Success - [YYYY-MM-DD HH:mm]"

      • Content: Timestamp, Status.

    • Failure:

      • Subject: "[Analytics Sync] Failed - [YYYY-MM-DD HH:mm]"

      • Content: Timestamp, Status.

Re-generate API secret key

To remove an old API key, click "Regenerate secret key" and regenerate a new one when needed:

Notes

  • Keep the API key secure and regenerate if compromised.

  • For support, contact the MIDA team via the provided support channel.

API Data export settings
Save Settings
Regenerate secret key