Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想找到一种方法来跟踪访问者的来源。几乎就像一个迷你谷歌分析。我在他们的网站上放了一个小部件,我想知道用户是否来自例如谷歌直接点击、引用链接等。
我将如何做到这一点?
您可以使用该document.referrer函数返回用户来自哪里。
document.referrer