Mediahub Rest API
  1. Google Analytics
Mediahub Rest API
  • Introdução
  • API Reference
    • Facebook Ads
      • Accounts
      • Ads [Ad Level]
      • Ads Config [Ad Level]
      • Ads [Adset Level]
      • Ads Config [Adset Level]
      • Ads [Campaign Level]
      • Ads Config [Campaign Level]
      • Ads Actions
      • Ads Gender/Age
      • Ads Region
      • Ads Platform
      • Creatives [Deprecated]
      • Creatives with Ad
    • Google Ads
      • Accounts
      • Ads Conversions
      • Ads [Ad Group]
      • Ads [Conversion Segmented Ad Group]
      • Ads [Ad Group Ads]
      • Ads Criterion [Ad Group Ads]
      • Ads [Conversion Segmented Ad Group Ads]
      • Ads [Campaigns]
      • Ads Criterion [Campaigns]
      • Ads [Conversion Segmented Campaigns]
      • Ads Age Dimension
      • Ads Gender Dimension
      • Ads Geographic Dimension
      • Ads Keywords Dimension
    • Google Analytics
      • Google Analytics Customers
        GET
      • Google Analytics Custom Events
        GET
      • Google Analytics Events
        GET
      • Google Analytics Products
        GET
      • Google Analytics Sessions
        GET
      • Google Analytics Transactions
        GET
    • Instagram Insights
      • Instagram Age Insights
      • Instagram City Insights
      • Instagram Gender Insights
      • instagram Media Details
      • Instagram Media Insights
      • Instagram Profile
      • Instagram Profile Insights
    • TikTok
      • TikTok Budget
      • TikTok Demographic
      • TikTok Group Budget
      • TikTok Info
      • TikTok Region
    • Linkedin
      • Linkedin Statistics
      • Linkedin Accounts Campaigns
      • Linkedin Conversions Tracking
    • Bitrix
      • Bitrix Contacts
      • Bitrix Deals
      • Bitrix Won Deals
      • Bitrix Leads History
    • Kommo
      • Kommo Contacts
      • Kommo Leads
      • Kommo Pipelines
      • Kommo Users
    • Loja Integrada
      • Loja Integrada Customers
      • Loja Integrada Orders
      • Loja Integrada Products
    • Nuvem Shop
      • Nuvem Shop Customers
      • Nuvem Shop Orders
      • Nuvem Shop Products
    • Pipedrive
      • Pipedrive Deals
      • Pipedrive Leads
      • Pipedrive Lead Sources
      • Pipedrive People
      • Pipedrive Pipelines
      • Pipedrive Pipeline Stages
      • Pipedrive Products
      • Pipedrive Users
    • Rd Station
      • Rd Station Deal Stages
      • Rd Station Deals
      • Rd Station Products
    • Shopify
      • Shopify Customers
      • Shopify Orders
      • Shopify Orders Items
      • Shopify Products
    • Tray
      • Tray Customers
      • Tray Orders
      • Tray Products
    • Unbounce
      • Unbounce Leads
    • Vtex
      • Vtex Customers
      • Vtex Orders
      • Vtex Products
    • Investimentos de Mídia
      • Investimentos de Mídia
    • Integrações
      • Integrações
  1. Google Analytics

Google Analytics Custom Events

GET
https://rest.api.mktlab.app/v1/google-analytics/custom-events
Resposta
A resposta retorna uma lista de eventos personalizados do Google Analytics, contendo informações detalhadas sobre métricas e dados relacionados a cada evento. A estrutura do objeto é a seguinte:
CampoTipoDescrição
event_namestringNome do evento registrado (por exemplo, "page_view", "purchase", "signup").
metric_namestringNome da métrica associada ao evento (por exemplo, "views", "total_revenue", "registrations").
metric_valuenumberValor da métrica associada ao evento (por exemplo, número de visualizações, valor de receita ou número de registros).
unit_idstringID da unidade de negócios associada ao evento.
integration_idstringID da integração entre o sistema e o Google Analytics.
project_idstringID do projeto associado ao evento.
inserted_atDateData e hora em que o evento foi registrado no sistema, no formato ISO 8601.
event_dateDateData do evento, indicando quando o evento realmente ocorreu, no formato ISO 8601.
document_idstringID do documento relacionado ao evento ou campanha (por exemplo, uma referência ao conteúdo do anúncio ou página associada ao evento).

Requisição

Authorization
Forneça seu token bearer no cabeçalho
Authorization
ao fazer requisições para recursos protegidos.
Exemplo:
Authorization: Bearer ********************
Parâmetros de Consulta

Respostas

🟢200Google Analytics Custom Events
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://rest.api.mktlab.app/v1/google-analytics/custom-events' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "data": [
        {
            "event_name": "page_view",
            "metric_name": "views",
            "metric_value": 5000,
            "unit_id": "UNIT9876",
            "integration_id": "INTEGRATION1234",
            "project_id": "PROJECT4321",
            "inserted_at": "2025-03-21T10:00:00Z",
            "event_date": "2025-03-21T00:00:00Z",
            "document_id": "DOC8765"
        }
    ],
    "meta": {
        "page": 1,
        "limit": 500,
        "total": 1,
        "totalPages": 1,
        "hasNextPage": false,
        "hasPreviousPage": true
    }
}
Modificado em 2025-10-08 17:25:55
Página anterior
Google Analytics Customers
Próxima página
Google Analytics Events
Built with