انتقل إلى المحتوى

الدروس بناء المواقع مبتدئ1 دقائق قراءة

How to Set Up Google Analytics 4 on Your Website

Create a GA4 property, add the tag directly, with Google Tag Manager or in WordPress, confirm data arrives, and respect visitor consent.

بواسطة فريق تحرير ZSOLNET آخر تحديث

هذه الصفحة غير متاحة بالعربية بعد، لذا تُعرض بالإنجليزية.

أهم النقاط

  • GA4 measures visits and actions with a Measurement ID like G-XXXXXXX.
  • Add the tag once — through the site's code, Tag Manager or a plugin, not several.
  • Ask for consent where the law requires it before analytics cookies are set.

1. Create a property

  1. Go to analytics.google.com and click Admin → Create → Property.
  2. Enter a name, time zone and currency, then business details.
  3. Choose Web as the platform, enter your site’s URL and create the stream.
  4. Copy the Measurement ID (G-…).

2. Add the tag

Directly in the site’s code — paste the snippet Google shows into the <head> of every page.

With Google Tag Manager — create a Google tag with your Measurement ID, trigger it on Initialization – All Pages, and publish.

In WordPress — use Google’s official Site Kit plugin, or your theme’s header-scripts setting. Don’t use more than one method.

3. Check it works

Open your site, then in GA4 go to Reports → Realtime. You should see yourself within a minute.

4. Track what matters

  • Mark key actions (form submissions, purchases) as Key events under Admin → Events.
  • Tag campaign links with the UTM builder so you know which ads and emails bring visitors.
  • Link Search Console under Admin → Product links.

الأسئلة الشائعة

Why isn't data showing up?

Standard reports can take 24–48 hours. Use Reports → Realtime or DebugView to confirm the tag works right away.

Should I use Tag Manager?

If you'll add other tags (ads, heatmaps, conversions), yes — it lets you manage them without editing the site's code each time.

شارك X LinkedIn Facebook

الدخول إلى حسابك

أدِر نطاقاتك واستضافتك وفواتيرك من مكان واحد.

اتصال آمن مباشرة مع منطقة العملاء في ZSOLNET.

ليس لديك حساب؟