This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| var query = document.location.hash | |
| query = query.replace("#", ""); | |
| var qsarray = query.split("&"); | |
| var data = {}; | |
| for (i = 0; i < qsarray.length; i++) { | |
| var itemarr = []; | |
| itemarr = qsarray[i].split("="); | |
| data[itemarr[0]] = itemarr[1]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var POST_URL = "enter your webhook URL"; | |
| function onSubmit(e) { | |
| var form = FormApp.getActiveForm(); | |
| var allResponses = form.getResponses(); | |
| var latestResponse = allResponses[allResponses.length - 1]; | |
| var response = latestResponse.getItemResponses(); | |
| var payload = {}; | |
| for (var i = 0; i < response.length; i++) { | |
| var question = response[i].getItem().getTitle(); | |
| var answer = response[i].getResponse(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| // determine if data should be cleared after submission | |
| var clearData = false; | |
| // function to grab utm url parameters | |
| function getQueryVariable(variable) | |
| { | |
| var query = window.location.search.substring(1); | |
| var vars = query.split("&"); | |
| for (var i=0;i<vars.length;i++) { | |
| var pair = vars[i].split("="); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $data = str_getcsv(file_get_contents("php://input")); | |
| $postdata = iconv("Windows-1255", "UTF-8//TRANSLIT", $data) | |
| $url = "https://hook.integromat.com/tbm66kikj9r4exmauz22gvdzine0kite"; | |
| $opts=array("http"=>array( | |
| "method"=>"POST", | |
| "header"=>"Content-type: text/csv", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function getCookie(name) { | |
| function escape(s) { return s.replace(/([.*+?\^${}()|\[\]\/\\])/g, '\\$1'); }; | |
| var match = document.cookie.match(RegExp('(?:^|;\\s*)' + escape(name) + '=([^;]*)')); | |
| return match ? match[1] : null; | |
| } | |
| var cid = getCookie("_ga"); | |
| cid = cid.substring(6); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Function to parse string as URL as used in Zapier | |
| function getParameterByName (name) | |
| { | |
| name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
| var regexS = "[\\?&]" + name.toLowerCase() + "=([^&#]*)"; | |
| var regex = new RegExp(regexS); | |
| var results = regex.exec(input.location.toLowerCase()); | |
| if (results == null) | |
| return ""; | |
| else |