Record snippet usage information

In continuation of this post, here's the code to also store the website where the snippet is triggered.