Mautic Community Forums

tracking mtc.js file not found

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

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

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.

So in the javascript I modified ‘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

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

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.