Mautic Community Forums

Help with Rails

Currently my Ruby on Rails project uses Mautic through Javascript, as their show in the documentation:


    mt('send', 'pageview', {email: ..., etc: ...});

However, we had some problems with that and I’ve been tasked to monitor the same information, but doing such on a Rails controller instead of doing it in the HTML through Javascript. I found the mautic gem, but it requires a newer version of Rails than what my project uses, so I cannot use it. Anyone have any ideas/suggestions of how I can monitor the exact same information through a Rails controller? Is it even possible?

I’m not the one who originally set up Mautic, and in fact, I never worked with Mautic before. So I’m quite clueless on how to achieve this.

Thanks in advance for your time & help.