JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Since it is not possible to embed script in the thank you page (filtered for security reasons). I suggest to try my colleague's suggestion on this thread https://www.jotform.com/answers/30225.
Then paste it on your thank you message, source code window. Example:
On a side note, you may want to consider the Jotform Form Analytics https://www.jotform.com/form-analytics/.