قائمة الوثائق
البداية
ما هو Opus Growthبدء سريعأضفه إلى الذكاء الاصطناعيكيف يعملالأمان والموافقةالرصيدالخططالأسئلة الشائعةتطبيقات الذكاء الاصطناعي
كل التطبيقاتChatGPTClaudeGrokPerplexityClaude CodeCodexGemini CLIOpenClawCursorVS CodeWindsurfMCP أخرىمنصات الإعلانات
Google AdsMeta AdsLinkedIn AdsMicrosoft AdvertisingTikTok AdsChatGPT Adsالوكالات وMCCمصادر البيانات
Search ConsoleGoogle AnalyticsYouTubeBusiness ProfileTag Managerالمواقع وSEO
AI ServerWordPressSEO Intelligenceالنقرات الاحتياليةمرجع الأدوات
كل الأدواتGoogle AdsMeta AdsTikTok AdsLinkedIn AdsMicrosoft AdvertisingChatGPT AdsSearch ConsoleGoogle AnalyticsYouTubeBusiness ProfileTag ManagerWordPressAI ServerSEO Intelligenceالنقرات الاحتياليةعبر القنواتالحساب والفوترةاللغة
Set WordPress Tracking Tags
Set a WordPress site's Google Tag Manager or GA4 measurement id, add code to the site header, or switch off an old tracking snippet.
- النوع
- يُجري تغييرات
- الرصيد
- 1
- المنصة
- WordPress
- الموافقة
- معاينة أولًا، وتُطبَّق بعد موافقتك
ماذا يفعل
Set a WordPress site's Google Tag Manager or GA4 measurement id, add code to the site header, or switch off an old tracking snippet.
gtm_id goes into the GTM4WP plugin when that plugin is active, otherwise the connector emits the tag itself, so this works with or without a tag plugin.
remove_id takes a measurement id like "GTM-5H2L5V63" or "AW-851563016" and removes it wherever it lives — a plugin setting, a header/footer box, or a WPCode snippet (that one is switched off, not deleted). This is how you stop a site double-counting after a container change. If the id is hard-coded in a theme PHP file it is reported back under `skipped` with the file and line; that copy can now be removed with wordpress_theme_file(mode="remove_block", contains="<id>"), which backs the file up and reverts automatically if the edit breaks PHP. head_code="" clears the header code the connector emits.
To change a few words inside the connector's existing header/footer code (an address in a JSON-LD block, a phone number) without resending the whole block, pass replace=[{"find":"old text","with":"new text"}] and replace_in="head" (default) or "body". The current code is read from the site, each find must match exactly (case-sensitive), and confirm=false PREVIEWS how many times each one matches and writes NOTHING; confirm=true applies and re-reads the code to verify. A find whose replacement is already in place is reported as already_applied and skipped, so repeating the call is safe.
وصف الأداة بالإنجليزية لأنه النص الرسمي الذي يراه الذكاء الاصطناعي.
MCP: wordpress_set_tracking
كيفية الاستخدام
لا تستدعي الأدوات بأسمائها. اكتب ما تريد في ChatGPT أو Claude أو أي مساعد متصل بـ Opus Growth بكلماتك، وسيختار الذكاء الاصطناعي هذه الأداة عندما تناسب.
المعلمات
| الاسم | النوع | إلزامي | الافتراضي | |
|---|---|---|---|---|
| gtm_id | string | اختياري | · | Exact gtm identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name. |
| ga4_id | string | اختياري | · | Exact ga4 identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name. |
| remove_id | string | اختياري | · | Exact remove identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name. |
| head_code | string | اختياري | · | Head code value for wordpress set tracking. Follow the documented provider format and use values returned by Opus Growth discovery tools where possible. |
| body_code | string | اختياري | · | Body code value for wordpress set tracking. Follow the documented provider format and use values returned by Opus Growth discovery tools where possible. |
| disable_snippet | integer | اختياري | 0 | Numeric disable snippet value for wordpress set tracking. Use the provider's expected unit, range, and precision. |
| enable_snippet | integer | اختياري | 0 | Numeric enable snippet value for wordpress set tracking. Use the provider's expected unit, range, and precision. |
| replace | array | اختياري | · | Replacement text or structured replacement rule to apply when this operation supports replacement. |
| replace_in | string | اختياري | head | Exact replace in value for wordpress set tracking. Supply text in the provider's required format; when it selects an existing resource, use the exact identifier returned by the relevant list or search operation. |
| confirm | boolean | اختياري | false | Safety confirmation for a state-changing operation. Leave false to preview or validate; set true only after the user explicitly approves the shown change. |
| site_url | string | اختياري | · | Exact URL of the connected WordPress site to target when more than one site is available. |
أدوات ذات صلة
list_wordpress_sitesBulk Find & Replace (WordPress)wordpress_bulk_replaceWordPress WP-CLI Commandwordpress_cliList WordPress Contact Formswordpress_contact_formsWordPress Core Info Fileswordpress_core_filesCreate WordPress Postwordpress_create_postWordPress Critical CSS (status / regenerate)wordpress_critical_cssEdit WordPress Menuwordpress_edit_menuEdit WordPress Page Designwordpress_edit_page_design