Mautic Tracking
Opened this issue · 1 comments
Is it possible to add an option to merge the contact through the Mautic Device Id or something?
I am sending a contact form through Gravity, and would like to track the contact on Mautic after completing the form.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Was looking for something else, but google brought me here. Assuming you can have dynamic thank you page urls, you will have some luck using the libraries I put in https://gitlab.com/mtc-tools.
The URL builder and parser:
Parser gets installed on your site, alongsite mtc.js. (see readme for basic example)
- takes a crafted "overloaded" url that you've populated with the user's form fields, parses the contact fields out, and injects them as the extra params with your mtc pageview event. In doing so, Mautic internally/natively merges the new field data with the previously anonymous (or identified) contact.
- It then sanitizes the url, stripping-out the extra fields you loaded into it.
Builder runs online.
- It's just a helper to assist with building the url templates. It makes it easier to put them together.
Example:
If I want to return people to site.com, my form has fields email, first_name, and last_name on it, and my form config/admin uses {{fieldname}} syntax to re-use the user fields....