Stay organized with collections
Save and categorize content based on your preferences.
To extend the functionality of Google Tag Manager, you can add Function Call
variables and Function Call tags. Function Call variables let you capture the
values returned by calls to pre-registered functions. Function Call tags let you
execute pre-registered functions (e.g. to trigger hits for additional
measurement and remarketing tools that are not currently supported with tag
templates in Google Tag Manager).
To create a custom tag, create a class that implements the
TAGCustomFunction protocol:
@implementationMYCustomTag<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Add custom tag implementation here.}@end
To create a custom variable, create a class that implements the
TAGCustomFunction protocol:
@implementationMYCustomVariable<TAGCustomFunction>-(NSObject*)executeWithParameters:(NSDictionary*)parameters{// Return the value of the custom variable.return@42;}@end
Once your class has been set up with TAGCustomFunction, use Tag Manager's web
interface to set up tags or variables with the class name you created.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 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."]]],[]]