Share

blog-header

10.05.2022

Integrating Data Tracking Code into WordPress CMS

 

Today, data tracking has become one of the important factors for digital advertising. The data of users visiting a website is used to increase the efficiency of advertisements. In order to track this data, tracking codes must be integrated into the website.

In this article, I will tell you how to add a tracking code to the WordPress CMS, which is one of the most used CMS in the world.

First of all, I should point out that there are several ways to do this. The most commonly used of these methods are:

  1. Integrating the theme codes from the WordPress panel,
  2. Integrating via plugin from WordPress panel,
  3. Integrate with FTP information.

In this article, I will explain how to integrate the most used method, the WordPress panel, into the theme codes. Note that you need panel information (admin username and password) for this.

WordPress Altyapısına Veri Takip Kodu Entegre Etme

In order to log in to the WordPress panel, you need to add “/admin” or “/wp-admin” to the end of the url after typing the url address of the website into our browser. On some websites, the admin login url may be different. In such cases, you need to know about it.

WordPress Altyapısına Veri Takip Kodu Entegre Etme

You can log in after typing your username or email address and password on the page that opens.

 

WordPress Altyapısına Veri Takip Kodu Entegre Etme

 

After logging into the panel, you should hover over the menu named Appearance from the main menu on the left and select the Theme file editor from the submenus that opens. You should not pay attention to the order of the menu here. The order of this menu may be different on each website. Or the language of the panel can be different. By paying attention to these, you should make sure that you choose the right menu.

 

WordPress Altyapısına Veri Takip Kodu Entegre Etme

From the menu on the right of the editor that opens, we must select the field where we want to add the tracking code. For example, when we want to add a GTM code, Google states that this code should be added inside the <head> tags of the web page.
To add the GTM code, we need to select the file named header.php from the menu. WordPress gives this file the name of Theme header with automatic naming. You can also find it by this name. After selecting the file, you can find the <head> tags and add the GTM code between them.

Perfist Blog

Similar Articles

Other Articles