Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Чтобы расширить функциональность Диспетчера тегов Google, вы можете добавить переменные вызова функций и теги вызова функций. Переменные вызова функций позволяют фиксировать значения, возвращаемые вызовами предварительно зарегистрированных функций. Теги вызова функций позволяют выполнять предварительно зарегистрированные функции (например, запускать обращения для дополнительных инструментов измерения и ремаркетинга, которые в настоящее время не поддерживаются шаблонами тегов в Диспетчере тегов Google).
Чтобы создать собственный тег , создайте класс, реализующий протокол 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 используйте веб-интерфейс Диспетчера тегов, чтобы настроить теги или переменные с именем созданного вами класса.
[[["Прост для понимания","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 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,[]]