HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/matomo.vdk/plugins/TagManager/Template/Tag/CustomImageTag.web.js
(function () {
    return function (parameters, TagManager) {
        this.fire = function () {
            var imageUrl = parameters.get('customImageSrc');
            if (!imageUrl) {
                return;
            }
            var cacheBuster = parameters.get('cacheBusterEnabled', false);

            if (cacheBuster) {
                if (imageUrl.indexOf('?') === -1) {
                    imageUrl += '?';
                } else {
                    imageUrl += '&';
                }
                imageUrl += 'mtmcb=' + parseInt(Math.random() * 90000000, 10);
            }

            var doc = parameters.document;
            var image = doc.createElement('img');
            image.style.display = 'none';
            image.src = imageUrl;
            doc.body.appendChild(image);
        };
    };
})();