//Function for opening Cookie Settings from components; //Example can be found in cookie-policy.component.ts; function openCookieSettingsPopup() { CookieControl.open(); }
var config = { apiKey: 'ddb5a76f98531a3030f8481a3793a7d34adcc20d', product: 'PRO', necessaryTitle: "Necessary Cookies1", necessaryDescription: 'Necessary cookies enable core functionality such as page navigation and access to secure areas. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences.', optionalCookies: [ { name: 'analytics', label: 'Analytics', description: 'Analytics cookies collect information about how visitors use a web page, such as which pages are the most popular, which method of linking the pages is most effective, and whether users receive error messages from web pages.', cookies: [], onAccept: function () {
console.log('on accept') const tagManager = document.createElement('script'); tagManager.src = "https://www.googletagmanager.com/gtag/js?id=UA-214162633-1"; document.head.appendChild(tagManager);
const googleAnalytics = document.createElement('script'); googleAnalytics.text = ` window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date());
gtag('config', 'UA-214162633-1', { send_page_view: false });`; document.head.appendChild(googleAnalytics); }, onRevoke: function () { }, }, { name: 'marketing', label: 'Marketing', description: '', cookies: [], onAccept: function () { }, onRevoke: function () { } }, { name: 'preferences', label: 'Preferences', description: '', cookies: [], onAccept: function () { }, onRevoke: function () { } }
], branding: { removeAbout: true, removeIcon: true },
statement: { description: 'For more information vist our', name: 'Cookie Policy', url: 'https://pawsquad.com/cookie-policy', updated: '25/08/2022' },
position: 'left', theme: 'light', layout: 'popup', initialState: 'notify', };
//Postponed for 1 seconds in order not to interfere with Google Crawler. setTimeout(() => { CookieControl.load(config); }, 1000);