Prem Tiwari - - Plugins, WordPress
Hi Friends, Hope you are doing good. Today i have contributed a WordPress Plugin named “Fm Google Analytics” in WordPress plugin directory that is very useful and easy to install. In every website you are adding Google analytics code to track your website traffics, visitors.
By using google analytics you can collect Data in a single, accurate view of the customer and customized according to your needs. You can check the Real-time views of your business based on the filtered data reports.
=== FM Google Analytics ===
1 2 3 4 5 6 7 8 9 10 11 12 | /* * Plugin Name: FM Google Analytics * Plugin URI: https://www.freewebmentor.com/2016/09/google-analytics.html * Description: Add google analytics code in WordPress Blogs or websites. * Version: 1.0.0 * Author: Prem Tiwari * Author URI: http://freeewebmentor.com * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html */ |
Download it from wordpress plugin directory : Download
1 2 3 4 5 6 7 8 9 10 | add_action('admin_menu', 'fmga_google_analytics_settings'); function fmga_google_analytics_settings() { add_submenu_page( "options-general.php", 'Google Analytics settings', 'FM Google Analytics', 'manage_options', 'fmga-google-analytics', 'fmga_google_analytics_init'); } |
1) Download the archive file and unzip it in /wp-content/plugins, upload the archive at Plugins => Add New => Upload Plugin OR install via Plugins => Add New => Search for the fm google analytics in the search.
2) Activate the plugin through Plugin menu in WordPress
3) Navigate to Settings > FM Google Analytics and add web property ID.
Add Google Analytics web property ID
4) Click Save Settings and you have done!
After done above steps, visit your front end website and press CTRL+U button
and see the google analytics code will added on all pages.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari
Tags: all pages, analytics, analytics code, Google, google analytics code, google analytics plugin, Plugins, posts, web property id, wordpress plugin