In order to make things easier to work with, we have created a very simple HTML file that has one button, which when you click it, will send an event to Amplitude.
Download the attached file
Open the file in a text editor and edit the API_KEY to the one from your project. The line with the API_KEY is marked in red in the screenshot below.
The second red box contains the function that gets executed when the user clicks the button. In this case, we just show the current date when the users click on the button and send an event to Amplitude.
Open the file in the browser, click the button and check if the event has been sent to your project
For the testing part, once you have your own project's API key, you can open this HTLM file with the Google Chrome browser, and click the button to see the event being fired. To make this testing even better, you could also download and install the Google Chrome Amplitude plugin called the Instrumentation Explorer.
Link here: https://chrome.google.com/webstore/detail/amplitude-instrumentation/acehfjhnmhbmgkedjmjlobpgdicnhkbp
Clicking the button should result in something like this:
Finally, if you wish to further test or validate the event data sent to your Project with this test event, you also have the possibility of directly downloading the Raw Event JSON file, directly using the Google Chrome Extension: