# tracking mtc.js file not found

**URL:** <https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649>\
**Category:** General Discussion\
**Created:** [February 23, 2017, 5:15pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649 "2017-02-23T17:15:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincent1324](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@vincent1324](https://forum.mautic.org/u/vincent1324)\
**Post date:** [February 23, 2017, 5:15pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/1 "2017-02-23T17:15:51Z")

</div>

Hi there,  
  
  
  
I would like to give mautic a try so I installed it locally on my machine ( running ubuntu 16.10) .  
  
  
  
Things are setup as followed :  
  
/var/www/html/mautic  
  
/var/www/html/test.html  
  
  
  
Test.html contains the javascript tracking script.  
  
  
  
However I can’t find the mtc.js in mautic’s folder. Am I missing something?  
  
  
  
Also is there a tutorial example to follow to get familiar with the software? I found great videos but no training example. That would be great to help people started.  
  
  
  
Thanks

---

<div class="post-metadata">

**Author:** ![vincent1324](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@vincent1324](https://forum.mautic.org/u/vincent1324)\
**Post date:** [February 23, 2017, 5:15pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/2 "2017-02-23T17:15:51Z")

</div>

Hi there,

I would like to give mautic a try so I installed it locally on my machine ( running ubuntu 16.10) .

Things are setup as followed :  
/var/www/html/mautic  
/var/www/html/test.html

Test.html contains the javascript tracking script.

However I can’t find the mtc.js in mautic’s folder. Am I missing something?

Also is there a tutorial example to follow to get familiar with the software? I found great videos but no training example. That would be great to help people started.

Thanks

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 5:26pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/3 "2017-02-23T17:26:22Z")

</div>

Is the base URL of your Mautic installation set properly in Configuration \> System Settings?  
Since Mautic’s files are stored in the mautic subfolder of your web root, your base URL should be http(s)://example.com/mautic. This is important because the Mautic JS tracking code incorporates the path to mtc.js based on the base URL of your Mautic installation.

[code][/code]

Try visiting http(s)://example.com/mautic/mtc.js in a browser and see if you’re able to pull up the file. If not, then it was probably missed in the upload when installing Mautic.

---

<div class="post-metadata">

**Author:** ![vincent1324](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@vincent1324](https://forum.mautic.org/u/vincent1324)\
**Post date:** [February 23, 2017, 5:49pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/4 "2017-02-23T17:49:31Z")

</div>

So in the javascript I modified ‘[https://domain.com/mautic/mtc.js](https://domain.com/mautic/mtc.js)’ to ‘localhost/mautic/mtc.js’ .

But when searching for the mtc.js file in the mautic folder and subfolders I can’t find it.

the base URL of your Mautic installation is set properly in Configuration \> System Settings .

I will try to get the mtc.js file and put in it under mautic’s folder.

At this stage I don’t see the menu Lead like in the video below dashboard, calendar, etc… Is the menu coming later when there is actual leads?

Thanks

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 8:34pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/5 "2017-02-23T20:34:49Z")

</div>

@MxyzptlkFishStix looks like you are right.  
To enable mod\_rewrite on Ubuntu/Debian based distributions, use `a2enmod rewrite` and restart Apache with `service apache2 restart`.

For CentOS/RHEL based distributions, edit httpd.conf line `AllowOverride None` to reflect `AllowOverride All`. Then restart Apache by typing `systemctl restart httpd`.

---

<div class="post-metadata">

**Author:** ![levor](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@levor](https://forum.mautic.org/u/levor)\
**Post date:** [September 21, 2017, 6:16pm UTC](https://forum.mautic.org/t/tracking-mtc-js-file-not-found/7649/6 "2017-09-21T18:16:15Z")

</div>

You can’t really “find” the mtc.js file in the mautic folder. It is generated (by Apache?) on the fly, when called from a web page. Just make sure the Apache settings are correct, as detailed above.
