我的自定义尺寸&指标不会显示在Google Analytics中? [英] My Custom Dimensions & Metrics don't show in Google Analytics?

查看:166
本文介绍了我的自定义尺寸&指标不会显示在Google Analytics中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Google跟踪代码管理器与Google Analytics(通用分析)结合使用。



以下是我的设置,



以下是我的Google跟踪代码管理器(GTM)设置看起来像跟踪数据:



这就是触发器:ClicksDonate_Class,



最后,这里是Google Analytics(分析)中自定义指标和维度的设置GA):





使用这些Custom Metrics的任何报告都显示没有结果(经过数天测试)。



我正在寻找任何建议。



谢谢您,
RCS



PS。这是我以前的帖子,我认为我解决了我的问题...
http://bit.ly / 1OOhOH6



这里是另外一个有类似问题的帖子。 按下捐赠按钮按以下顺序执行:
*(0)
1.将表单中的数据推送到电子商务数组中:'_gaq';
2.发送给neverland的电子商务数据中的数据(无所谓);
3.创建'gaqTemp'数组来连接三个'_gaq'数组;
4. dataLayer.push()用'gaqTemp'中的
变量中的对象填充dataLayer;
5.完成。



*在步骤(0)和步骤(1)之间的某个位置,按下按钮时,GTM触发器触发按钮与类等...)和标签触发。



我想要发生的一切正在发生,只是没有按照正确的顺序。 dataLayer在'clicks donate button'时被填充,例如:

  dataLayer.push({'giftAmount' :''}); //此时一切为空

而非

  dataLayer.push({'giftAmount':一些金额}); 

因为变量在标签触发时为空。



我的dataLayer显示日志中的所有预期对象和值,因为它们被推送。



这使我真正的问题,找到一种方法来填充dataLayer之前触发标签收集dataLayer数据。


I am using Google Tag Manager with Google Analytics (Universal Analytics).

Here is my setup, and here is our Donation Page.

The dataLayer is created before the Google Tags as:

var dataLayer = [{
'pageCategory' : 'Donation Page',
'txnPhase' : 'Transaction Pageview',
'txnT1' : new Date()
}];

On our eCommerce page I have added this code with executes only when a transaction is committed (and it works).

//TEMP BATCH
var gaqTemp = [].concat.apply([], gaq); //Puts 3 arrays of eCome data together so I can access it easier

//DIMENSIONS
var giftID = gaqTemp[1];
var txnID = gaqTemp[11];
var txnPhase = 'Transaction Closed';

//METRICS
var giftAmount = gaqTemp[3];
var giftCount = gaqTemp[15];
var txnT2 = new Date();

//PUSH TO dataLayer
dataLayer.push({'giftID' : giftID, 'txnID' : txnID, 'txnPhase' : txnPhase, 'giftAmount' : giftAmount, 'giftCount' : giftCount, 'txnT2' : txnT2});

The result looks like this when a donation is pushed and successful:

Here is what my Google Tag Manager (GTM) Setup looks like to track the data:

And this is the Trigger: ClicksDonate_Class,

And lastly, here is are my setups for Custom Metrics and Dimensions in Google Analytics (GA):

Any of my reports with these Custom Metrics show no results (tested over several days).

I am looking for any suggestions.

Thank you, RCS

PS. Here is my previous post where I 'thought' I solved my issue... http://bit.ly/1OOhOH6

Here is another post with a similar issue.

解决方案

Pressing the 'Donate Button' executes the following, in order: *(0) 1. Data from form pushed into eCommerce array: '_gaq'; 2. Data in eCommerce array sent to neverland (doesn't matter where); 3. 'gaqTemp' array created to concat the three '_gaq' arrays; 4. dataLayer.push() populates dataLayer with objects out of select variables from 'gaqTemp'; 5. Done.

*Somewhere between step (0) and step (1), whent he button is pressed, the GTM trigger fires (on click of button with class etc...) and the tag fires.

Everything I want to happen is happening, just not in the right order. The dataLayer is being populated at the time of 'clicks donate button', as such:

dataLayer.push({'giftAmount' : ''}); //everything is null at this point

rather than,

dataLayer.push({'giftAmount' : Some Amount});

because the variables are empty when the tag fires.

My dataLayer shows all the expected objects and values in the log, because they are pushed.

This makes my real issue, finding a way to populate the dataLayer before firing the tag to collect the dataLayer data.

这篇关于我的自定义尺寸&指标不会显示在Google Analytics中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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