我有一个用node.js编写的小API,没有附加网站,它只适用于AJAX调用。 我想知道是否可以使用Google Analytics或其他优秀的Google Analytics工具来监控流量。
I have a small API written in node.js that has no website attached, it works only on AJAX calls. I want to know if it is possible to use Google Analytics, or other good Analytics tool to monitor traffic.
最满意答案
我认为这取决于你如何设置东西,但我想知道你是否也不能只是将JavaScript的常规JavaScript跟踪添加到你的API中。 如果您不能这样做,您应该查看“ 度量协议概述” ,它允许您自己将原始数据发送到Google Analytics。
I think it depends on how you have things set up but I wonder if you couldn't just add the normal JavaScript tracking to your API since its JavaScript as well. In the event you cant do that you should check out the Measurement Protocol Overview, it will allow you to send the raw data to Google Analytics yourself.
更多推荐
发布评论