// every time we click on the element with id="my-button" $( "#my-button" ).click( function() { var IFTTT_KEY = ""; // paste your Webhook key here var EVENT_NAME = "hello-ifttt"; // Event Name used by our Webhook // IFTTT url to request in order to trigger our Webhook var url = "https://maker.ifttt.com/trigger/" + EVENT_NAME + "/with/key/" + IFTTT_KEY; // We can pass data to our Webhook // with "value1", "value2", and "value3" properties // as mentioned on Webhooks documentation var data = { value1: "This is an example String", // we can pass text value2: 135, // numbers value3: { // or JS Objects / Arrays, etc... a: 1, b:2, c: [ 135, 43, 57 ] } }; // finally we are using "$.get()" to make our request $.get( { url: url, data: data, dataType: 'jsonp', // needed for ifttt } ); } );