了解 GTM trigger 的一些重點
Trigger 的一些重點如下: 在設 trigger 前應該先對那些 GTM event 去擊發你的 tag 有些想法. trigger type 在概念上結合那些 GTM event(下圖中 gtm.XXX) 與交互動作(下圖中 Page View, Click, User Engagement 所指) (or event) 你想讓 GTM 開始去listening to. trigger 重點核心動作: triggers require a dataLayer.push() or a pre-container-snippet declaration to fire a tag. If a push() command doesn’t have an ‘event’ key, it becomes merely a “message” that’s added to the message bus. It does nothing for tags. If there’s an ‘event’ key in the message, the instance gets the name of the event (unless it’s one of the three default GTM events, see below) or just “Message” if there’s no ‘event’ key in the command. if there’s an ‘event’ key in the push()[當執行此命令] , a data layer helper object activates and goes through all the active triggers in your container. If any one of these matches the value of the ‘event’ key, and if all the other conditions in the trigger pass, the tag is injec...