如何将dataLayer.push转换为Google Analytics目标? [英] How can I turn dataLayer.push into a Google Analytics Goal?

查看:856
本文介绍了如何将dataLayer.push转换为Google Analytics目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢打开

  window.dataLayer.push({'event':'Offer','vpv': '/提供引线'}); 

  window.dataLayer.push({'event':'Offer','eventCategory':'Success','eventAction':'Lead','eventLabel':pageId}); 

加入GA目标,显示我算作潜在客户的人。



我设法在TM中发现了这个事件,但在GA中没有发现。

您能否把我带到TM和GA所需的步骤?

解决方案


window.dataLayer.push({'event':'Offer','vpv':'/ offer-lead '));

下面是我最终提出的解决方案:



    1. 我创建了一个自定义事件的触发器,设置为在Offer上触发。名为vpv的变量。

    2. 我创建了一个页面视图的GA标签,其中页面的更多设置=>设置字段设置为步骤2中的数据层变量。
      我将它设置为Fire在步骤1的触发器上。

    3. 在GA中,我创建了一个目标/ offer-lead路径的目标。


    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".

    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?

    解决方案

    window.dataLayer.push({ 'event': 'Offer', 'vpv': '/offer-lead'});

    Here's the solution I eventually came up with:

      1. I created a Trigger of a Custom Event set to Fire On "Offer".
      2. I created a Data Layer Variable called "vpv".
      3. 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.

    1. In GA, I created a Destination Goal for the path of "/offer-lead".

    这篇关于如何将dataLayer.push转换为Google Analytics目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆