دروازه برچسب Google برای تبلیغ کنندگان: بارگیری اسکریپت های Google شخص اول
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این سند برای توسعه دهندگانی است که از برچسب گذاری سمت سرور استفاده می کنند و می خواهند اسکریپت های Google را در زمینه شخص اول ارائه دهند.
دروازه برچسب Google برای تبلیغکنندگان به شما امکان میدهد اسکریپتهای Google، مانند gtm.js را مستقیماً از زیرساخت شخص اول خود به جای سرورهای Google بارگیری کنید. این به شما امکان می دهد داده ها را در یک زمینه شخص اول از طریق سرور برچسب گذاری خود یا از طریق CDN ارائه دهید.
قبل از شروع
این راهنما فرض می کند که شما کارهای زیر را انجام داده اید:
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis article guides developers on serving Google scripts like gtm.js or gtag.js from their own servers using server-side tagging for a first-party data context.\u003c/p\u003e\n"],["\u003cp\u003eBefore starting, ensure you have a server container in Tag Manager, a tagging server setup, and a configured custom server domain.\u003c/p\u003e\n"],["\u003cp\u003eImplementation involves configuring the client to load Google scripts through your server, updating the script source domain to your server, and verifying the script source using browser developer tools.\u003c/p\u003e\n"],["\u003cp\u003eIf using consent mode, you can further enhance control by setting up region-specific tag behavior after completing the implementation.\u003c/p\u003e\n"]]],["Developers using server-side tagging can load Google scripts (gtm.js, gtag.js) from their own server for a first-party context. This requires setting up a server container, a tagging server, and a custom server domain. Steps involve configuring the client to load scripts through the server and updating the script source URL on the website to point to the custom server. Verification includes checking the browser's developer tools to confirm that `gtm.js` loads from the custom server, not Google's.\n"],null,[]]