Skip to content

Create analytics account if enabled

Overview

This runbook describes how to create analytics account mapping to grant customer access to their analytics’ api and dashboard metrics

Steps

1. Get yourself Administrator Access:

  • Use Escalator to obtain admin access for Prod Pixel Data Admin

2. Create Customer data in production using Lambda Function:

  1. Head to the Prod pixel AWS account
  2. Use the CreateCustomerDataLambda-prod function with following input format (should be saved by default)
{
  "action": "write",
  "data": {
    "pixel_account_id": "<PIXEL_ACCOUNT_ID>",
    "system_account_id": "<SYSTEM_ACCOUNT_ID>",
    "index_name": "<INDEX_NAME>",
    "automatic_updates": false
  }
}

Verify:

  • After running the Lambda, querying the Analytics API should return valid results.

⚠️ Warning: Do not map customer Pixel Account IDs to other System Account IDs. The score modifier logic assumes a many-to-one relationship between these IDs. Incorrect mappings may break score modifier updates.