计算用户进行的谷歌搜索次数

Count the number of google search a user made

本文关键字:搜索 谷歌 用户 计算      更新时间:2023-09-26

我正在创建一个小的Chrome扩展程序,我需要获取或简单地计算用户在Google上进行的搜索次数,有没有办法做到这一点?谢谢

使用 chrome 历史记录 API下面的示例将显示最近访问的前 10 次访问

chrome.history.search({text: 'google', maxResults: 10}, function(data) {
    data.forEach(function(page) {
        console.log(page.url);
    });
});