Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aby rozszerzyć funkcjonalność Menedżera tagów Google, możesz dodać zmienne wywołania funkcji i tagi wywołania funkcji. Zmienne wywołania funkcji umożliwiają przechwytywanie wartości zwracanych przez wywołania zarejestrowanych wcześniej funkcji. Tagi wywołania funkcji umożliwiają wykonywanie wcześniej zarejestrowanych funkcji (np. w celu aktywowania działań na potrzeby dodatkowych narzędzi pomiarowych i remarketingowych, które nie są obecnie obsługiwane przez szablony tagów w Menedżerze tagów).
Dodawanie tagów i zmiennych niestandardowych
Aby dodać tag niestandardowy lub zmienną niestandardową za pomocą wywołania funkcji:
Zaimplementuj klasę rozszerzającą klasę com.google.android.gms.tagmanager.CustomTagProvider lub com.google.android.gms.tagmanager.CustomVariableProvider:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-11-08 UTC."],[[["Function Call variables enable capturing values from pre-registered function calls, extending Google Tag Manager's capabilities."],["Function Call tags allow execution of pre-registered functions, such as triggering hits for unsupported measurement tools."],["Custom tags and variables can be added by implementing a class extending `CustomTagProvider` or `CustomVariableProvider`."],["ProGuard users should prevent obfuscation of custom class names and methods using the Keep annotation."],["Within the Google Tag Manager interface, use the fully qualified class name to configure the custom tags and variables."]]],["Function Call variables and tags extend Google Tag Manager's functionality. Function Call variables capture values from pre-registered function calls, while Function Call tags execute pre-registered functions. To add custom tags/variables, implement a class extending `CustomTagProvider` or `CustomVariableProvider`. Use the `@Keep` annotation to prevent obfuscation with ProGuard. Finally, configure tags and variables in Google Tag Manager's web interface using the fully qualified class name.\n"]]