GA Google Analytics

Description

Inserts tracking code only, view site statistics in your Google Analytics account.

Features

  • Blazing fast performance
  • Does one thing and does it well
  • Drop-dead simple and easy to use
  • Uses latest version of GA Tracking Code
  • Includes GA Tracking Code in header or footer
  • Inserts your tracking code on all theme pages
  • Includes option to add your own custom markup
  • Sleek plugin Settings page with toggling panels
  • Lightweight, and born of simplicity, no frills
  • New! Option to disable GA on the frontend for Admin
  • New! Option to include GA in the Admin Area
  • New! Add custom directives to your GA code

GA Support

Learn more about Google Analytics!

Support development of this plugin

I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a cash donation, bitcoin donation, or purchase one of my books:

And/or purchase one of my premium WordPress plugins:

  • BBQ Pro – Pro version of Block Bad Queries
  • SES Pro – Super-simple & flexible email signup forms
  • USP Pro – Pro version of User Submitted Posts

Links, tweets and likes also appreciated. Thanks! 🙂

Screenshots

  • GA Google Analytics: Plugin Settings (panels toggle open/closed)

FAQ

Question: “I have installed the GA Google Analytics plugin and did insert the tracking code and also I checked in my website View Page Source the code is there, but in Google Analytic says tracking code is not detected.”

Answer: You need to wait awhile for Google to collect some data, like at least a day or whatever. Standard stuff for Google Analytics. For more information, check out the Google Analytics Help Center.

To ask a question, suggest a feature, or provide feedback, contact me directly.

Learn more about Google Analytics and GA tracking methods.

Reviews

Great, light-weight Google Analytics plugin

gbotica

I like this simplicity of this plugin. So many GA plugins are so bloated now. Nice and simple, quick to set up, does what it says it does .. no fuss. Just needs ability to block roles other than Administrator from the tracking code and then it would be 5-star for sure!

Read all 24 reviews

Changelog

20161116

  • Adds info to deprecation nag on plugin settings page
  • Adds info to the Overview panel on plugin settings page
  • Changes stable tag from trunk to latest version
  • Adds translation support for some missing strings
  • Updates plugin author URL
  • Updates Twitter link URL
  • Refactors add_gap_links() function
  • Updates URL for rate this plugin links
  • Regenerates new default translation template
  • Tests on WordPress version 4.7 (beta)

20160831

  • Renamed the plugin back to its original name, GA Google Analytics
  • Revised labels for first two “enable-GA” settings for clarity
  • Regenerated translation template

20160810

  • Renamed menu link from “GA Plugin” to “Google Analytics”
  • Renamed plugin from “GA Google Analytics” to “(GA) Google Analytics”
  • Replaced _e() with esc_html_e() or esc_attr_e()
  • Replaced __() with esc_html__() or esc_attr__()
  • Streamlined and optimized plugin settings page
  • Added plugin icons and larger banner image
  • Improved translation support
  • Tested on WordPress 4.6

20160331

  • Replaced GA Logo with retina version
  • Added screenshot to readme/docs
  • Added retina version of plugin banner
  • Updated readme.txt with fresh infos
  • Tested on WordPress version 4.5 beta

20151109

  • Tested on WordPress 4.4 (beta)
  • Updated minimum version requirement
  • Updated heading hierarchy on settings page
  • Added option to disable GA for admin users (Thanks to Daniele Raimondi)
  • Added support for IP anonymization (Thanks to Daniele Raimondi)
  • Added support for Force SSL (Thanks to Česlav Przywara)
  • Cleaned up some “Undefined index” Notices
  • Removed 404 link from Important Notice panel
  • Updated Google links in the Overview panel
  • Refined google_analytics_tracking_code()
  • Updated default GA ID, UA-XXXXX-Y
  • Added default tracker object, “auto”
  • Updated Google URLs in the readme.txt
  • Updated Google URLs in the Options panel
  • Updated info about adding custom trackers
  • Added support for custom GA code
  • General code cleanup and testing

20150808

  • Tested on WordPress 4.3
  • Updated minimum version requirement

20150507

  • Tested with WP 4.2 + 4.3 (alpha)
  • Changed a few “http” links to “https”
  • Added isset() to eliminate some PHP warnings

20150314

  • Tested with latest version of WP (4.1)
  • Increased minimum version to WP 3.8
  • Added Text Domain and Domain Path to file header
  • Streamline/fine-tune plugin code
  • Removed valign=”top” from settings page
  • Added option to enable GA reporting in Admin Area
  • Added alert/notice on settings page about Universal Analytics
  • Removed deprecated screen_icon()
  • Replaced default .mo/.po templates with .pot template

20140922

  • Tested with latest version of WP (4.0)
  • Increased minimum version to WP 3.7
  • Added conditional check for min-version function
  • Added optional field to display any other codes
  • Improved layout and terminology of settings page
  • Updated GA code for Display Advertising
  • Added support for Enhanced Link Attribution
  • Added support for Tracker Objects
  • Refactored google_analytics_tracking_code()
  • Updated mo/po translation files

20140123

  • Tested with latest WordPress (3.8)
  • Added trailing slash to load_plugin_textdomain()

20131107

  • Added uninstall.php file
  • Added “rate this plugin” links
  • Added support for i18n

Version 20131104

  • Added line to check for WP, prevent direct loading of script
  • Added support for Display Advertising
  • Added support for Universal Analytics/Analytics.js
  • Removed closing “?>” from ga-google-analytics.php
  • Tested with the latest version of WordPress (3.7)

Version 20130705

  • Added option to display in header or footer
  • Overview and Updates admin panels toggled open by default
  • Implemented translation support
  • Added info to settings page
  • General plugin check and code tuning

Version 20130103

  • Added margins to submit buttons (now required in WP 3.5)

Version 20121102

  • Revamped plugin settings page
  • Fine-tuned and further tested
  • Fleshed out documentation
  • New graphics and copy

Version 20120409

  • Initial release.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code