Add Google Analytics to your website

236 مشاهدة

Add Google Analytics to your website

Tracking results is the best way to prove your success and know the top of what you do on the site. This applies to you in any case, whether you report to your boss, a client, or even work for yourself. The obvious question here is how do you do this? By adding Google Analytics to your website in the coming lines, we will learn how to add.

Add Google Analytics to your website

The first thing you need to do is define your goal. What are you working for? Often times, you will be tasked with increasing website traffic or increasing website conversions. To do that, you’ll need a tool that tracks those numbers, and that’s where it comes in. How does it work? How to get started? What information does Adding Google Analytics to your website give you?

What is the addition of Google Analytics?

It is a site tracking tool so that you can know the performance of those sites, by collecting and sorting user data on your site. The process of collecting data in reports aims to make them easy to read and count.

A brief history of Google Analytics

Previously, we learned about adding Google Analytics to your website. Website data has never been so beautiful and easy to read. If you want to know the type of traffic on your site, you will have to read the server log of the site. The server log posts a list of information and for each event action to the site. This is really hard to understand. To make things a little easier, companies have started compiling log files and creating reports based on the available information. A company called Urchin did log file reporting and it grew in popularity very quickly. So much so that in 2005, Urchin was acquired by Google and the process of creating Google Analytics and its own brand began.

Create a Google Analytics account

  • First, go to the Google Analytics website.
  • You must sign in with your Google account or create one.

إضافة Google Analytics

  • Click on “Set up for free” and on the next page, you will begin to create your account.

إضافة Google Analytics

  • Start by creating a Site Name (1), selecting a Reporting Time Zone (2) and Currency (3), then click Next.

إضافة Google Analytics

  • Select the category for your business.

إضافة Google Analytics

  • Select “Size of your business” and select “How do you intend to use Google Analytics with your business”.

إضافة Google Analytics

  • Click Create.

إضافة Google Analytics

  • Accept all required Google terms by clicking accept.

إضافة Google Analytics

  • Select (web).

إضافة Google Analytics

  • Enter your website URL (1), give your stream a name (2), and click “create stream”.

إضافة Google Analytics

Check if you should choose HTTP:// or https://

Enter your web site URL in your internet browser and then just click on the left side of the URL bar and check if it is secured or not. In some cases, there will be a red (unsafe) lock or a green (secure) lock.

إضافة Google Analytics

  • If it is secured, choose https://, if not – http://

إضافة Google Analytics

  • Now you should see the “Administrator” area of ​​Google Analytics. Here you can see the Measurement ID in Google Analytics (1). There is also a tracking code (2) that you will use to collect data from your website.

إضافة Google Analytics

Add Google Analytics using the WordPress Plugin Install the “Header Footer Code Manager” plugin

  • Log in to your WordPress admin area:

(eg: yourblogdomain.com/wp-admin or yourblogdomain.com/wp-login.php).

إضافة Google Analytics

  • In the left menu, hqy’ on ‘Plugins’ then ‘Add New’.

إضافة Google Analytics

  • In the search engine on the upper right side of the page search: “header footer code manager”.

إضافة Google Analytics

  • Wait for it to install.
  • Then press activate.
  • When you see “HFCM” in your listing. click on it.

إضافة Google Analytics

  • Now press “Add New”.

إضافة Google Analytics

  • Now name the new snippet (eg “Google Analytics”) (1), then set “Location” to “Title” (2). Then leave that tab open while you get the Google Analytics icon on another tab.

إضافة Google Analytics

  • Now go back to the ‘admin’ panel in Google Analytics (open it in a new web browser tab) and click on ‘Data Streams’.

إضافة Google Analytics

  • Expand the “global site tag” area.

إضافة Google Analytics

  • There you will see your Google Analytics tracking code.

إضافة Google Analytics

  • Simply copy it.

إضافة Google Analytics

  • Then go back to the Add New window and paste the code at the bottom.

إضافة Google Analytics

  • Then press Save.
  • Click again on “HFCM” in your WordPress menu.
  • Here you can see all of your add-ons. You should see that the extension you just added is turned on (if not, tap the On/Off slider).

إضافة Google Analytics

Check if Google Analytics is working properly.

  • First, go to your website and leave it open in a single tab in your browser.
  • In another tab, open the Google Analytics website.
  • In Google Analytics, go to Reports.

إضافة Google Analytics

  • If everything is set correctly, you should see at least one active user now (it’s you).

إضافة Google Analytics

Now my friend, you are done adding Google Analytics to your website and now you can track and measure the traffic from your website.

All Copyright Reserved for Nofal S.E.O™ 2022