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 Transactions

GET
https://rest.api.mktlab.app/v1/google-analytics/transactions

Resposta#

A resposta retorna informações detalhadas sobre as transações realizadas no Google Analytics, com foco em métricas como número de transações, transações por comprador e dados associados à campanha ou projeto. A estrutura do objeto é a seguinte:
CampoTipoDescrição
event_namestringNome do evento registrado (por exemplo, "purchase", "transaction").
dateDateData em que a transação foi realizada, no formato ISO 8601.
transactions_per_purchasernumberNúmero médio de transações realizadas por comprador (usuário) durante o período.
transactionsnumberNúmero total de transações realizadas durante o período especificado.
unit_idstringID da unidade de negócios associada às transações.
integration_idstringID da integração entre o sistema e o Google Analytics.
project_idstringID do projeto associado às transações.
inserted_atDateData e hora em que o registro de transação foi inserido no sistema (formato ISO 8601).
document_idstringID do documento relacionado à transação ou evento, como uma referência ao conteúdo promocional ou à página do produto transacionado.




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 Transactions
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://rest.api.mktlab.app/v1/google-analytics/transactions' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "data": [
        {
            "event_name": "purchase",
            "date": "2025-03-21T00:00:00Z",
            "transactions_per_purchaser": 1.2,
            "transactions": 250,
            "unit_id": "UNIT9876",
            "integration_id": "INTEGRATION1234",
            "project_id": "PROJECT4321",
            "inserted_at": "2025-03-21T10: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 Sessions
Próxima página
Instagram Age Insights
Built with