با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای گسترش عملکرد Google Tag Manager، می توانید متغیرهای Function Call و Function Call را اضافه کنید. متغیرهای فراخوانی تابع به شما این امکان را می دهند که مقادیری را که توسط فراخوانی به توابع از پیش ثبت شده بازگردانده شده است، ثبت کنید. برچسبهای تماس تابع به شما امکان میدهند عملکردهای از پیش ثبتشده را اجرا کنید (مثلاً برای راهاندازی بازدیدها برای ابزارهای اندازهگیری و بازاریابی مجدد که در حال حاضر با الگوهای برچسب در Google Tag Manager پشتیبانی نمیشوند).
برای ایجاد یک تگ سفارشی، کلاسی ایجاد کنید که پروتکل TAGCustomFunction را پیاده سازی کند:
@implementationMYCustomTag<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Add custom tag implementation here.}@end
برای ایجاد یک متغیر سفارشی، کلاسی ایجاد کنید که پروتکل TAGCustomFunction را پیاده سازی کند:
@implementationMYCustomVariable<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Return the value of the custom variable.return@42;}@end
هنگامی که کلاس شما با TAGCustomFunction راه اندازی شد، از رابط وب Tag Manager برای تنظیم برچسب ها یا متغیرهایی با نام کلاسی که ایجاد کردید استفاده کنید.
تاریخ آخرین بهروزرسانی 2024-11-18 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2024-11-18 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eFunction Call variables and tags extend Google Tag Manager's capabilities by enabling custom functions.\u003c/p\u003e\n"],["\u003cp\u003eFunction Call variables capture values from pre-registered functions, while Function Call tags execute them.\u003c/p\u003e\n"],["\u003cp\u003eCustom tags and variables are created by implementing the \u003ccode\u003eTAGCustomFunction\u003c/code\u003e protocol in a class.\u003c/p\u003e\n"],["\u003cp\u003eThese custom classes are then utilized within Tag Manager's interface to set up new tags or variables.\u003c/p\u003e\n"]]],["Function Call variables and tags in Google Tag Manager enhance its capabilities by interacting with pre-registered functions. Both utilize a class implementing the `TAGCustomFunction` protocol, with the `executeWithParameters` method defining their behavior. For a tag, this method executes custom logic; for a variable, it returns a value. After implementing the protocol in the class, you can use the Tag Manager web interface to create tags or variables by referencing the class name.\n"],null,[]]