Stape Conversion Tracking

Descripción

Si buscas la forma más sencilla de implementar el seguimiento del lado del servidor en tu sitio web con WordPress, el plugin de GTM de servidor de stape.io es la mejor solución. Ayuda a modificar fácilmente el script GTM con la URL del servidor de etiquetado, agrega un cargador personalizado, envía eventos de capa de datos y webhooks.

Características del plugin de GTM de servidor de stape.io:

  • Añade el código de Google Tag Manager en cada página de tu sitio web.
  • Trabaja con cualquier otro plugin de WP que inserte el script de GTM en tu sitio web.
  • Añade un cargador personalizado, que hace que el seguimiento de Google Tag Manager y Google Analytics sean invisibles para los bloqueadores de anuncios y otros mecanismos de prevención de seguimiento.
  • Sends events to GTM server side without any JS library and optimizes page speed.
  • Añade eventos de ecommerce a la capa de datos.
  • Añade datos de los usuarios a los eventos de la capa de datos.
  • Envía webhooks.
  • Provides the possibility to manage dynamic generation of data layer fields.
  • Native Same Origin proxy.

Ventajas del plugin de GTM de servidor de stape.io:

  • Aumenta la vida útil de las cookies al utilizar un dominio personalizado para el contenedor de Google Tag Manager de servidor .
  • Aumenta la precisión del seguimiento cuando el cargador personalizado está activado.
  • Simplifica el proceso de agregar el código de GTM al sitio web y entregar datos de usuario y comercio electrónico.

Capturas

Instalación

  1. Unzip and upload the «gtm-server-side» to the «/wp-content/plugins/» directory.
  2. Activate the plugin through the «Plugins» menu in WordPress.
  3. Go to «Settings / GTM Server Side» and enter your GTM Server Side URL and set additional options.

FAQ

¿Qué es Google Tag Manager?

Consulta la documentación oficial de Google Tag Manager.

¿Qué es Google Tag Manager de servidor?

Please refer to the technical description of Google Tag Manager Server Side.

¿Dónde puedo obtener la URL de GTM de servidor?

Please refer to blog post how to set up Google Tag Manager Server Side Container.

Es compatible el plugin con WooCommerce

Yes, please refer to the blog post on how to setup server side Tagging For WordPress with WooCommerce.

¿Puedo integrar la API de conversiones de Facebook con Google Tag Manager de servidor?

Yes. How to Setup Facebook Conversion API.

Reseñas

Leer todas las 3 reseñas

Colaboradores y desarrolladores

«Stape Conversion Tracking» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Stape Conversion Tracking» está traducido en 2 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Stape Conversion Tracking» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

2.3.11

  • Security: hardened the same-origin proxy so it only forwards requests to the configured Stape container. Thanks to Joep van Antwerpen for the responsible disclosure, coordinated by WPScan.
  • Fixed same-origin sites loading no GTM when the custom loader could not be fetched from Stape (an API error, a timeout, or a proxy path saved with a trailing slash, which the API rejects). They now fall back to the standard GTM snippet from googletagmanager.com, the trailing slash is no longer sent to the API, and the same-origin settings show a warning with the reason until the loader is fetched.
  • Fixed the same-origin proxy dropping the trailing slash of the requested path. WordPress trims it before the proxy sees the request, and the container treats /fps// and /fps/ as different URLs, so first-party Google tag requests failed with 400.

2.3.10

  • Removed the end-to-end test tooling (tests/, bin/, the wp-env and Playwright/Vitest configs) that 2.3.9 accidentally shipped in the plugin package. None of it was loaded by the plugin; the package is back to runtime files only.

2.3.9

  • Fixed the purchase event firing for checkouts that never completed. It was printed in the footer of whatever page rendered after the order was created, with no status check, so a declined card sent a full-value purchase. It now fires only on the order confirmation page, either the order received endpoint or a custom thank you page that runs woocommerce_thankyou (CartFlows, FunnelKit, Elementor), and never for failed or cancelled orders. Unpaid orders still count: cash on delivery and bank transfer are unpaid at that point and are real sales. Stores whose confirmation page does neither can correct the check with the gtm_server_side_is_order_confirmation_page filter.
  • Fixed add_to_cart not being tracked when the add loads a page: AJAX add to cart turned off, a ?add-to-cart= link, or a single product form that submits normally. The click-time push was lost with the page, so the added item is now stored in the WooCommerce session and pushed on the next page render. Adds over AJAX or the Store API keep pushing at click time. Themes that AJAX-ify these links or forms are covered by the added_to_cart event. Grouped products in the «Add to Cart with Options» block are tracked too.
  • Fixed add_to_cart being lost on WooCommerce Blocks «Add to cart» buttons when the click landed on the button’s inner label instead of the button itself.

2.3.8

  • Fixed the same-origin proxy reaching the container without the visitor’s IP address, which made analytics report every visitor from the server’s own location. The proxy turns a browser request into a server-to-server one, so the visitor’s address is now resolved from the incoming request and restated upstream in X-Forwarded-For and X-Real-IP. Forwarding headers are trusted for that lookup by default; sites that terminate connections directly can opt out with the gtm_server_side_trust_proxy_client_ip filter, and gtm_server_side_same_origin_client_ip overrides the resolved address outright.

2.3.7

  • Fixed the same-origin service worker returning a 404. The tag container registers it from a proxied iframe, using a «.js» URL built at runtime that the web server answers from its static file handler before WordPress can proxy it. The registration now goes out as «.load», like the loader already does.

2.3.6

  • Fixed a JavaScript error («item is not iterable») that broke the add_to_cart data layer event when adding a grouped product to the cart.
  • Tested up to WordPress 7.1.0

2.3.5

  • Fixed the same-origin loader rewrite so that only the proxied loader URL is changed from «.js» to «.load», leaving the gtm.js bootstrap event name and third-party URLs untouched.
  • The «.js» to «.load» rewrite is now applied to every generated loader snippet, including the ones refreshed by cron.
  • Fixed same-origin proxy responses that set more than one cookie: repeated Set-Cookie headers are no longer merged into a single malformed header.

2.3.4

  • Fixed a «Cannot modify header information» warning caused by the cookie keeper running on WP-Cron and WP-CLI requests.

2.3.3

  • Added a proxy status check that confirms the server_container_url to use in web GTM once the same-origin proxy path is verified.
  • Same-origin settings are now validated before saving: the proxy path must start with «/» and the container API key must match the expected format.

2.3.2

  • Extended item_brand sources in Advanced parameters: all product taxonomies are now selectable.

2.3.1

  • Fixed HTML entity serialization in product item_name and item_category fields for Data Layer ecommerce events and webhook item payloads.

2.3.0

  • Introduction of Same Origin functionality.

2.2.0

  • Introduction of Dynamic Data Layer configuration.

2.1.48

  • Fixed purchase event.

2.1.47

  • Fixed «gtm_server_side_order_id» cookie.
  • Added EU endpoint for custom loader.

2.1.46

  • Tested up to WordPress 7.0.0

2.1.45

  • Exclude GTM from loading for specific WordPress user roles.

2.1.44

  • Added Consent-Based GTM Injection.

2.1.43

  • Customer loader creation via API is enabled.

2.1.42

  • Added customer loader via API.
  • Fixed «gtm_server_side_state_cart_data» ajax request.

2.1.41

  • Tested up to WordPress 6.9.0

2.1.40

  • Added «cart_state» to DataLayer

2.1.39

  • Rename «product» to «accountType»
  • Added some cookies to the purchase webhook list

2.1.38

  • Added «select_item» event

2.1.37

  • Fix: submit button

2.1.36

  • Added imageUrl field to dataLayer
  • Added header «x-stape-app-version»

2.1.35

  • Fix tab Customer Match

2.1.34

  • Fix tab Customer Match

2.1.33

  • Add description for tab Customer Match

2.1.32

  • Added «Customer Match» settings
  • Fix: new_customer value

2.1.31

  • Request parameters have been changed

2.1.30

  • Added discount for order item

2.1.29

  • Tested up to WordPress 6.8.0

2.1.28

  • Tested up to WordPress 6.8.0

2.1.27

  • Probado con WordPress 6.7.1

2.1.26

  • Envío de cantidad de descuento en el webhook

2.1.25

  • Eliminado el ajuste de «Compatibilidad con Stape Analytics»

2.1.24

  • Añadido el webhook de pago completado
  • Añadida la clave cart_hash a los webhooks

2.1.23

  • Corregido el evento de compra

2.1.22

  • Probado con WordPress 6.7

2.1.21

  • Corregido el evento de compra
  • Eliminado el código del iframe
  • Corregido eliminar producto del carrito

2.1.20

  • Cambio de código JS
  • Añadida la opción de «Compatibilidad con Stape Analytics»

2.1.19

  • Añadido el vento «view_item_list»
  • Añadida al dataLayer la clave «ecomm_pagetype»
  • Añadido webhook de pedido pagado

2.1.18

  • Añadido el envío de cookies de ga* al webhook para un nuevo pedido

2.1.17

  • Añadida compatibilidad con WordPress 6.6

2.1.16

  • Ocultada la opción «Actualizar el código de GTM para web existente»

2.1.15

  • Eliminar el campo vacío de user_data antes de enviar el evento

2.1.14

  • Añadido el envío de eventos del dataLayer destacados

2.1.13

  • Actualización del cargador personalizado

2.1.12

  • Añade más cookies a la lista de cookies que se envían al servidor

2.1.11

  • Añadida compatibilidad con WordPress 6.4.2

2.1.10

  • Modificada la validación del campo: URL del contenedor de GTM de servidor

2.1.9

  • Añadida compatibilidad con WordPress 6.4

2.1.8

  • Cambiados ajustes del texto

2.1.7

  • Probado con WordPress 6.3

2.1.6

  • Corrección de fallo de sesión
  • Añadido enviar cookies
  • Añadidos los eventos view_cart y remove_from_cart

2.1.5

  • Corregido el fallo con los números de versiones

2.1.4

  • Corregido fallo en la pestaña de webhooks

2.1.3

  • El campo de ajustes «URL del contenedor de GTM de servidor» no es obligatorio

2.1.2

  • Añadida compatibilidad con WordPress 6.2

2.1.1

  • Corrección de los datos de usuario en el evento de compra

2.1.0

  • Añadidos ajustes de «Cookie Keeper»

2.0.2

  • Actualizada la descripción y capturas de pantalla

2.0.1

  • Actualizada la descripción y capturas de pantalla

2.0.0

  • Modificada la página de ajustes del plugin. Se añadieron dos pestañas nuevas: Capa de datos y Webhooks.
  • Añadida la integración con el plugin WooCommerce.
  • Pestaña de capa de datos. Añadida la funcionalidad para hacer seguimiento de eventos de ecommerce en la capa de datos: Login, SignUp, ViewItem, AddToCart y BeginCheckout. Incluidos datos de usuarios.
  • Pestaña de webhooks. Añadida la funcionalidad de enviar datos de Purchase o Refund a una URL de terceros.

1.1.4

  • Añadida compatibilidad con WordPress 6.1

1.1.3

  • Añadida compatibilidad con WordPress 6.0

1.1.2

  • Mejoras de seguridad

1.1.1

  • Añadida compatibilidad con WordPress 5.9

1.1.0

  • Añadida compatibilidad con el cargador personalizado de Stape.

1.0.5

  • Actualización sobre el cambio de nombre de GTM de servidor a Stape.

1.0.4

  • Corregidos problemas relacionados con el depurador GTM de servidor

1.0.3

  • Añadida compatibilidad con WordPress 5.7
  • Añadidos más enlaces a las instrucciones de instalación

1.0.2

  • Añadidos eventos de ecommerce

1.0.1

  • Actualización de recursos y textos.

1.0.0

  • Versión inicial