Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mautic Tracking #16

Open
tibehrius opened this issue Jun 7, 2019 · 1 comment
Open

Mautic Tracking #16

tibehrius opened this issue Jun 7, 2019 · 1 comment

Comments

@tibehrius
Copy link

tibehrius commented Jun 7, 2019

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.

@therealkevinard
Copy link

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....

Screenshot from 2019-08-29 12-04-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants