iOS Tag Manager का बेहतर कॉन्फ़िगरेशन

Google Tag Manager की सुविधाओं का इस्तेमाल करने के लिए, आपके पास फ़ंक्शन कॉल जोड़ने का विकल्प है वैरिएबल और फ़ंक्शन कॉल टैग के बारे में ज़्यादा जानें. फ़ंक्शन कॉल वैरिएबल की मदद से पहले से रजिस्टर किए गए फ़ंक्शन को कॉल करने पर मिलने वाली वैल्यू. फ़ंक्शन कॉल टैग से आपको पहले से रजिस्टर फ़ंक्शन को एक्ज़ीक्यूट करना. उदाहरण के लिए, 'अतिरिक्त' फ़ंक्शन के लिए हिट ट्रिगर करना मेज़रमेंट और रीमार्केटिंग टूल, जो फ़िलहाल टैग के साथ काम नहीं करते टेंप्लेट में).

पसंद के मुताबिक टैग बनाने के लिए, एक ऐसी क्लास बनाएं जो 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 के साथ अपनी क्लास सेट अप करने के बाद, Tag Manager के वेब का इस्तेमाल करें इंटरफ़ेस का उपयोग करें.