Tell us what you are trying to do?
I would like to create a new post while a page is visited. I would like to create it without any submit button is pushed but just when a visitor click on the page.
The page should catch some parameters vars from the url, and put it in a new post called "click-traker".
Hi, the only way to create a new post from the front-end of the site with Toolset is to use Forms with a submit button. Any other system to create posts requires custom code that uses JavaScript, PHP, and the WordPress API. That type of custom application code falls outside the scope of support we provide here in the forums, but I can give you some links to relevant information:
https://developer.wordpress.org/reference/functions/wp_insert_post/
https://html-online.com/articles/get-url-parameters-javascript/
https://toolset.com/documentation/customizing-sites-using-php/updating-types-fields-using-php/
You might also consider looking for a third-party plugin that handles click tracking. A custom code solution for this type of tracking might not be necessary, and you won't have to worry about millions of posts generated on your site. A good click tracking plugin will be able to filter out bots more effectively, and will store tracking information in a reportable format.