php - 从外部 URL 获取数据时,file_get_contents 是否算作综合浏览量?

标签 php google-analytics pageviews

我试图用 php 读取外部 url 的 JSON LD 数据。但是,我想知道当我打电话时:
$html = file_get_contents( $url );
它会通过谷歌分析算作该 $url 的网页浏览量吗?我不想造假数字。如果是这样,有没有更好的方法?

最佳答案

是的,不幸的是,它算作一次综合浏览量。没有 HTTP 请求,您无法“预览”网站代码。

关于php - 从外部 URL 获取数据时,file_get_contents 是否算作综合浏览量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49616149/

相关文章:

php - 绝对位置从图像中删除超链接。

php - 如何在 magento 中获取可配置的产品价格范围?

php - 谷歌分析 PHP API : Get event total events

google-analytics - 如何在Google云存储中启用实时对象访问分析?

flutter 多个页面 View 和 Controller

php - Yii2 进度小部件可点击字段

javascript - 当表单位于弹出窗口中时,如何将表单的操作属性定向到自身?

google-analytics - 如何从Google Analytics(分析)导出报告包含最多行

Symfony2 - 页面浏览计数器

mysql - 博客页面点击计数器