For your Success, you have to know that how your audience interacts with your website. For this, Google Analytics is the best way to know your audience is through your traffic stats.
Lets know, how to add the Google Analytics Tracking Code in your WordPress site.
3 ways of installing Google analytics tracking code in wordpress website:
You can add Google Analytics code in WordPress site by Plugins, Direct Paste or by Functions.php.
- Plugins Method (Recommended)
There are many plugins available to add Google Analytics to your Site, and probably, it is the best method, just use a simple light-weight plugins like:
Just paste the Google Analytics code in the plugin’s setting page. Its complete.
- Paste Code Method
Just go to editor, and select header.php,
and paste Google Analytics Code in your theme’s header.php right after the <body> tag.
- By Functions.php File Method
Note: Use this method if you know what are you doing.
Add the following code in your theme’s functions.php file and paste your Google Analytics code in the given specific area
Its done. Now You can click on the Reporting tab to see your site’s analytics overview. It takes Google up to 12 – 24 hours to start providing you with the awesome site stats that you need.