Datos comunes de eventos
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Los siguientes son datos comunes sobre los diferentes tipos de eventos. Estos valores se pueden recuperar mediante la variable Datos de eventos o la API de getEventData
.
Parámetro |
Tipo |
Ejemplo |
Descripción |
client_id |
string |
ABC_123 |
Es un ID arbitrario que identifica de forma anónima a un usuario, a un dispositivo o a una instancia de navegador en particular. |
currency |
string |
USD |
Moneda de la compra o artículos asociados con el evento, en formato ISO_4217 de 3 letras. |
event_name |
string |
purchase |
El nombre del evento |
IP_anulación |
string |
1.2.3.4 |
La dirección IP del usuario en formato IPv4 o IPv6. |
language |
string |
en_us |
El idioma del cliente en ISO 639-1. |
página_codificación |
string |
UTF-8 |
Es la codificación de texto de la página. |
page_hostname |
string |
example.com |
El nombre del host de page_location. |
page_location |
string |
https://example.com |
Es la URL del documento completa de la página. |
page_path |
string |
/path/to/page |
La parte de la ruta de page_location. |
page_referrer |
string |
https://www.google.com |
Es la URL completa de la página que remitió al usuario a la página donde ocurrió el evento. Este no es el valor del encabezado de referencia en la solicitud que llega al contenedor del servidor. |
page_title |
string |
Página principal |
Es el título de la página. |
screen_resolution |
string |
1024x768 |
Resolución de pantalla total para el dispositivo del usuario. (ancho por altura). |
usuario-agente |
string |
|
El usuario-agente del cliente. |
user_data.email_address |
string |
foo@example.com |
Dirección de correo electrónico del usuario. |
user_data.sha256_email_address |
string |
|
Es la dirección de correo electrónico con hash del usuario. Más información |
user_data.phone_number |
string |
+15551234567 |
Número de teléfono del usuario. |
user_data.sha256_phone_number |
string |
|
Número de teléfono con hash del usuario Más información |
user_data.address.first_name |
string |
Jane |
Nombre del usuario. |
user_data.address.sha256_first_name |
string |
|
Nombre del usuario con codificación hash Más información |
user_data.address.last_name |
string |
Doe |
Apellido del usuario. |
user_data.address.sha256_last_name |
string |
|
Apellido con codificación hash del usuario Más información |
user_data.address.street |
string |
Fake St 123 |
Indica la calle y el número de la dirección del usuario. |
user_data.address.city |
string |
Ciudad |
Ciudad de la dirección del usuario. |
user_data.address.region |
string |
CA |
Estado o territorio para la dirección del usuario. |
user_data.address.postal_code |
string |
54321 |
Es el código postal de la dirección del usuario. |
user_data.address.country (en inglés) |
string |
EE.UU. |
Es el código de país para la dirección del usuario. |
user_id |
string |
|
Es un ID arbitrario que está destinado a ser un identificador conocido para un usuario proporcionado por el propietario del sitio o la biblioteca. |
valor |
number |
10 |
Valor monetario del evento que se produjo |
tamaño de viewport |
string |
725x345 |
Tamaño de la ventana de contenido. Por lo general, es más pequeña que la resolución de pantalla. (ancho por altura). |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-02-06 (UTC)
[null,null,["Última actualización: 2024-02-06 (UTC)"],[[["\u003cp\u003eThis page outlines common event data parameters available across various event types in Google Tag Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese parameters provide information about users, their devices, page details, and event specifics, like currency and value.\u003c/p\u003e\n"],["\u003cp\u003eYou can access event data using the \u003ccode\u003eEvent Data\u003c/code\u003e variable or the \u003ccode\u003egetEventData\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003eEvent data can include sensitive information like personally identifiable information (PII) such as email, address, and phone number.\u003c/p\u003e\n"],["\u003cp\u003eFor security and privacy, hashed versions of PII are available, using SHA256 for encryption, in line with Google's data policies.\u003c/p\u003e\n"]]],["Event data, retrievable via the `Event Data` variable or `getEventData` API, includes user, device, and event details. Key parameters are `client_id` (user identifier), `currency`, and `event_name`. Page information like `page_location`, `page_title`, and `page_referrer` is available. User data includes `email_address`, `phone_number`, and address details, with options for hashed versions. Device details include `screen_resolution` and `viewport_size`. Additional fields are `user_agent`, `user_id`, and `value`.\n"],null,["# Common event data\n\nThe following are event data common across different types of events. These\nvalues can be retrieved using the **Event Data** variable or the\n[`getEventData`](/tag-platform/tag-manager/server-side/api#get_event_data) API.\n\n| Parameter | Type | Example | Description |\n|-------------------------------------|----------|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| client_id | `string` | ABC_123 | Arbitrary ID that anonymously identifies a particular user, device, or browser instance. |\n| currency | `string` | USD | Currency of the purchase or items associated with the event, in 3-letter ISO_4217 format. |\n| event_name | `string` | purchase | The name of the event. |\n| ip_override | `string` | 1.2.3.4 | The IP address of the user in IPv4 or IPv6 format. |\n| language | `string` | en_us | The language for the client in ISO 639-1. |\n| page_encoding | `string` | UTF-8 | The text encoding of the page. |\n| page_hostname | `string` | example.com | The hostname portion of page_location. |\n| page_location | `string` | https://example.com | The full document URL of the page. |\n| page_path | `string` | /path/to/page | The path portion of page_location. |\n| page_referrer | `string` | https://www.google.com | Full URL of the page that referred to the user to the page where the event occurred. This is not the value of the Referrer header on the request coming into the server container. |\n| page_title | `string` | Home | The title of the page. |\n| screen_resolution | `string` | 1024x768 | Total screen resolution for the user's device. (width by height). |\n| user_agent | `string` | | The client's user agent. |\n| user_data.email_address | `string` | foo@example.com | Email address of the user. |\n| user_data.sha256_email_address | `string` | | Hashed email address of the user. [Learn more](https://support.google.com/google-ads/answer/12785474?sjid=4543074023400780070-NA) |\n| user_data.phone_number | `string` | +15551234567 | Phone number of the user. |\n| user_data.sha256_phone_number | `string` | | Hashed phone number of the user. [Learn more](https://support.google.com/google-ads/answer/12785474?sjid=4543074023400780070-NA) |\n| user_data.address.first_name | `string` | Jane | First name of the user. |\n| user_data.address.sha256_first_name | `string` | | Hashed first name of the user. [Learn more](https://support.google.com/google-ads/answer/12785474?sjid=4543074023400780070-NA) |\n| user_data.address.last_name | `string` | Doe | Last name of the user. |\n| user_data.address.sha256_last_name | `string` | | Hashed last name of the user. [Learn more](https://support.google.com/google-ads/answer/12785474?sjid=4543074023400780070-NA) |\n| user_data.address.street | `string` | 123 Fake St | Street and number for the address of the user. |\n| user_data.address.city | `string` | City Town | City for the address of the user. |\n| user_data.address.region | `string` | CA | State or territory for the address of the user. |\n| user_data.address.postal_code | `string` | 54321 | Postal code for the address of the user. |\n| user_data.address.country | `string` | US | Country code for the address of the user. |\n| user_id | `string` | | Arbitrary ID that is intended to be a known identifier for a user provided by the site owner/library user. |\n| value | `number` | 10 | Monetary value of the event that occurred. |\n| viewport_size | `string` | 725x345 | Size of the content window. Usually smaller than the screen resolution. (width by height). |"]]