There is a simple way of monitoring the traffic to your newly built website. Now it’s time to get into how to create a plugin and activate. I know it might seem a little confusing at first but this is very simple. The way that Google tracks your traffic is by inserting the snippet of code into the head of each page. With WordPress, you only have to use the code one time and activate the plugin.
There are few options you could use when creating the plugin.
You could use a code/text editor of your choice. I prefer to use Atom. You will need an FTP access to the site to upload the plugin file, as in Filezilla.
Also, you want to make sure that within the header.php file you see the wp_head hook. How to check your WordPress header.php file. On your left sidebar, hover over Appearance and at the bottom of pop-up, you will click on Editor. From that screen, you will see the header.php file on the right-hand side. Click there and you shall see the wp_head hook.
2. Next, write the next line of code under the plugin information in the same file.
3. Next, copy the code that Google Analytics give you. I have cut out my account information for security purposes.
4. Next, paste that code from Google Analytics in your plugin file, including script tags.
5. After saving this file, you will now locate the folder within your WordPress to upload to. The Folder path would be wp-content/plugins. Once you upload the file to this location, go to your WordPress dashboard and click on Plugins. Next, you will have the list of all the plugins that you have installed and now you should see your plugin that you have created. Once located click on the Activate button and your finished.
Now you have completed the steps of making your own plugin for Google Analytics.
If you would like more information regarding Web Design. Contact us today through our contact form or by phone.
Contact Us Click to CallDoing digital marketing well takes time and practice. And like anything, there are definitely some…
As a new business, there is a long list of things you’re trying to accomplish.…
There are a lot of tools and resources at your disposal when it comes to…
If you own a business, you need to be able to generate as many leads…
In your small business, your customers are your best support system, and because of that,…
Starting a business is difficult, but if you can establish a name for yourself, your…