উন্নত iOS ট্যাগ ম্যানেজার কনফিগারেশন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google ট্যাগ ম্যানেজারের কার্যকারিতা বাড়ানোর জন্য, আপনি ফাংশন কল ভেরিয়েবল এবং ফাংশন কল ট্যাগ যোগ করতে পারেন। ফাংশন কল ভেরিয়েবল আপনাকে প্রাক-নিবন্ধিত ফাংশনগুলিতে কলের মাধ্যমে ফিরে আসা মানগুলি ক্যাপচার করতে দেয়। ফাংশন কল ট্যাগগুলি আপনাকে প্রাক-নিবন্ধিত ফাংশনগুলি সম্পাদন করতে দেয় (যেমন অতিরিক্ত পরিমাপ এবং পুনঃবিপণন সরঞ্জামগুলির জন্য হিটগুলি ট্রিগার করা যা বর্তমানে Google ট্যাগ ম্যানেজারে ট্যাগ টেমপ্লেটগুলির সাথে সমর্থিত নয়)৷
একটি কাস্টম ট্যাগ তৈরি করতে, একটি ক্লাস তৈরি করুন যা TAGCustomFunction
প্রোটোকল প্রয়োগ করে:
@implementation MYCustomTag<TAGCustomFunction>
- (NSObject*)executeWithParameters:(NSDictionary*)parameters {
// Add custom tag implementation here.
}
@end
একটি কাস্টম ভেরিয়েবল তৈরি করতে, একটি ক্লাস তৈরি করুন যা TAGCustomFunction
প্রোটোকল প্রয়োগ করে:
@implementation MYCustomVariable<TAGCustomFunction>
- (NSObject*)executeWithParameters:(NSDictionary*)parameters {
// Return the value of the custom variable.
return @42;
}
@end
একবার আপনার ক্লাস TAGCustomFunction
এর সাথে সেট আপ হয়ে গেলে, আপনার তৈরি করা ক্লাসের নামের সাথে ট্যাগ বা ভেরিয়েবল সেট আপ করতে ট্যাগ ম্যানেজারের ওয়েব ইন্টারফেস ব্যবহার করুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-18 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-18 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\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,["# Advanced iOS Tag Manager configuration\n\nTo extend the functionality of Google Tag Manager, you can add Function Call\nvariables and Function Call tags. Function Call variables let you capture the\nvalues returned by calls to pre-registered functions. Function Call tags let you\nexecute pre-registered functions (e.g. to trigger hits for additional\nmeasurement and remarketing tools that are not currently supported with tag\ntemplates in Google Tag Manager).\n\nTo create a custom **tag** , create a class that implements the\n`TAGCustomFunction` protocol: \n\n @implementation MYCustomTag\u003cTAGCustomFunction\u003e\n\n - (NSObject*)executeWithParameters:(NSDictionary*)parameters {\n // Add custom tag implementation here.\n }\n\n @end\n\nTo create a custom **variable** , create a class that implements the\n`TAGCustomFunction` protocol: \n\n @implementation MYCustomVariable\u003cTAGCustomFunction\u003e\n\n - (NSObject*)executeWithParameters:(NSDictionary*)parameters {\n // Return the value of the custom variable.\n return @42;\n }\n\n @end\n\nOnce your class has been set up with `TAGCustomFunction`, use Tag Manager's web\ninterface to set up tags or variables with the class name you created."]]