Mautic with angular.js

Is mautic is working with angular.js

i am trying to use mautic with angular.js and contact location is not coming.



i am using mautic tracking pixal code like :-

var mauticUrl = ‘mauticaddress.com’;



var src = mauticUrl + ‘/mtracking.gif?page_url=’ + encodeURIComponent(window.location.href) + ‘&page_title=’ + encodeURIComponent(document.title);

var img = document.createElement(‘img’);

img.style.width = ‘1px’;

img.style.height = ‘1px’;

img.style.display = ‘none’;

img.src = src;

var body = document.getElementsByTagName(‘body’)[0];

body.appendChild(img);

console.log(“location”, window.location.href);

Is mautic is working with angular.js
i am trying to use mautic with angular.js and contact location is not coming.

i am using mautic tracking pixal code like :-
var mauticUrl = ‘mauticaddress.com’;

    var src = mauticUrl + '/mtracking.gif?page_url=' + encodeURIComponent(window.location.href) + '&page_title=' + encodeURIComponent(document.title);
    var img = document.createElement('img');
    img.style.width = '1px';
    img.style.height = '1px';
    img.style.display = 'none';
    img.src = src;
    var body = document.getElementsByTagName('body')[0];
    body.appendChild(img);
    console.log("location", window.location.href);