简体   繁体   English

analytics.js URL调用

[英]analytics.js URL Calls

I use analytics.js on a html page behind a hotspot. 我在热点后面的html页面上使用analytics.js。 So the internet connection is limited to certain URLS. 因此,互联网连接仅限于某些URL。

I need to open on walled garden all the URLS used by analytics.js to make work correctly google analytics. 我需要在围墙花园中打开analytics.js使用的所有URL,以使Google Analytics(分析)正确工作。

I did add: 我确实添加了:

ssl.google-analytics.com
*google-analytics*
*doubleclick*

But still need more URLs. 但是仍然需要更多的URL。

I've tested that adding 我已经测试过

www.google.es and www.google.com analytics works ok and no errors appears on the urls called by analytics.js but I can NOT open www.google.es and www.google.com for other devices uncompatibility so I need to know the URLs need to be opened to have analytics working ok. www.google.es和www.google.com分析可以正常工作,analytics.js调用的网址上没有出现任何错误,但是我无法打开www.google.es和www.google.com来查找其他设备不兼容的情况,因此我需要知道需要打开URL才能使分析正常运行。

I found reading analytics.js that there is: 我发现阅读analytics.js有:

https://ampcid.google.com
https://www.google.%/ads/ga-audiences
google.com(:\d+)?\/optimize\/opt-launch\

I did add this URLs + Folders on walled garden but still not enought. 我确实在围墙花园上添加了此URL +文件夹,但仍然不够。

Can anyone help me on build all the URLS+Folder list used by analytics ? 谁能帮助我建立分析所用的所有URLS + Folder列表?

Thanks a lot. 非常感谢。

Added Image I can see on Network from a browser: 添加了我可以从浏览器在网络上看到的图像:

在此处输入图片说明

Added 2: I have this script: 补充2:我有这个脚本:

 <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','https://www.google- 
analytics.com/analytics.js','ga');

   ga('create', 'UA-48205710-1', 'socialwibox.com');
   //ga('send', 'pageview');

 </script>

And have problems just when calling ga('send', 'pageview'); 并且在调用ga('send','pageview');时遇到问题; without ga('send', 'pageview'); 没有ga('send','pageview'); i don't have problems. 我没有问题。

Oscar. 奥斯卡。

The basic endpoint for Google Analytics collecting data is POST/GET /collect HTTP/1.1 Host: www.google-analytics.com Google Analytics(分析)收集数据的基本端点是POST / GET / collect HTTP / 1.1主机:www.google-analytics.com

Additionally, demographics data may go to http[s]://stats.g.doubleclick.net/r/collect 此外,受众特征数据可能会转到http [s]://stats.g.doubleclick.net/r/collect

analytics.js script is loaded from http[s]://www.google-analytics.com/analytics.js analytics.js脚本是从http [s]://www.google-analytics.com/analytics.js加载的

if gtag.js or google tag manager is used they are loaded from http[s]://www.googletagmanager.com/gtag/js?id=XXXX 如果使用了gtag.js或google标记管理器,则它们是从http [s]://www.googletagmanager.com/gtag/js?id = XXXX加载的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM