> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/widgets/integration/google-tag-manager.md). Agents can also search and read this documentation through its [MCP server](https://docs.videsk.io/~gitbook/mcp).

# Google Tag Manager

Puedes integrar Videsk mediante Google Tag Manager en menos de 5 minutos! A continuación te explicamos como realizarlo.

{% hint style="warning" %}
Es posible que no visualices tu widget mediante GTM (Google Tag Manager), si estás usando un bloqueador de anuncios. Esto debido a que los bloqueadores de anuncios como extensiones o nativos del navegador bloquean la carga de GTM y en su defecto el widget.
{% endhint %}

{% embed url="<https://www.loom.com/share/5815ca21319c4c71895116020e5e102e>" %}

## 1. Crear nueva etiqueta

Deberás ingresar al espacio de trabajo asociado al sitio web que deseas integrar Videsk. Luego dar clic en **Añadir nueva etiqueta**.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FGRxUcgW1d3gNLgYjifle%2Fimage.png?alt=media\&token=0f43f8b1-b391-4eb1-930e-792c3b012de4)

Se desplegará una ventana lateral derecha, donde deberás dar clic en el rectángulo blanco con título **Configuración de la etiqueta**.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FOF2VXmHQntyOtmylfrgw%2Fimage.png?alt=media\&token=e270bb1f-d585-41d7-9a0c-2f791397d1ec)

## 2. Instalar etiqueta de Videsk

A continuación, deberás seleccionar la integración mediante plantillas comunitarias.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FSXGicODl4nJrX4ZHEP3Y%2Fimage.png?alt=media\&token=87976df9-a552-48af-aeb4-3752e3d1cf7e)

Luego que cargue el listado deberás buscar "**Videsk**" mediante el buscador ubicado en la parte superior derecha.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FNegbbwoYWGg01d5Jw18r%2Fimage.png?alt=media\&token=5aa6ee9f-b283-4167-85a9-00c1a75f41cb)

Luego dar clic en el botón azul, **Añadir a espacio de trabajo**.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2F0LmJc7zERa1BXoFzC2aL%2Fimage.png?alt=media\&token=ef59bfdd-2e6a-436a-83de-2ca8b0094ba5)

Finalmente deberás dar clic en **Añadir**.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2Fme9Rdp23D0X5kaPwZ37L%2Fimage.png?alt=media\&token=4acdabc4-57db-4bab-b44d-2ddd441534b6)

{% hint style="info" %}
La secuencia de comendas a insertar es el mismo el cual puedes obtener desde tu cuenta dashboard.
{% endhint %}

## 3. Configurar token de cuenta

Ahora ya configurada la etiqueta debemos ingresar el token de nuestro widget.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FL9dy9bbSfDF11cjEGUUz%2Fimage.png?alt=media\&token=2c1c995d-fb6f-4711-a416-97c087ca85a6)

Para ello debemos ir a nuestra cuenta dashboard, luego en **Integraciones** y finalmente la pestaña **Integración**.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FlhsyuN5uIrKYB9pzNOpA%2Fimage.png?alt=media\&token=a02819a5-111a-4532-9e38-63d0f4a2f630)

Deberás dar clic en el segundo botón de **Copiar**, y luego pegarlo en el campo **Public Token**.

## 4. Definir activadores

Ahora ya tienes integrado Videsk, basta con definir cuales serán los activadores para que sea visible el widget.

Dependiendo de tu caso podrás hacer uso de activadores preestablecidos en tu cuenta, definir acciones del usuario o solo en ciertas páginas.

Puedes ver nuestro video en la parte superior donde explicamos cómo definir un activador para ciertas páginas de nuestro sitio web.

![](https://294851947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma4POQR_-BPjQwRwhXE-1769347644%2Fuploads%2FInjb3UlAGSpQycVYe04S%2Fimage.png?alt=media\&token=0725d667-3821-431b-8b67-bf501f6aa226)

## Medición de `custom events`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.videsk.io/es-developers/widgets/integration/google-tag-manager.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
