Adding Google Analytics to your WordPress site is very important in many sorts, it tells you who visited your site, how did they visit your site and what have they been looking for. There are some prerequisites to create this Plugin, however: ● A live WordPress installation running live ● Access to your site’s content through FTP ● A code or Text Editor Create this Plugin follow these steps, Step 1: Check for wp_head hook to check your theme’s header.php file Step 2: Create a new file in your plugins folder Step 3: Find your analytics tracking code from the Google Analytics site Step 4: Add some code including the tracking code to your plugin Step 5: Activate your plugin