{"action":"created","issue":{"url":"https://api.github.com/repos/pojome/elementor/issues/5305","repository_url":"https://api.github.com/repos/pojome/elementor","labels_url":"https://api.github.com/repos/pojome/elementor/issues/5305/labels{/name}","comments_url":"https://api.github.com/repos/pojome/elementor/issues/5305/comments","events_url":"https://api.github.com/repos/pojome/elementor/issues/5305/events","html_url":"https://github.com/pojome/elementor/issues/5305","id":347704515,"node_id":"MDU6SXNzdWUzNDc3MDQ1MTU=","number":5305,"title":"Javascript tracking of form submissions","user":{"login":"tomaswisten","id":38510982,"node_id":"MDQ6VXNlcjM4NTEwOTgy","avatar_url":"https://avatars0.githubusercontent.com/u/38510982?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaswisten","html_url":"https://github.com/tomaswisten","followers_url":"https://api.github.com/users/tomaswisten/followers","following_url":"https://api.github.com/users/tomaswisten/following{/other_user}","gists_url":"https://api.github.com/users/tomaswisten/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaswisten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaswisten/subscriptions","organizations_url":"https://api.github.com/users/tomaswisten/orgs","repos_url":"https://api.github.com/users/tomaswisten/repos","events_url":"https://api.github.com/users/tomaswisten/events{/privacy}","received_events_url":"https://api.github.com/users/tomaswisten/received_events","type":"User","site_admin":false},"labels":[{"id":804183233,"node_id":"MDU6TGFiZWw4MDQxODMyMzM=","url":"https://api.github.com/repos/pojome/elementor/labels/component/forms/actions","name":"component/forms/actions","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-05T14:51:24Z","updated_at":"2018-08-07T07:10:43Z","closed_at":"2018-08-07T07:10:43Z","author_association":"NONE","body":"<!-- Before opening a new issue, please search for duplicate issues to prevent opening a duplicate feature request. If there is already an open existing request, please leave a comment there. -->\r\n\r\n## Prerequisites\r\n<!-- MARK COMPLETED ITEMS WITH AN [x] -->\r\n\r\n- [x] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.\r\n- [x] The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )\r\n\r\n\r\n**What problem is your feature request going to solve? Please describe.**\r\nAfter a form is submitted, I'd like to trigger a custom javascript event. For example, for tracking a subscription, lead generation or sale, and report it to Google Analytics and Facebook.\r\n\r\n**Describe the solution you'd like**\r\n\"Actions After Submit\" should include the option \"Custom Javascript event\".\r\n\r\n**Describe alternatives you've considered**\r\nI considered using the redirect URL for setting a goal instead of using Javascript events, but it's far less stable and precise (the thank you page could be visited several times, bookmarked by the visitor, displayed by web editors making changes to it, etc). \r\n\r\n**Additional context**\r\nIt would be great if Wordpress users (maybe certain roles) could be excluded, so web editors don't pollute the tracking. It would also be great to see a log of the tracking events for debugging.\r\n\r\nThanks for a great product!"},"comment":{"url":"https://api.github.com/repos/pojome/elementor/issues/comments/410957107","html_url":"https://github.com/pojome/elementor/issues/5305#issuecomment-410957107","issue_url":"https://api.github.com/repos/pojome/elementor/issues/5305","id":410957107,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDk1NzEwNw==","user":{"login":"bainternet","id":660572,"node_id":"MDQ6VXNlcjY2MDU3Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/660572?v=4","gravatar_id":"","url":"https://api.github.com/users/bainternet","html_url":"https://github.com/bainternet","followers_url":"https://api.github.com/users/bainternet/followers","following_url":"https://api.github.com/users/bainternet/following{/other_user}","gists_url":"https://api.github.com/users/bainternet/gists{/gist_id}","starred_url":"https://api.github.com/users/bainternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bainternet/subscriptions","organizations_url":"https://api.github.com/users/bainternet/orgs","repos_url":"https://api.github.com/users/bainternet/repos","events_url":"https://api.github.com/users/bainternet/events{/privacy}","received_events_url":"https://api.github.com/users/bainternet/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T07:10:43Z","updated_at":"2018-08-07T07:10:43Z","author_association":"COLLABORATOR","body":"@tomaswisten \r\n\r\nThe Elementor Pro form triggers a custom JavaScript event named `submit_success` so you can to your tracking or anything else you want on that event\r\n```JS\r\n//The event is submit_success so you can catch it for example:\r\njQuery( document ).ready(function( $ ){\r\n\t$( document ).on('submit_success', function(){\r\n\t\t// form has been submitted do your thing\r\n\t});\r\n});\r\n```\r\n\r\nAs for excluding users form tracking, not really realted to Elementor Since elementor has no tracking.\r\n\r\nThanks."}}
{"actor":{"display_login":"bainternet"}}