Descripción
Connects Google Analytics to WordPress
Supports Universal Analytics / analytics.js
Supports Global Site Tag / gtag.js
Supports Google Analytics 4
Este complemento habilita Google Analytics para todo tu sitio de WordPress. Ligero y rápido con muchas funciones excelentes.
GA Tracking Options
- Google Tag / gtag.js
- Soporta Universal Analytics/analytics.js
- Legacy / ga.js
Note: Google renamed “Global Site Tag” to “Google Tag”.
Enable Google Analytics 4
Steps to enable Google Analytics 4:
- Follow this guide to create a GA 4 account
- During account creation, you’ll get a tracking (measurement) ID
- Add your new tracking ID to the plugin setting, “GA Tracking ID”
- Select “Google Tag” for the plugin setting, “Tracking Method”
Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
GA Feature Support
- Supports Google Analytics 4
- Soporta Muestra de Anuncios
- Supports Enhanced Link Attribution
- Soporta Anonimización IP
- Soporta Force SSL
- Soporta Rastreador de Objetos
- Supports Google Optimize
- Supports User Opt-Out
Also supports tracking links and conversions via the Custom Code setting. Learn more about Google Analytics!
Features
- Un rendimiento increíblemente rápido
- Hace una cosa y la hace bien
- Drop-dead simple y fácil de usar
- Regularly updated and “future proof”
- Stays current with the latest tracking code
- Incluye un código de seguimiento en el encabezado o pie de página
- Inserta el código de seguimiento en todas las páginas web de WordPress
- Incluye opción para añadir tu propio marcado personalizado
- Elegante página de configuración de plugin con paneles de alternancia
- Option to disable tracking of admin-level users
- Option to enable page tracking in the Admin Area
- Works with or without Gutenberg Block Editor
- Easy to customize the tracking code
- More features available in the Pro version »
Este es un plugin ligero que inserta el código de seguimiento de GA requerido. Para ver las estadísticas de su sitio, visite su cuenta de Google Analytics.
Pro Version
GA Google Analytics Pro includes the same features as the free version, PLUS the following:
- Visitor Opt-Out Box (frontend UI)
- Configure multiple tracking codes
- Live Preview of all tracking codes
- Choose location of multiple tracking codes
- Supports Custom Code in header or footer
- Disable tracking of all logged-in users
- Disable Tracking for any Post IDs, User Roles, Post Types
- Disable Tracking for Search Results and Post Archives
- Display Opt-Out Box automatically or via shortcode
- Complete Inline Help/Documentation
- Priority plugin help and support
Learn more and get GA Pro »
Privacy
User Data: This plugin does not collect any user data. Even so, the tracking code added by this plugin is used by Google to collect all sorts of user data. You can learn more about Google Privacy here.
Cookies: This plugin uses simple cookies for the visitor Opt-Out Box to remember user preference for opt-in or out of Google Analytics.
Services: This plugin does not connect to any third-party locations or services, but it does enable Google to collect all sorts of data.
GA Google Analytics is developed and maintained by Jeff Starr, 15-year WordPress developer and book author.
Support development
I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books:
- El Tao de WordPress
- Excavación en WordPress
- .htaccess hecho fácil
- Temas de WordPress En Profundidad
- Wizard’s SQL Recipes for WordPress
Y/o compra uno de mis complementos de WordPress premium:
- BBQ Pro – Super fast WordPress firewall
- Blackhole Pro – Automatically block bad bots
- Banhammer Pro – Monitor traffic and ban the bad guys
- GA Google Analytics Pro – Connect WordPress to Google Analytics
- Simple Ajax Chat Pro – Unlimited chat rooms
- USP Pro – Unlimited front-end forms
Links, tweets and likes also appreciated. Thank you! 🙂
Capturas
Instalación
How to install the plugin
- Sube el plugin a tu blog y activa
- Visita los ajustes para configurar tus opciones
Después de ajustar tu configuración, puedes verificar que el código GA esté incluido al ver el código fuente de tus páginas web.
Nota: este plugin agrega el código GA requerido a tus páginas web. Para que el código haga algo, debe corresponder a una cuenta de Google Analytics activa y correctamente configurada. Obtén más información en el Centro de asistencia de Google Analytics.
More info on installing WP plugins »
How to use the plugin
To enable Google Analytics tracking on your site, follow these steps:
- Visit the plugin settings
- Toggle open the “Plugin Settings” panel
- In the first setting, “GA Tracking ID”, enter your Tracking ID [1]
- In the next setting, “Tracking Method”, choose either Google Tag or Universal Analytics [2]
- Configure any other plugin settings as desired (optional)
Save changes and done. After 24-48 hours, you can log into your Google Analytics account to view your stats.
* Notes:
[1] The “Tracking ID” also may be referred to as “Tag ID”, “Measurement ID”, or “Property ID”, depending on various factors.
[2] Google Tag (aka, Global Site Tag) is required for Google Analytics 4. For steps on setting up GA 4, check out the plugin homepage (under “GA Tracking Options”). This information also is available at Plugin Planet.
Also note that it can take 24-48 hours after adding the tracking code before any analytical data appears in your Google Analytics account. To check that the GA tacking code is included, look at the source code of your web page(s). Learn more at the Google Analytics Help Center.
Upgrading Analytics
Google Analytics tracking methods change over time. First there was urchin.js
, then ga.js
, and now analytics.js
, soon to be replaced officially by gtag.js
. If you are using an older version and want to upgrade, check out these Google docs:
Plugin Upgrades
Para actualizar GA Google Analytics, elimina la versión anterior y reemplázala por la nueva. O simplemente haz clic en “Actualizar” en la pantalla de plugins y deja que WordPress lo haga automáticamente.
Nota: al desinstalar el plugin de la pantalla WP Plugins, se eliminan todas las configuraciones de la base de datos de WP.
Para obtener más información, visita la Página Principal del Plugin GA.
Restore Default Options
Para restaurar las opciones predeterminadas del plugin, desinstale/reinstale el plugin o visite los ajustes del plugin > Restaurar las opciones predeterminadas.
Uninstalling
GA Google Analytics cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen. Your collected GA data will remain in your Google account.
Pro Version
Want more control over your GA Tracking codes? With awesome features like Opt-Out Box and Code Previews? Check out GA Pro »
Like the plugin?
If you like GA Google Analytics, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!
FAQ
-
How to enable Google Analytics 4?
-
To enable Google Analytics 4:
- Follow this guide to create a GA 4 account
- During account creation, you’ll get a tracking (measurement) ID
- Add your new tracking ID to the plugin setting, “GA Tracking ID”
- Select “Google Tag” for the plugin setting, “Tracking Method”
Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
-
I am confused about all the different tracking methods?
-
This article should help to get a better idea of the changes: History of Google Analytics
-
¿El código de seguimiento no se muestra en el código fuente?
-
Si revisas el código fuente de tus páginas y no ves el código de seguimiento de GA, verifica lo siguiente:
- Comprueba que tu tema incluya los hooks,
wp_head
ywp_footer
- Si está utilizando un plugin de almacenamiento en caché, intente borrar el caché
Si el código de seguimiento de GA todavía no se muestra, lo más probable es que haya interferencia de otro plugin o tema. En este caso, la mejor manera de resolver el problema es realizar una solución de problemas de WordPress básica.
- Comprueba que tu tema incluya los hooks,
-
¿Google Analytic dice que el código de seguimiento no es detectado?
-
Debes esperar un tiempo para que Google recopile algunos datos, como al menos un día o lo que sea, lo estándar para Google Analytics. Para obtener más información, consulta el Centro de asistencia de Google Analytics.
-
**¿Puedo filtrar la salida del ajuste “Código GA Personalizado”?
-
Sí, puedes usar el filtro hook
gap_custom_code
. -
¿Cómo implementar Google Optimize?
-
Aquí están los pasos:
- Habilita Universal Analytics en los ajustes del plugin
- Añade el plugin Optimizado (p.e.,
ga('require', 'GTM-XXXXXX');
) a la configuración, “Código GA Personalizado” - Agrega el fragmento de ocultación de página (parpadeo) a la configuración «Custom & lt; cabeza & gt; Code»
- Habilita la configuración, «Custom & lt; head & gt; Location»
¡Hecho! Puedes ver el código fuente de tus páginas web para verificar los resultados.
More info about Google Optimize.
-
How to enable Opt-out of tracking?
-
Aquí están los pasos:
- Add the following code to the plugin setting, “Custom Code”:
<script>window['ga-disable-UA-XXXXX-Y'] = true;</script>
- Check the box to enable the setting, “Custom Code Location”.
¡Hecho! Puedes ver el código fuente de tus páginas web para verificar los resultados.
More info about user opt-out.
- Add the following code to the plugin setting, “Custom Code”:
-
How to disable the “auto” parameter in ga(create)?
-
By default the plugin includes the
auto
parameter in the tracking code:ga('create', 'GA-123456789000', 'auto');
However some tracking techniques (such as Site Speed Sample Rate) require replacing the
auto
parameter. To do it:First disable the
auto
parameter by adding the following code to WordPress functions or custom plugin:// GA Google Analytics - Disable auto parameter function ga_google_analytics_enable_auto($enable) { return false; } add_filter('ga_google_analytics_enable_auto', 'ga_google_analytics_enable_auto');
Now that
auto
is disabled, you can replace it with your own parameter(s). For example, to implement Universal Analytics Site Speed Sample Rate, enter the following code in the plugin setting “Custom Tracker Objects”:{'siteSpeedSampleRate': 100}
Save changes and done. The resulting tracking code will now look like this:
ga('create', 'GA-123456789000', {'siteSpeedSampleRate': 100});
So can adjust things as needed to add any parameters that are required.
-
How to implement Anonymize?
-
- Add to “Custom Tracker Objects” setting:
{ 'anonymize_ip': true }
- Save changes and done.
- Add to “Custom Tracker Objects” setting:
-
¿Tienes una pregunta?
-
Para hacer una pregunta, sugerir una característica o proporcionar comentarios, contáctame directamente. Obten más información sobre Google Analytics y métodos de seguimiento de GA.
Reseñas
Colaboradores y desarrolladores
«GA Google Analytics – Connect Google Analytics to WordPress» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«GA Google Analytics – Connect Google Analytics to WordPress» ha sido traducido a 10 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «GA Google Analytics – Connect Google Analytics to WordPress» 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
¡Gracias a todos los que comparten comentarios para GA Google Analytics!
If you like GA Google Analytics, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!
New Pro version available! Check out GA Pro »
20240308
- Updates plugin settings page
- Updates default translation template
- Improves plugin docs/readme.txt
- Tests on WordPress 6.5 (beta)
Full changelog @ https://plugin-planet.com/wp/changelog/ga-google-analytics.txt