Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Google Etiket Yöneticisi'nin işlev kapsamını genişletmek için işlev çağrısı değişkenleri ve işlev çağrısı etiketleri ekleyebilirsiniz. İşlev Çağrısı değişkenleri, önceden kayıtlı işlevlere yapılan çağrılar tarafından döndürülen değerleri yakalamanıza olanak tanır. İşlev Çağrısı etiketleri, önceden kaydedilmiş işlevleri (ör. Google Etiket Yöneticisi'ndeki etiket şablonlarıyla şu anda desteklenmeyen ek ölçüm ve yeniden pazarlama araçlarına yönelik isabetleri tetiklemek) çalıştırmanızı sağlar.
Özel etiket oluşturmak için TAGCustomFunction protokolünü uygulayan bir sınıf oluşturun:
@implementationMYCustomTag<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Add custom tag implementation here.}@end
Özel değişken oluşturmak için TAGCustomFunction protokolünü uygulayan bir sınıf oluşturun:
@implementationMYCustomVariable<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Return the value of the custom variable.return@42;}@end
Sınıfınız TAGCustomFunction ile ayarlandıktan sonra, oluşturduğunuz sınıf adını kullanarak etiket veya değişken ayarlamak için Etiket Yöneticisi'nin web arayüzünü kullanın.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2024-11-08 UTC."],[[["Function Call variables and tags extend Google Tag Manager's capabilities by enabling custom functions."],["Function Call variables capture values from pre-registered functions, while Function Call tags execute them."],["Custom tags and variables are created by implementing the `TAGCustomFunction` protocol in a class."],["These custom classes are then utilized within Tag Manager's interface to set up new tags or variables."]]],["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"]]