To keep it simple lets say I wanted to create a button that users could click on any site and it would post back to a database on my main site and tell the DB what page they clicked. Kind of like dig.
I'm assuming most use JSON or similar to post the data back. However, how should the JS file be constructed that would generate the button on the site?
I haven't found any best practices or best ways to go about doing this.