We just started using and testing mautic, and so far it’s very complete and robust. We wish to use it for automated marketing within our mobile App. However the cookie tracking system is meant for website marketing. Is there a way to call the tracker with lead ID instead of counting on the cookie to take care of that?
Or some other way.
If we can easily use mautic for mobile apps it would open a whole new frontier. The docs are focused on web so far. Look forward to using this amazing tool in our apps!
We just started using and testing mautic, and so far it’s very complete and robust. We wish to use it for automated marketing within our mobile App. However the cookie tracking system is meant for website marketing. Is there a way to call the tracker with lead ID instead of counting on the cookie to take care of that?
Or some other way.
If we can easily use mautic for mobile apps it would open a whole new frontier. The docs are focused on web so far. Look forward to using this amazing tool in our apps!
Mautic was build as marketing automation for the web. But I think it is possible to use it in a mobile app as well. You can call the tracking request from the app or connected server with CURL and pass some identifier of the lead. For example email address. If you mark email address in the Lead Fields as unique, Mautic will add the actions to the right lead.
https://www.mautic.org/docs/leads/lead_monitoring.html
Also, there is an API where you can do more stuff.
https://developer.mautic.org/#rest-api
https://github.com/mautic/api-library
Thanks @escopecz
So for everyone’s benefit (and mautic may include later in docs), here is what we did:
- We made sure the email field is public, unique and allows lookups (so the tracker can refer to it)
- We created a lead form that only has the email in it (we could add more fields)
- We created a campaign that starts with this form, and looks at ‘bogus’ page opens (which are actually screens in our app e.g.
http://yourdomain.com/mtracking.gif?page_url=main_screen&email=my3mail@domain.com
) to trigger actions
Now, we make a POST call to the form directly from the app when we have a new lead, and we load the tracker GIF with the page screens we want (passing email field as well). And we now have a fully operational automated marketing from our app.
We had done the same thing in the past with Google Analytics before they had the mobile version ready.
PS: You may want to document this in the docs page you sent.
Awesome. Thanks for describing it.
Feel free to send a PR to the documentation repositories:
https://github.com/mautic/developer-documentation
https://github.com/mautic/documentation
Thanks @escopecz ,
I just completed the pull request
(PS: I noticed a typo after, sorry, not yet familiar with the GITHUB platform – and was worried I would loose my edits as I tried to play with it).
That’s awesome. Looking at it now.
Hi @ramez_rafla & @escopecz ,
Just been reading your posts above with great interest as this is something I am interested in doing. However I am a humble Product Manager rather than a developer and as such do not fully understand some of the finer details, so would you mind answering a couple of questions for me?
- We have an iPhone app which works with dedicated hardware (over BLE) and I would like users to register their hardware within the app primarily so that we can keep them informed about new firmware upgrades for that hardware etc. I would love to use Mautic for this (as well as its normal excellent functionality). Is this feasible with the solution you have identified?
- Can we use the API directly from within the app as it requires an auth token which expires?
Thanks in anticipation
We faced an unexpected issue, which I documented here:
https://github.com/mautic/mautic/issues/9#issuecomment-149707302
Mautic uses the IP address in the absence of a cookie (as to expect from within an App) to track a lead, even if we have the email field present in the GIF tracker. This messes things up when we have multiple users with a single IP.
Can you direct me as to where in the code I should look, and I could fix it and issue a pull-request?
Thank you
@aprpac, sorry for delay.
From reading your post, it seems you only need to follow the instructions I posted. @escopecz hasn’t approved it yet, so here is the direct link:
@escopecz , can you please approve the changes? People would benefit from this doc
I commented on you PR.
Changes applied - all yours!
I’m experiencing the same problems as the ones described in this thread. However I don’t know if these are related to @ramez_rafla 's last comment or if this pull-request didn’t land up to Mautic v1.2.4 (last version I know of and the one we are using).
@ramez_rafla or @escopecz could you please give us an update about if the PR landed in v1.2.4 and if the reported issue (last comment) is fixed or something that will be fixed?
Thank you both.