Create a GA4 conversion event (deprecated)
google-analytics.x.analyticsadmin-properties-conversionevents-createconversionEvents.create — Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 1 llamadas
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
POSThttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-conversionevents-createBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
parent | cadena | Obligatorio | Required. The resource name of the parent property where this conversion event will be created. Format: properties/123 | |
- Parámetros de ruta
parentcadenaObligatorioRequired. The resource name of the parent property where this conversion event will be created. Format: properties/123
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-conversionevents-create' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-conversionevents-create",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-conversionevents-create", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.