I like to turn
我想转
window.dataLayer.push({ 'event': 'Offer', 'vpv': '/offer-lead'});
or
window.dataLayer.push({ 'event': 'Offer', 'eventCategory': 'Success', 'eventAction': 'Lead', 'eventLabel': pageId});
into a GA Goal that shows people who I count as "leads".
进入GA目标,向我展示我认为是“领导者”的人。
I managed to catch this event in TM but not in GA.
Can you please take me to the needed steps in both TM and GA?
我设法在TM中捕获此事件但在GA中没有。你能带我到TM和GA所需的步骤吗?
2 个解决方案
#1
You need two things.
你需要两件事。
1) Tie together dataLayer with Google Analytics in TagManager. So you have to create new Tag for Google Analytics type EVENT. You set up Property ID and event parameters such as Category, Action and Label. All of them set up as macro/variable type DataLayer and point them to your key names in dataLayer push (eventCategory, eventAction and eventLabel). Firing rule should be more generic than event equals Offer, rather user event equals fire or something more generic. You can re-use the Tag for all other events.
1)将dataLayer与TagManager中的Google Analytics结合在一起。因此,您必须为Google Analytics类型的EVENT创建新标记。您可以设置属性ID和事件参数,例如“类别”,“操作”和“标签”。所有这些都设置为宏/变量类型DataLayer,并将它们指向dataLayer push(eventCategory,eventAction和eventLabel)中的键名。触发规则应该比事件等于Offer更通用,而不是用户事件等于火或更通用的东西。您可以为所有其他事件重复使用标记。
2) Set up Google Analytics. There create new goal from event and set Category to Success and Action to Lead.
2)设置Google Analytics。从事件创建新的目标,并将类别设置为成功,将行动设置为领导。
This is it.
就是这个。
#2
window.dataLayer.push({ 'event': 'Offer', 'vpv': '/offer-lead'});
window.dataLayer.push({'event':'Offer','vpv':'/ offer-lead'});
Here's the solution I eventually came up with:
这是我最终提出的解决方案:
-
- I created a Trigger of a Custom Event set to Fire On "Offer".
- I created a Data Layer Variable called "vpv".
- I created a GA Tag of "Page View" with "More Settings=>Fields to Set" of "page" set to the Data Layer Variable from step 2.
I set it to Fire On the trigger from step 1.
我创建了一个自定义事件的触发器设置为Fire On“Offer”。
我创建了一个名为“vpv”的数据层变量。
我创建了一个“页面视图”的GA标记,其中“更多设置=>要设置的字段”的“页面”设置为步骤2中的数据层变量。我将其设置为Fire在步骤1的触发器上。
- In GA, I created a Destination Goal for the path of "/offer-lead".
我创建了一个自定义事件的触发器设置为Fire On“Offer”。我创建了一个名为“vpv”的数据层变量。我创建了一个“页面视图”的GA标记,其中“更多设置=>要设置的字段”的“页面”设置为步骤2中的数据层变量。我将其设置为Fire在步骤1的触发器上。
在GA中,我为“/ offer-lead”的路径创建了目标目标。
#1
You need two things.
你需要两件事。
1) Tie together dataLayer with Google Analytics in TagManager. So you have to create new Tag for Google Analytics type EVENT. You set up Property ID and event parameters such as Category, Action and Label. All of them set up as macro/variable type DataLayer and point them to your key names in dataLayer push (eventCategory, eventAction and eventLabel). Firing rule should be more generic than event equals Offer, rather user event equals fire or something more generic. You can re-use the Tag for all other events.
1)将dataLayer与TagManager中的Google Analytics结合在一起。因此,您必须为Google Analytics类型的EVENT创建新标记。您可以设置属性ID和事件参数,例如“类别”,“操作”和“标签”。所有这些都设置为宏/变量类型DataLayer,并将它们指向dataLayer push(eventCategory,eventAction和eventLabel)中的键名。触发规则应该比事件等于Offer更通用,而不是用户事件等于火或更通用的东西。您可以为所有其他事件重复使用标记。
2) Set up Google Analytics. There create new goal from event and set Category to Success and Action to Lead.
2)设置Google Analytics。从事件创建新的目标,并将类别设置为成功,将行动设置为领导。
This is it.
就是这个。
#2
window.dataLayer.push({ 'event': 'Offer', 'vpv': '/offer-lead'});
window.dataLayer.push({'event':'Offer','vpv':'/ offer-lead'});
Here's the solution I eventually came up with:
这是我最终提出的解决方案:
-
- I created a Trigger of a Custom Event set to Fire On "Offer".
- I created a Data Layer Variable called "vpv".
- I created a GA Tag of "Page View" with "More Settings=>Fields to Set" of "page" set to the Data Layer Variable from step 2.
I set it to Fire On the trigger from step 1.
我创建了一个自定义事件的触发器设置为Fire On“Offer”。
我创建了一个名为“vpv”的数据层变量。
我创建了一个“页面视图”的GA标记,其中“更多设置=>要设置的字段”的“页面”设置为步骤2中的数据层变量。我将其设置为Fire在步骤1的触发器上。
- In GA, I created a Destination Goal for the path of "/offer-lead".
我创建了一个自定义事件的触发器设置为Fire On“Offer”。我创建了一个名为“vpv”的数据层变量。我创建了一个“页面视图”的GA标记,其中“更多设置=>要设置的字段”的“页面”设置为步骤2中的数据层变量。我将其设置为Fire在步骤1的触发器上。
在GA中,我为“/ offer-lead”的路径创建了目标目标。