Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

GTM Custom Function Tags

Compare
Choose a tag to compare
@cbrevik cbrevik released this 22 Jun 19:15
· 28 commits to master since this release
d9b8e91

#256 Support of custom JS function tags in Google Tag Manager, which are triggered from rules setup in your container.

Thanks to @farzadshafiee for the implementation!

Register a function tag by calling:

GoogleTagManager.registerFunctionCallTagHandler(
  "some_function",
  (functionName, tagArguments) => {
    console.log("Handling Function Call tag:", functionName);
    console.log("args:", tagArguments);
 }