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
In this guide, we will explain what a session is in Google Analytics 4 (GA4), why session duration matters, which session metrics are available, and how to configure these settings. What is a Session in GA4? A session represents the group of interactions a user has with your website or mobile app within a given […]
Read More
Beginner Level Web/App AnalyticsWhat is GEO (Generative Engine Optimization)? GEO is a new generation optimization method that ensures content stands out in AI-supported search systems. It aims to produce content that can provide quick and clear answers to user questions. In addition to traditional SEO, a simple and understandable language that appeals to artificial intelligence is used. Why […]
Read More
Mid Level SEOGEO is an optimization method developed to ensure that content is better understood and recommended by AI-powered search engines. Previously, when writing content, the goal was solely to rank high on Google. Now, however, AI systems read these contents and present summaries to users. This is exactly where GEO steps in. It ensures that content […]
Read More
Mid Level Content MarketingUnderstanding how visitors reach your website is crucial for measuring the success of your marketing strategies. Google Analytics 4 (GA4) provides the Channel Grouping feature to analyze traffic sources. With channel grouping, you can categorize visitor traffic into specific segments and make more informed marketing decisions. What is Channel Grouping in GA4? GA4’s channel […]
Read More
Beginner Level Web/App Analytics