2017-02-21 115 views
6

我們有一個使用增強分析的網站。在其中的產品列表中查看跟蹤代碼的頁面看起來是這樣的:谷歌增強的分析>未跟蹤自定義維度

window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; 
ga.l = +new Date; 
ga('create', 'xxxxxx', 'auto', { 
    anonymizeIp: true 
}); 

ga('require', 'ec'); 
ga('set', 'currencyCode', 'EUR'); 
ga('ec:addImpression', { 
    'id': '5', 
    'name': 'Lorem Ipsum', 
    'category': 'Lorem', 
    'list': 'lorem-list', 
    'dimension1': '15', 
    'dimension2': 'Lorem' 
}); 
ga('ec:addImpression', { 
    'id': '6', 
    'name': 'Lorem Ipsum', 
    'category': 'Lorem', 
    'list': 'lorem-list', 
    'dimension1': '16', 
    'dimension2': 'Lorem' 
}); 
ga('ec:addImpression', { 
    'id': '7', 
    'name': 'Lorem Ipsum', 
    'category': 'Lorem', 
    'list': 'lorem-list', 
    'dimension1': '17', 
    'dimension2': 'Lorem' 
});  
ga('send', 'pageview'); 

的印象是正確測量(ID,姓名,類別,列出等等),但自定義尺寸(DIMENSION1和維度2)似乎對於所有測量結果爲空(現已收集3周)。

據我所看到的代碼是完全一樣的文檔中所述:https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measuring-activities

我是什麼監督?

更新:根據要求使用Chrome GA的(匿名)的調試日誌:調試它似乎正確地提供的尺寸:

analytics_debug.js:10 Running analytics_debug.js. This script is intended for testing and debugging only. 
log @ analytics_debug.js:10 
J @ analytics_debug.js:9 
(anonymous) @ analytics_debug.js:76 
(anonymous) @ analytics_debug.js:76 
analytics_debug.js:10 Initializing Google Analytics. 
analytics_debug.js:10 Loading resource for plugin: ec 
analytics_debug.js:10 Loading script: "https://www.google-analytics.com/plugins/ua/ec.js" 
analytics_debug.js:10 Running command: ga("create", "UA-xxx-1", "auto", {anonymizeIp: true}) 
analytics_debug.js:10 Creating new tracker: t0 
analytics_debug.js:10 Auto cookieDomain found: "myclient.nl" 
analytics_debug.js:10 This field cannot be set in a create method. Please use ga("set", "anonymizeIp", true); 
log @ analytics_debug.js:10 
J @ analytics_debug.js:9 
Td @ analytics_debug.js:13 
ad @ analytics_debug.js:51 
Z.create @ analytics_debug.js:69 
Y.b.(anonymous function) @ analytics_debug.js:38 
jf.R @ analytics_debug.js:68 
jf.H @ analytics_debug.js:66 
Z.P @ analytics_debug.js:73 
cd @ analytics_debug.js:59 
A @ analytics_debug.js:59 
(anonymous) @ analytics_debug.js:76 
(anonymous) @ analytics_debug.js:76 
analytics_debug.js:10 Running command: ga("require", "ec") 
analytics_debug.js:10 Waiting on require of "ec" to be fulfilled. 
analytics_debug.js:10 Registered new plugin: ga(provide, "render", Function) 
analytics_debug.js:10 Running command: ga("require", "ec") 
analytics_debug.js:10 Waiting on require of "ec" to be fulfilled. 
analytics_debug.js:10 Executing Google Analytics commands. 
analytics_debug.js:10 Registered new plugin: ga(provide, "ec", Function) 
analytics_debug.js:10 Running command: ga("require", "ec") 
analytics_debug.js:10 Plugin "ec" intialized on tracker "t0". 
analytics_debug.js:10 Running command: ga("set", "currencyCode", "EUR") 
analytics_debug.js:10 Running command: ga("ec:addImpression", {id: "1", name: "xxxx", category: "xxx", list: "xxxx", dimension1: "7", dimension2: "xxx"}) 
analytics_debug.js:10 Running command: ga("ec:addImpression", {id: "2", name: "xxxx", category: "xxx", list: "xxxx", dimension1: "7", dimension2: "xxx"}) 
analytics_debug.js:10 Running command: ga("ec:addImpression", {id: "3", name: "xxxx", category: "xxx", list: "xxxx", dimension1: "7", dimension2: "xxx"}) 
analytics_debug.js:10 Running command: ga("ec:addImpression", {id: "7", name: "xxxx", category: "xxx", list: "xxxx", dimension1: "7", dimension2: "xxx"}) 
analytics_debug.js:10 Running command: ga("ec:addImpression", {id: "8", name: "xxxx", category: "xxx", list: "xxxx", dimension1: "7", dimension2: "xxx"}) 
analytics_debug.js:10 Running command: ga("send", "pageview") 
analytics_debug.js:10 
Sent beacon: 

analytics_debug.js:10 _j1            (&jid)  
analytics_debug.js:10 adSenseId          (&a)   xxxxxxxxx 
analytics_debug.js:10 apiVersion          (&v)   1 
analytics_debug.js:10 clientId           (&cid)  xxxxxxxxx 
analytics_debug.js:10 currencyCode          (&cu)  EUR 
analytics_debug.js:10 ec:impression list "1" name      (&il1nm)  xxx 
analytics_debug.js:10 ec:impression list "1" product "1" category  (&il1pi1ca) xxx 
analytics_debug.js:10 ec:impression list "1" product "1" dimension "1" (&il1pi1cd1) 7 
analytics_debug.js:10 ec:impression list "1" product "1" dimension "2" (&il1pi1cd2) xxx 
analytics_debug.js:10 ec:impression list "1" product "1" id   (&il1pi1id) 1 
analytics_debug.js:10 ec:impression list "1" product "1" name   (&il1pi1nm) xxx 
analytics_debug.js:10 ec:impression list "1" product "2" category  (&il1pi2ca) xxx 
analytics_debug.js:10 ec:impression list "1" product "2" dimension "1" (&il1pi2cd1) 7 
analytics_debug.js:10 ec:impression list "1" product "2" dimension "2" (&il1pi2cd2) xxx 
analytics_debug.js:10 ec:impression list "1" product "2" id   (&il1pi2id) 2 
analytics_debug.js:10 ec:impression list "1" product "2" name   (&il1pi2nm) xxx 
analytics_debug.js:10 ec:impression list "1" product "3" category  (&il1pi3ca) xxx 
analytics_debug.js:10 ec:impression list "1" product "3" dimension "1" (&il1pi3cd1) 7 
analytics_debug.js:10 ec:impression list "1" product "3" dimension "2" (&il1pi3cd2) xxx 
analytics_debug.js:10 ec:impression list "1" product "3" id   (&il1pi3id) 3 
analytics_debug.js:10 ec:impression list "1" product "3" name   (&il1pi3nm) xxx 
analytics_debug.js:10 ec:impression list "1" product "4" category  (&il1pi4ca) xxx 
analytics_debug.js:10 ec:impression list "1" product "4" dimension "1" (&il1pi4cd1) 7 
analytics_debug.js:10 ec:impression list "1" product "4" dimension "2" (&il1pi4cd2) xxx 
analytics_debug.js:10 ec:impression list "1" product "4" id   (&il1pi4id) 7 
analytics_debug.js:10 ec:impression list "1" product "4" name   (&il1pi4nm) xxx 
analytics_debug.js:10 ec:impression list "1" product "5" category  (&il1pi5ca) xxx 
analytics_debug.js:10 ec:impression list "1" product "5" dimension "1" (&il1pi5cd1) 7 
analytics_debug.js:10 ec:impression list "1" product "5" dimension "2" (&il1pi5cd2) xxx 
analytics_debug.js:10 ec:impression list "1" product "5" id   (&il1pi5id) 8 
analytics_debug.js:10 ec:impression list "1" product "5" name   (&il1pi5nm) xxx 
analytics_debug.js:10 encoding           (&de)  UTF-8 
analytics_debug.js:10 hitType           (&t)   pageview 
analytics_debug.js:10 javaEnabled          (&je)  0 
analytics_debug.js:10 language           (&ul)  en-us 
analytics_debug.js:10 location           (&dl)  https://www.myclient.nl/xxxx 
analytics_debug.js:10 screenColors          (&sd)  24-bit 
analytics_debug.js:10 screenResolution         (&sr)  1680x1050 
analytics_debug.js:10 title           (&dt)  xxxxx - myclient 
analytics_debug.js:10 trackingId          (&tid)  UA-xxxx-1 
analytics_debug.js:10 viewportSize          (&vp)  1610x494 
+0

您已經在屬性設置中配置了尺寸1和2,它們都是活動的? – nyuen

+0

是的,兩者都顯示在媒體資源設置頁面上,並對「產品」展示有效。我可以在我的自定義報告中看到它們,但指標是空的。 – RMK

+0

此外,尺寸是產品範圍? – nyuen

回答

1

我的假設是,有兩個問題。

1)您正在使用產品範圍自定義維度。

由於您的自定義維度是產品範圍,因此請注意,這些維度不會通過增強型電子商務的所有階段歸因於該ID。這意味着自定義維度只會包含與其發送的匹配相關的數據。在這種情況下,您將能夠檢索的唯一指標是「展示次數」。如果您想使用其他相關指標查看此自定義維度,則需要將其包含在每個增強型電子商務匹配中。

鏈接,更多的增強型電子商務歸屬信息:https://support.google.com/analytics/answer/6014841?hl=en#product_attribution

這讓我們想到:

2)你可能會使用您的自定義尺寸錯誤的度量。

因爲這些尺寸僅在其中,他們被送到了點有關,並給予您所提供的例子,它可以創建唯一的報告是:

尺寸:

尺寸1,外形尺寸2

度量:

曝光

在所提供的自定義報告實例(具有AUTH或/瀏覽量),所使用的指標是綜合瀏覽量。由於您的維度並非按照級別維度發送,而是與頁面查看匹配一起發送,因此這些自定義維度沒有可用的「網頁瀏覽」指標,這導致它們爲空的原因。

+0

謝謝。我現在開始明白我走錯了路,並通過調整你的洞察力,看到我的數據,但不是以我期望的方式進行調整,所以我會用這個方式進行。謝謝。 – RMK