We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
这不是这样的 API。
您可以在扩展程序中使用 Google Analytics 来手动跟踪用户。
如果您不需要任何花哨的东西,只需要一定数量的安装和用户,可以使用我的扩展 扩展名,它会为您跟踪这些号码。
This is no such API.
You can use Google Analytics inside an extension to track users manually.
If you don't need anything fancy, just a number of installs and users, there is My Extensions extension, it will track those numbers for you.
将下面的代码片段复制并粘贴到以“.php”扩展名保存的 html 文档正文中的任意位置。
Copy and paste the snippet below wherever you want in the body of a html document saved with a ".php" extension.
您还可以使用跨域工具仅在客户端(至少在您这边)执行此操作。此代码片段将获取扩展程序的 Chrome 网上应用店页面上显示的用户数量(截至 2018 年 4 月 28 日最新):
将来,Google 可能会更改用户计数范围的类名称,在这种情况下您只需要适当更新正则表达式即可。
You can also do this client-side only (at least on your end) by using a cross-domain tool. This snippet will grab the number of users displayed on the Chrome webstore page for an extension (up-to-date as of April 28, 2018):
In the future, Google may change the class name of the user count span, in which case you just need to update the regex appropriately.