10.05.2022
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:
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.
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.
You can log in after typing your username or email address and password on the page that opens.
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.
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
What is Site Speed? Site speed refers to how quickly a web page loads. (Site speed has multiple factors. The most important of these are initial load time and load speed.) This speed directly affects the visitor experience. A slow-loading site can cause users to leave the site and choose other pages. Additionally, search engines […]
Read More
Mid Level SEOWhat is Structured Data? Structured data is a coding system used to help search engines better understand the content of a website. Implemented using formats like JSON-LD and Microdata, it enables the presentation of detailed information such as products, events, and business details in a comprehensible way. This is especially advantageous for e-commerce websites, as […]
Read More
Mid Level SEOIn the digital marketing world, user-generated content (UGC) is becoming increasingly important. UGC includes videos where users share their own experiences, opinions, and creativity in promoting brands and products. So, why are UGC videos so significant in digital marketing strategies? 1. Trustworthiness and Authenticity User-generated content creates a more trustworthy perception for consumers compared to […]
Read More
Performance MarketingWith the transition from Universal Analytics to Google Analytics 4, there may be some issues you need to resolve. One of these issues is “unassigned” traffic. Dimensions appearing as “unassigned” / (not set) in reports negatively impact your ability to analyze and optimize. We will discuss the causes of “unassigned” traffic in your GA4 reports […]
Read More
Beginner Level Web/App Analytics