PhpSword Google Analytics


PhpSword Google Analytics WordPress plugin lets you add Google Analytics code easily into your WordPress websites. This is one of the simplest to use WordPress plugins to insert Google Analytics code or any other tracking codes easily on your websites built in WordPress. The following website analytics codes can be installed by using this plugin.

  • Google Analytics
  • Yahoo Web Analytics
  • Clicky
  • Piwik
  • Mint
  • Church Analytics
  • KISSmetrics
  • Open Web Analytics
  • Clicktale
  • CrazyEgg
  • CloudFlare

PhpSword Google Analytics WordPress Plugin Features

  • Very simple and easy to use.
  • No complex menus or setting.
  • Just copy and past your Google Analytics code to the given box and done.
  • Enable or disable the tracking code on the website.
  • Also supports other analytic services listed above.
  • Compatible with almost every version of WordPress.

How Does It Work?

The PHP codes of this plugin save the Google tracking codes in the website database. Once the pages of your website are accessed by the users, WordPress loads an action hook named wp_footer on every page request. On every wp_footer action hook the plugin appends the analytics code to the pages. The procedure is the same for all post types such as the home page, category page, post pages or custom pages. This enables Google to access and track all the pages of your website properly.


Currently the plugin is available in only the English language. We will add more languages soon.

More Information and Support

  • Homepage of PhpSword Google Analytics Plugin for WordPress
  • More WordPress plugins by Pradnyankur Nikam
  • Plugin support and help

Read more and Support

  • If you like our analytics plugin, please provide your valuable feedback and suggestions to improve the quality of the plugin.
  • Feel free to test the plugin in different WordPress versions and vote in the Compatibility section so that other users can check compatibility and download the appropriate version.
  • Share your experience by rating the plugin.
  • Read about plugin news, updates and more on our official website.
  • Do not hesitate to ask questions, report bugs/errors or anything related to our plugin through our support section, author’s website or plugin website.


PhpSword Google Analytics WordPress plugin is released under the GPLv2. You can download, install and use this plugin for free on your personal or commercial website.


  • PhpSword Google Analytics Screenshot1


This section describes how to install the Google Analytics code in your WordPress website. Read the following sections carefully to install and use this plugin on your website.

Search and install from the WordPress administrator panel

  1. If you are logged into your WordPress, from the admin panel go to the ‘Plugins’ menu and click the ‘Add New’ button.
  2. On the Plugins installation page, under the Search navigation menu, enter ‘PhpSword Google Analytics’ in the search bar and click ‘Search Plugins.’
  3. You will find ‘PhpSword Google Analytics plugin By Pradnyankur Nikam’ in the list.
  4. Click the ‘Install Now’ button to install the plugin or click ‘Details’ to read more. The ‘Install Now’ link is also available on the details popup window.
  5. Once the plugin is installed, you need to activate the plugin to use it on your website.

Manual Installation

  1. To install the plugin manually, visit PhpSword Google Analytics WordPress plugin description page.
  2. Click the ‘Download Version 1.0’ button on the page to download and save the plugin zip file named to your computer.
  3. Login to your WordPress admin panel. Go to Plugins -> Add New -> select ‘Upload’ navigation on the page. Click the ‘Browse’ button, select the downloaded file from your computer and click the ‘Install Now’ button. WordPress will upload and automatically extract and install the plugin in the appropriate directory for you.


    Extract the file and upload all the files inside ‘phpsword-google-analytics’ folder to your website’s wp-content/plugins directory. Go to plugins and activate the PhpSword Google Analytics plugin from the list.
  4. Reload the WordPress Admin Panel and you will see a new menu ‘PhpSword Analytics’ on the left sidebar menu of you administrator panel.
  5. Click and open the ‘PhpSword Analytics’ page. Here, you can insert and save your Google Analytics code or other website tracking code.
  6. You can also completely enable or disable the tracking code by selecting the respected dropdown menu.


Is this plugin free to use?

Yes. This plugin is absolutely free to install and use.

Is the plugin secure to use?

Yes. We have done our best to keep the php codes safe and secure. If you encounter any security related issue, feel free to contact us.

Can I add other website’s analytics code using this plugin?

Yes! You can add other website’s analytics code by using this plugin. Just copy, paste and save the tracking codes of other services in the given box.

What are the requirements to use this plugin?

You need an active Google Analytics account and obviously a WordPress website.

I have several WordPress websites. Can I track all of them using one plugin?

No, you need to install the plugin on each WordPress website.

Where can I see the analytics report?

You can see your detailed analytics report in your Google Analytics account. This plugin just helps you to add the google analytics codes inside your WordPress website.

How do I turn off the analytics?

On plugins page you can find the dropdown menu to enable or disable the tracking code. Just choose the appropriate option and save.

How can I deactivate or uninstall the plugin?

Go to the plugins menu and deactivate the plugin from the installed plugins list.

More Questions?

Your suggestions and feedback are very important to us. If you have any questions or suggestions, feel free to ask us.


Non ci sono revisioni per questo plugin.

Contributi e sviluppo

“PhpSword Google Analytics” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.


Traduci “PhpSword Google Analytics” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • Second version of the plugin released on 29 November 2021.


  • First version of the PhpSword Google Analytics WordPress plugin released and available to download on 30 October 2014.