|
Post by account_disabled on Jan 30, 2024 4:17:02 GMT
SEO 分析 | 营销行业 | 搜索引擎优化工具 作者的观点完全是他们自己的(不包括催眠这一不太可能发生的事件),并且可能并不总是反映 Moz 的观点。 计算单个页面速度性能指标可以帮助您了解网站的整体运行效率。由于 Google 使用网站速度(通常由 PageSpeed 测量并称为PageSpeed)作为其算法对页面进行排名的信号之一,因此深入了解页面级别非常重要。 然而,网站性能优化的痛点之一是缺乏轻松地集体运行页面速度性能评估的能力。有很多很棒的工具,例如插件,可以帮助您更多地了解单个页面的性能,但这些工具不容易配置为帮助您收集多个 URL 的见解,并运行数百个单独的报告甚至数千页并不完全可行或高效。 2018 年 9 月,我开始寻找一种收集全站点性能指标的方法,并最终找到了一个可行的解决方案。虽然此方法解决了我最初的问题,但设置过程相当复杂,并且需要您有权访问服务器。 最终,这并不是一个有效的方法。 此外,与其他人(尤其是 UpBuild 之外的人)轻松共享 目标电话号码或电话营销数据 几乎是不可能的。 2018 年 11 月,也就是我发布此方法两个月后,Google发布了PageSpeed Insights API 的第 5 版。V5 现在使用 Lighthouse 作为其分析引擎,并且还整合了 Chrome 用户体验报告 (CrUX) 提供的现场数据。简而言之,此版本的 API 现在可以轻松提供Chrome Lighthouse 审核中提供的所有数据。 所以我回到了绘图板,我很高兴地宣布现在有一种更简单的自动化方法可以使用 Google Sheets 和 Pagespeed Insights API v5 来批量生成 Lighthouse 报告。 介绍自动化 PageSpeed 见解报告: 借助此工具,我们只需单击几下即可快速发现多个 URL 的关键性能指标。 您所需要的只是此 Google 表格的副本、免费的Google API 密钥以及您想要其数据的 URL 列表 - 但首先,让我们快速浏览一下。 如何使用这个工具 Google 表格由以下三个选项卡组成: 设置 结果 日志 设置 在此选项卡上,您需要提供唯一的 Google API 密钥才能使工作表正常工作。 获取 Google API 密钥 1. 访问Google API 凭据页面。 2. 从“创建凭据”下拉列表中选择 API 密钥选项(如图所示): 3. 现在您应该会看到一条提示,为您提供唯一的 API 密钥: 4. 接下来,只需将该 API 密钥复制并粘贴到 Automated Pagespeed Insights 电子表格的“设置”选项卡上所示的部分即可。 现在您已经有了 API 密钥,就可以使用该工具了。
|
|