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/GoogleConsentModeV2Tag.web.js
(function () {
  return function (parameters, TagManager) {
    this.fire = function () {

      var consentAction = parameters.get("consentAction")[0];
      var consentTypes = parameters.get("consentTypes");

      var typesObject = {};
      consentTypes.forEach(function (type) {
        if (type.consent_type && type.consent_state) {
          typesObject[type.consent_type] = type.consent_state;
        }
      });

      window.dataLayer = window.dataLayer || [];
      function gtag() {
        window.dataLayer.push(arguments);
      }
      gtag("consent", consentAction, typesObject);

    };
  };
})();