Mautic Community Forums

multiple visitor tracking methods

I noticed in your documentation that you only have a hidden or small image file as your primary tracking tool.



Websites like StatCounter and Google Analytics use javascript code that is to be embeded within the body portion of the html. Is there any reason why you do not use javascript, jquery, ajax, etc embedded code to track visitor behavior on any page on a website? Or is this beyond the scope of Mautic?

I noticed in your documentation that you only have a hidden or small image file as your primary tracking tool.

Websites like StatCounter and Google Analytics use javascript code that is to be embeded within the body portion of the html. Is there any reason why you do not use javascript, jquery, ajax, etc embedded code to track visitor behavior on any page on a website? Or is this beyond the scope of Mautic?

The tracking pixel is based on the same idea. The browser has to bake a request to the Mautic server in order to get the tracking information. Ajax call does the same thing. The javascript tracking is planned. Tracking pixel is the main tracking method because it works also in the emails. Javascript does not. If you’d want to use a javascript for tracking only, you can implement the Mautic tracking pixel into Google Tag Manager. I think there is an article about it already somewhere.