# Help with Rails

**URL:** <https://forum.mautic.org/t/help-with-rails/10419>\
**Category:** Product Support\
**Created:** [April 11, 2018, 4:56pm UTC](https://forum.mautic.org/t/help-with-rails/10419 "2018-04-11T16:56:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuler](https://avatars.discourse-cdn.com/v4/letter/f/97f17d/32.png) [@fuler](https://forum.mautic.org/u/fuler)\
**Post date:** [April 11, 2018, 4:56pm UTC](https://forum.mautic.org/t/help-with-rails/10419/1 "2018-04-11T16:56:03Z")

</div>

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

```auto

    (function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
        w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
        m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
    })(window,document,'script','http(s)://yourmautic.com/mtc.js','mt');

    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.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [October 17, 2019, 4:33pm UTC](https://forum.mautic.org/t/help-with-rails/10419/2 "2019-10-17T16:33:51Z")

</div>

Closed on October 17, 2019, 4:33pm UTC


