2017-02-21 24 views
6

Chúng tôi có trang web sử dụng phân tích nâng cao. Trên trang nơi một danh sách các sản phẩm được xem mã theo dõi trông như thế này:Google Analytics nâng cao> Thứ nguyên tùy chỉnh không được theo dõi

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'); 

hiển thị sẽ được đo một cách chính xác (id, tên, thể loại, liệt kê vv) nhưng kích thước tùy chỉnh (dimension1 và dimension2) dường như được null cho tất cả các phép đo (được thu thập trong 3 tuần nay).

Theo như tôi có thể thấy mã được chính xác như đã nêu trong tài liệu: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measuring-activities

tôi giám sát gì?

Cập nhật: Theo yêu cầu của (ẩn danh) debug log sử dụng chrome GA: debug nơi có vẻ như kích thước được cung cấp một cách chính xác:

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

Bạn đã định cấu hình thứ nguyên 1 và 2 trong cài đặt Thuộc tính của mình và cả hai đều đang hoạt động? – nyuen

+0

Có, cả hai được hiển thị trên trang cài đặt thuộc tính và hoạt động cho hiển thị 'sản phẩm'. Tôi có thể thấy chúng trong báo cáo tùy chỉnh của mình nhưng các số liệu trống. – RMK

+0

Ngoài ra, các kích thước là sản phẩm có phạm vi? – nyuen

Trả lời

1

giả định của tôi là có hai vấn đề.

1) Bạn đang sử dụng thứ nguyên tùy chỉnh phạm vi sản phẩm.

Khi thứ nguyên tùy chỉnh của bạn là phạm vi sản phẩm, điều quan trọng cần lưu ý là các tham số này không thuộc tính ID thông qua tất cả các giai đoạn của Thương mại điện tử nâng cao. Điều này có nghĩa là thứ nguyên tùy chỉnh sẽ chỉ có dữ liệu có liên quan đến lần truy cập mà nó được gửi. Trong trường hợp này, chỉ số duy nhất bạn có thể truy xuất là 'Số lần hiển thị'. Nếu bạn muốn xem thứ nguyên tùy chỉnh này với các chỉ số có liên quan khác, thì bạn cần phải bao gồm nó trong mỗi lần truy cập Thương mại điện tử nâng cao.

Link dành cho nâng cao chi tiết ghi công thương mại điện tử: https://support.google.com/analytics/answer/6014841?hl=en#product_attribution

nào đưa chúng ta đến:

2) Bạn có thể sử dụng các số liệu sai với kích thước tùy chỉnh của bạn.

Bởi vì những kích thước chỉ có liên quan tại thời điểm mà họ được gửi đi, và đưa ra các ví dụ bạn đã cung cấp, báo cáo chỉ có thể được tạo ra là:

Kích thước:

Dimension 1, Kích thước 2

Metrics:

Impressions

Trong cung cấp ví dụ báo cáo tùy chỉnh (với auth hoặc/pageviews), chỉ số được sử dụng là số lần truy cập trang. Vì thứ nguyên của bạn không phải là thứ nguyên cấp lần truy cập, được gửi cùng với lần truy cập lượt xem trang, không có chỉ số 'số lần truy cập trang' có sẵn cho các thứ nguyên tùy chỉnh này, dẫn đến lý do chúng trống.

+0

Cảm ơn bạn. Bây giờ tôi bắt đầu hiểu nơi tôi đã đi sai và bằng cách tinh chỉnh bằng cách sử dụng thông tin chi tiết của bạn, tôi thấy dữ liệu của mình nhưng không theo cách tôi mong đợi sẽ chơi với điều này. Cảm ơn. – RMK

Các vấn đề liên quan