- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
实现增强型电子商务后,我发现 Google Analytics(分析)中显示的一小部分页面没有具有 Analytics 代码。
在检查源代码时,失败页面上的代码与验证正确页面上的代码没有区别。
我安装了 GA Debug Google Chrome 扩展程序,我可以看到在某些页面上 ga("send", "pageview")
调用返回错误。
但是,我在任何文档或在线任何地方都找不到任何信息来描述 ga("send", "pageview")
调用中可能出现的错误,也没有提供任何可能有助于诊断任何错误的信息。可能出现的问题。
重要的是,页面上没有 JavaScript 错误,我能看到任何内容的唯一方法是使用 GA 调试插件 - 有些人说它并不能很好地工作!尽管如此,Google 在这一小部分页面上显示了一个未知问题。
以下是其中一个页面上的代码示例:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1 *new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-500228-1', 'auto');
ga('require', 'ec'); // Load the advanced ecommerce plug-in.
ga('require', 'displayfeatures'); // Load display advertising.
ga('set', '&cu', 'GBP'); // Set currency
// Add generated analytics elements from the request container
ga('ec:addImpression', {
'id': '021109021CB'
, 'name': 'Cam shaft, Type 4 Mechanical Std. (No Cam Wheel)'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 1
, 'price': 148.75
}); ga('ec:addImpression', {
'id': '071109021CB'
, 'name': 'Cam shaft Type4 Hydraulic Std (No Cam Wheel)'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 2
, 'price': 133.92
}); ga('ec:addImpression', {
'id': '021198541'
, 'name': ' Cam bearing set, std, 1.7-2.0 [43]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 3
, 'price': 9.93
}); ga('ec:addImpression', {
'id': '021109309G'
, 'name': 'Cam follower 1.7-2.0 Type4 engine 72-78'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 4
, 'price': 9.00
}); ga('ec:addImpression', {
'id': '022109309'
, 'name': 'Cam Follower Hydraulic Type 4/WBX & CT Engine'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 5
, 'price': 14.17
}); ga('ec:addImpression', {
'id': 'AC10920091'
, 'name': ' Lifters, Type 4 Scat Lube-a-Lobe Set of 8'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'SCAT'
, 'list': 'Product listings'
, 'position': 6
, 'price': 95.33
}); ga('ec:addImpression', {
'id': '021109301A'
, 'name': 'Pushrod, Type4 with Solid tappets, 271mm'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'VW'
, 'list': 'Product listings'
, 'position': 7
, 'price': 24.83
}); ga('ec:addImpression', {
'id': '021198335'
, 'name': 'Pushrod Tube and Seal Kit for Type 4 Engines 1700-2000'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'KITS'
, 'list': 'Product listings'
, 'position': 8
, 'price': 40.33
}); ga('ec:addImpression', {
'id': '021109335C'
, 'name': 'Push rod tube 1.7-2.0 Aircooled'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'SSP'
, 'list': 'Product listings'
, 'position': 9
, 'price': 4.92
}); ga('ec:addImpression', {
'id': '021109335CSS'
, 'name': 'Push rod tube 1.7-2.0 Aircooled Stainless Steel'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'KAEFER'
, 'list': 'Product listings'
, 'position': 10
, 'price': 8.58
}); ga('ec:addImpression', {
'id': '021109345A'
, 'name': ' Pushrod Seal, Between Tube & Case,1.7-2.0, Small [37]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 11
, 'price': 0.42
}); ga('ec:addImpression', {
'id': '021109349B'
, 'name': ' Pushrod Seal, Tube to Head, 1.7-2.0, Large 25.1 [37]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 12
, 'price': 0.42
}); ga('ec:addImpression', {
'id': '021109339'
, 'name': 'Retaining wire, push rods tube 1.7-2.0'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 13
, 'price': 6.42
}); ga('ec:addImpression', {
'id': '113109651A'
, 'name': 'Valve collet, all aircooled, WBX, Diesel and Golf 1100-1800'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 14
, 'price': 0.83
}); ga('ec:addImpression', {
'id': '021109641B'
, 'name': ' Retainer, valve spring, 1.7-2.0 [38]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 15
, 'price': 3.72
}); ga('ec:addImpression', {
'id': '021109623K'
, 'name': 'Valve Spring, Type4 1.7-2.0'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 16
, 'price': 4.17
}); ga('ec:addImpression', {
'id': '021109601'
, 'name': 'Inlet valve, 1.7 & 1.8 8/74-> (39.3mm x 8mm Stem)'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 17
, 'price': 5.42
}); ga('ec:addImpression', {
'id': '022109601'
, 'name': ' Inlet valve, 1.8, 8/73-7/74 (41x8mm) [39]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 18
, 'price': 8.74
}); ga('ec:addImpression', {
'id': '021109601A'
, 'name': 'Inlet valve, 2.0, 8/75-79 (37.5mm)'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 19
, 'price': 5.83
}); ga('ec:addImpression', {
'id': '022109612D'
, 'name': 'Exhaust valve, 1.7-2.0, 33mm'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 20
, 'price': 8.25
}); ga('ec:addImpression', {
'id': '022109612A'
, 'name': ' Exhaust valve, 1800cc, 34mm* [50]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 21
, 'price': 8.50
}); ga('ec:addImpression', {
'id': '021101403A'
, 'name': 'Valve Guide, Inlet, Type 4 Engine'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 22
, 'price': 3.36
}); ga('ec:addImpression', {
'id': '021101417A'
, 'name': 'Valve guide, exhaust, 9mm'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'IVAM'
, 'list': 'Product listings'
, 'position': 23
, 'price': 3.33
}); ga('ec:addImpression', {
'id': '022109443'
, 'name': 'Rocker arm, Inlet, 2.0 Aircooled 76-83, 10mm screw'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'VW'
, 'list': 'Product listings'
, 'position': 24
, 'price': 21.00
}); ga('ec:addImpression', {
'id': '022109463'
, 'name': '**NLA** Rocker arm, Exhaust, 2.0 Aircooled 76-83, 10mm scr'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 25
, 'price': 21.00
}); ga('ec:addImpression', {
'id': 'N0110077'
, 'name': 'M7 nut for 1.7-2.0 Type4 rocker shafts'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 26
, 'price': 0.25
}); ga('ec:addImpression', {
'id': '043109451'
, 'name': 'Valve screw, Best Quality ,1.2-1.6, 8/60-, 8mm'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 27
, 'price': 1.67
}); ga('ec:addImpression', {
'id': '022109451'
, 'name': 'Adjusting screw,valve,1.8-2.0 2.1DJ,1.9DG 89-, 10mm,NOT 1.7!'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 28
, 'price': 3.33
}); ga('ec:addImpression', {
'id': 'N0111525'
, 'name': ' Nut, 8mm valve adjuster+general use [10]'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': ''
, 'list': 'Product listings'
, 'position': 29
, 'price': 0.34
}); ga('ec:addImpression', {
'id': '028109453'
, 'name': 'Nut for 10mm valve adjusting screw'
, 'category': 'Bay Bus 1968-79/Bay Bus 1968-79 Type 4 Engine Parts - 1.7, 1.8 & 2.0 litre/Valvetrain, Pushrods & Camshaft'
, 'brand': 'VW'
, 'list': 'Product listings'
, 'position': 30
, 'price': 2.08
});
ga('send', 'pageview');
这与许多其他正常工作的页面相同,显然具有不同的产品数据 - 所以我想知道产品数据本身是否导致了问题。
我在GA Debug中看到的错误如下:
Error: type={0: "len", 1: 9199} method= message= account=
M.log
O
fc
pc
(anonymous function)
gc.(anonymous function).H
ad.(anonymous function).send
b.(anonymous function)
jf.R
jf.H
Z
(anonymous function)
(anonymous function)
(anonymous function)
最后三个匿名函数来自 ec.js,其余来自analytics_debug.js。
当然,所有这些都可能是转移注意力的事情,因为它来自调试而不是 GA 本身 - 但除了 Google 之外,我没有其他迹象表明存在问题,否认这些页面上有代码!
最佳答案
我也收到了同样的错误消息。
Error: type={0: "len", 1: 18608} method= message= account=
我在Stackoverflow上搜索了如何解决这个问题。而且我找到了一篇文章。您可能对此感兴趣。
文章说:
the limit for a http request to the Google Analytics endpoint is 8192 bytes - this is stated in the documentation for the measurement protocol (which is the basis for Universal Analytics)
为了避免这种限制,您可以限制展示数据以缩小 http 请求。读完这篇文章后,我将印象数据仅限于 ID 和品牌、价格。我排除了姓名数据。
您可以引用 Eike Pierstorff 撰写的 Stackoverflow 文章。 Google Analytics. Enhanced Ecommerce. Limit for product impressions
关于javascript - 某些页面上的 ga ("send"、 "pageview") 中的 Google Analytics 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28481589/
似乎在上周四/周五发生了一些变化,指标如下:ga:adsenseAdsViewed、ga:adsenseAdsClicks、ga:adsenseRevenue、ga:adsenseAdUnitsVie
ga:entranceBounceRate 和 ga:visitBounceRate 有什么区别? 我从谷歌分析中找到了以下定义,比如 ga:visitBounceRate 单页访问的百分比(即访问
我正在使用 GA API 运行超过 1 年数据的两个查询: 查询1: Get apiQuery = analytics.data().ga() .get("ga:" + profileId, "2
我已经尝试了几天,但没有任何效果。无论我做什么,这些事件都不会被捕获。 我在顶部导入ReactGA import ReactGA from "react-ga"; 导入后初始化它 ReactGA.in
如果未声明 ga,以下 javascript 语句将导致错误。 if (ga) { alert(ga); } 错误是: ga is not defined 看起来未声明的变量无法在 bool 表
您好,我正在尝试使用 GA API 获取特定月份的 Google/自然流量。使用this 我尝试将维度设置为 ['month', 'year' ] 和 ['sourceMedium'],使用指标作为
我对谷歌分析的问题已经困扰我一段时间了,如下:自从我在网站中添加了第三方 iframe 后,分析推荐就变得疯狂,首先他们添加了虚假访问,但通过添加过滤器解决了这个问题。但引荐仍然没有像以前那样注册哪个
我的网站使用 Google Tag Manager 跟踪浏览量,并使用 ga('require', 'ec') 在某些页面中加载增强型电子商务插件,但有一个错误: Uncaught Reference
我正在尝试将 React-GA 添加到我的 create-react-app 项目中(它已被弹出),并且出现以下控制台警告。 [react-ga] gaTrackingID is required i
我正在页面的头部运行谷歌分析。为了提高性能,我在正文末尾加载其他代码,例如 facebook 或 jQuery 业务逻辑异步延迟。 如果 ga('set', 'contentGroup1', 'Cat
谁能解释一下: 1. ga、GA 和 Final Hibernate 版本之间的区别? 2.我应该使用 maven 存储库还是 jboss nexus 存储库? 3.为什么最新的兼容性矩阵 (http
这是网站 - http://www.ssangyong-favorit.ru/由于某种原因,此代码给我“GA 未定义”错误: ga.getAll()[0].get('clientId') 该网站通过
我们目前依赖于使用 UTM 参数(utm_source、utm_medium、utm_campaign、utm_term、utm_content)来实现 Universal Analytics 与 G
我正在使用 Google Tag Manager现在在我所有的网站上实现谷歌分析并在 future 证明它们适用于任何其他脚本。 我将 GTM 放在我的样板文件中。 有什么理由这可能不是好的做法吗?
在我的 Maven pom.xml 中,我有以下依赖项: org.hibernate hibernate-entitymanager 3.3.2.GA org.h
我正在优化我的 external Google Analytics script现在我想知道: https://www.google-analytics.com/ga.js 和 https://ssl
我们最近将 GA Premium 连接到 bigQuery,以导出 1 个属性和 1 个 View 中的所有非抽样数据。我们决定在我们的客户单一属性中使用未过滤的 View 来确保我们获得所有数据,但
我想跟踪谷歌分析中的一些更新而不是添加到分析数据中的值。 例如,如果我想跟踪所有用户的平均高分是多少,以便能够微调评分系统。 我可以在每次游戏退出时添加新的高分值,但它会是增量的,来自同一用户的旧数据
我有以下电子商务跟踪代码。我正在使用多个跟踪器。页面浏览量已正确跟踪,但当我查看电子商务报告时,没有数据通过。我错过了什么? (function (i, s, o, g, r, a, m) {
在我的登录页面的ajax调用中,如果它返回一个名为is_first_login = 1的参数,那么我需要调用ga()来发送GA事件。 此后,页面立即重定向到主仪表板页面。但不知道为什么,有时 ga()
我是一名优秀的程序员,十分优秀!