Container.FunctionCallTagCallback
Stay organized with collections
Save and categorize content based on your preferences.
Callback that is provided by the application to execute a custom tag.
Public Method Summary
abstract void |
execute( String
functionName, Map< String, Object>
parameters)
Callback is given the Function Name of the macro and a map of named parameters
(the map may contain String, Double, Boolean, Integer, Long, Map, or List
values).
|
Public Methods
public abstract void execute (String functionName, Map<String, Object>
parameters)
Callback is given the Function Name of the macro and a map of named parameters (the
map may contain String, Double, Boolean, Integer, Long, Map, or List values).
The functionName
is the same name by which the Callback was registered.
It's provided as a convenience to allow a single Callback to be registered for multiple
function call tags.
When application code makes a call to push an event to the data layer, that may
cause this callback to execute. The callback will execute on the same thread as the
push call.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["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-31 UTC."],[[["`Container.FunctionCallTagCallback` allows apps to execute custom tags in Google Tag Manager."],["It uses the `execute` method which provides the function name and a map of parameters (String, Double, Boolean, Integer, Long, Map, or List)."],["The callback executes on the same thread as the data layer push event, using the registered function name."]]],[]]