Hi
My situation: I have an external CMS-platform with built-in forms (directly plugging in a Mautic form isn’t that easy).
And I have a mautic where I have replicated the forms which are on the website.
I’m using the latest version of Mautic, with the new javascript tracking (instead of the pixel).
Now to the point: what I want to do is, is to when the form is submitted (handled by the CMS), I want also want to sent the trigger to Mautic.
I was thinking of “onFormSubmit()”, capturing the form-data, and triggering the javascript-method to send the action with the form-data to Mautic.
- Is this a good way of working, or am I totally mis(b)using the javascript tracker?
If the answer is “dude what the hell are you doing”, I’ll have to re-write the form-handler of the CMS based on this information? (https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.ue75vw4ch)
- If this is Javascript-form-handling thing is a good way of working: which parameters have I to use to trigger the form submission?
I can store the personal fields as described on https://github.com/mautic/documentation/pull/54/files
Code:
e.g. mt('send', 'pageview', {email: 'my@email.com', firstname: 'John'});
but I want of course track the "form submit action" to make follow-up actions ("when form submitted, do this, do that").
I would expect something like
Code:
e.g. mt('send', 'formsubmit', {email: 'my@email.com', firstname: 'John', formid: 15, textfield: 'hello world'});
I hope my question is clear
I really love the new javascript tagging, but it's all new
Hello,
I have open mtc.js file. I don’t see ‘formsubmit’ call. At present you can use only ‘pageview’.
Best regards,
Pierre
Hi
My situation: I have an external CMS-platform with built-in forms (directly plugging in a Mautic form isn’t that easy).
And I have a mautic where I have replicated the forms which are on the website.
I’m using the latest version of Mautic, with the new javascript tracking (instead of the pixel).
Now to the point: what I want to do is, is to when the form is submitted (handled by the CMS), I want also want to sent the trigger to Mautic.
I was thinking of “onFormSubmit()”, capturing the form-data, and triggering the javascript-method to send the action with the form-data to Mautic.
-
Is this a good way of working, or am I totally mis(b)using the javascript tracker?
If the answer is “dude what the hell are you doing”, I’ll have to re-write the form-handler of the CMS based on this information? (https://medium.com/@jan_linhart/the-simplest-way-how-to-submit-a-form-data-to-mautic-1454d3afd005#.ue75vw4ch)
-
If this is Javascript-form-handling thing is a good way of working: which parameters have I to use to trigger the form submission?
I can store the personal fields as described on https://github.com/mautic/documentation/pull/54/files
e.g. mt('send', 'pageview', {email: 'my@email.com', firstname: 'John'});
but I want of course track the “form submit action” to make follow-up actions (“when form submitted, do this, do that”).
I would expect something like e.g. mt('send', 'formsubmit', {email: 'my@email.com', firstname: 'John', formid: 15, textfield: 'hello world'});
I hope my question is clear
I really love the new javascript tagging, but it’s all new