Link Google Tag Manager on WordPress website

14 March، 2022 158 مشاهدة

Link Google Tag Manager on WordPress website

You are wondering, what is the point of linking Google Tag Manager on your WordPress site? The importance of this is due to the fact that Google Tag Manager makes it easy for marketers to implement tags or track pixels without having to rely on web developers to do it on their behalf. With that installation, you are the master of your site, without resorting to any specialist.

Install Google Tag Manager

Log in to the program on your website. After installing WordPress, but also after every change in appearance. This process only applies to WordPress sites. This process is performed by the person responsible for managing your website. This process takes place in the WordPress dashboard. This installation takes about 5 minutes. Here’s some code to your WordPress site Getting started We recommend using the Google Chrome browser to navigate the web Administrator access to your WordPress blog.

What is Google Tag Manager?

Google Tag Manager is a free tool that allows you to manage and publish marketing tags snippets of code or tracking pixels on your website or mobile app without always having to edit your website code.

Create a Google Tag Manager account and create your own tag

  • Go to Google Tag Manager (https://marketingplatform.google.com/about/tag-manager/).
  • Click “Start Free” and sign in with your Google account (or create one).
  • Click on the (START FOR FREE) button.

تثبيت Google Tag Manager على موقع WordPress

  • Then click on Add a New Account.

تثبيت Google Tag Manager على موقع WordPress

  • ضف اسمًا إلى حسابك (على سبيل المثال: اسم الشركة) واختر بلدك (1،2).

تثبيت Google Tag Manager على موقع WordPress

  • يمكنك تحديد ما إذا كنت تريد مشاركة بياناتك مع Google اضغط فوق “؟” لمزيد من المعلومات.
  • في علامة التبويب “إعداد الحاوية” ، اختر اسمًا للحاوية الخاصة بك (على سبيل المثال: www.mysite.com) (3).
  • بعد ذلك ، اختر النظام الأساسي المستهدف – في حالة موقع الويب سيكون (“WEB”4).
  • ثم اضغط على “إنشاء” (5).
  • اقرأ وأقبل “اتفاقية شروط خدمة إدارة العلامات من Google” اضغط على “نعم”.

تثبيت Google Tag Manager على موقع WordPress

  • أنت الآن في Google Tag Manager Dashboard Tag Manager ، والخطوة التالية هي الانتقال إلى قسم علامة التبويب “المسؤول”.

تثبيت Google Tag Manager على موقع WordPress

  • ثم انقر على “تثبيت برنامج Google Tag Manager”.

تثبيت Google Tag Manager على موقع WordPress

هناك يمكنك رؤية الكود الذي تحتاج إلى تثبيته على موقع الويب الخاص بك.

تثبيت برنامج Google Tag Manager إلى موقع WordPress الخاص بك.قم بتسجيل الدخول إلى منطقة إدارة WordPress الخاصة بك: (على سبيل المثال: yourblogdomain.com/wp-admin أو yourblogdomain.com/wp-login.php).

تثبيت Google Tag Manager على موقع WordPress

تثبيت Google Tag Manager على موقع WordPress

  • After logging in, go to “Dashboard > Appearance > Theme Editor.”

تثبيت Google Tag Manager على موقع WordPress

  • You are now in the theme editor section of your WordPress blog, where you see the actual source code for your theme (within your website). But fear not, we guide you step by step on how to add Google Tag Manager code there.

On the left side, you see the single page code of your theme (in HTML) On the right side, you see the menu to access the different files that make up your theme.

The next step is to find the “HEADER” for your theme, this is the piece of code that loads first on every page of your website, and this is the file we want to modify to place the code that will be launched on every page of your (WordPress) blog.

  • In the theme editor, head to the right side and select “Theme Header (header.php)”.
  • If you don’t find it, you can press “CTRL-F” to search for it and find it more easily.

تثبيت Google Tag Manager على موقع WordPress

  • Now press Ctrl + F (it will open the search console) and search for “<hea”.

تثبيت Google Tag Manager على موقع WordPress

  • This will define the place that you will use in the next step.

تثبيت Google Tag Manager على موقع WordPress

  • Go back to the “Google Tag Manager” tab in your Chrome browser.

تثبيت Google Tag Manager على موقع WordPress

  • Head to the code you exposed earlier in the admin – install Google Tag Manager.

تثبيت Google Tag Manager على موقع WordPress

  • Select the first piece of code and copy it – note that Google highlights that you should paste this code as high up as possible in the <head> of the page, this is very important since the higher the TAG, the faster it will load.

تثبيت Google Tag Manager على موقع WordPress

  • Just paste the code in the theme editor under ‘<head>’.

تثبيت Google Tag Manager على موقع WordPress

قبل

تثبيت Google Tag Manager على موقع WordPress

بعد

تثبيت Google Tag Manager على موقع WordPress

  • Go back to the Google Tag Manager tab and copy the second part of the code – this time this code should be pasted immediately after the opening <body> tag in the theme editor.

تثبيت Google Tag Manager على موقع WordPress

  • Press Ctrl + F on your keyboard search for “body”.

تثبيت Google Tag Manager على موقع WordPress

  • Locate Open <body>.

تثبيت Google Tag Manager على موقع WordPress

  • Then paste the second code right below it.

تثبيت Google Tag Manager على موقع WordPress

  • Finally, click on “update file” at the bottom of the page.

تثبيت Google Tag Manager على موقع WordPress

  • Now you should see that “The file was successfully edited”.

تثبيت Google Tag Manager على موقع WordPress

Congratulations, you have now finished installing the Google Tag Manager on your WordPress site to verify that the Google Tag Manager is installed correctly. Install the Tag Assistant extension (by Google Chrome) After installation, click on the Tag Assistant icons in the Chrome browser.

  • Click on “enable”.

تثبيت Google Tag Manager على موقع WordPress

You should now see all signs of your work or if you encounter any problems. In the screenshot below, it’s yellow because the Google Tag Manager tab is empty.

تثبيت Google Tag Manager على موقع WordPress

Google Tag Manager is now connected to your WordPress site. You are now ready to add more tags and tracking pixels to your site. GTM will make it easier for you to sell to us. In the next article, we will cover how to add Google Analytics to your website.

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