Initial commit: Atomaste website
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
(function(c,l,a,r,i,t,y){
|
||||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
||||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
||||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
||||
})(window, document, "clarity", "script", "{site_ID}");
|
||||
@@ -0,0 +1,2 @@
|
||||
var clicky_site_ids = clicky_site_ids || []; clicky_site_ids.push({site_ID});
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{gtm_code}');
|
||||
|
||||
const revokeListeners = [];
|
||||
window.addRevokeListener = (callback) => {
|
||||
revokeListeners.push(callback);
|
||||
};
|
||||
document.addEventListener("cmplz_revoke", function (e) {
|
||||
cmplz_set_cookie('cmplz_consent_mode', 'revoked', false );
|
||||
revokeListeners.forEach((callback) => {
|
||||
callback();
|
||||
});
|
||||
});
|
||||
|
||||
const consentListeners = [];
|
||||
/**
|
||||
* Called from GTM template to set callback to be executed when user consent is provided.
|
||||
* @param callback
|
||||
*/
|
||||
window.addConsentUpdateListener = (callback) => {
|
||||
consentListeners.push(callback);
|
||||
};
|
||||
document.addEventListener("cmplz_fire_categories", function (e) {
|
||||
var consentedCategories = e.detail.categories;
|
||||
const consent = {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': cmplz_in_array( 'preferences', consentedCategories ) ? 'granted' : 'denied',
|
||||
'analytics_storage': cmplz_in_array( 'statistics', consentedCategories ) ? 'granted' : 'denied',
|
||||
'ad_storage': cmplz_in_array( 'marketing', consentedCategories ) ? 'granted' : 'denied',
|
||||
'ad_user_data': cmplz_in_array( 'marketing', consentedCategories ) ? 'granted' : 'denied',
|
||||
'ad_personalization': cmplz_in_array( 'marketing', consentedCategories ) ? 'granted' : 'denied',
|
||||
};
|
||||
|
||||
//don't use automatic prefixing, as the TM template needs to be sure it's cmplz_.
|
||||
let consented = [];
|
||||
for (const [key, value] of Object.entries(consent)) {
|
||||
if (value === 'granted') {
|
||||
consented.push(key);
|
||||
}
|
||||
}
|
||||
cmplz_set_cookie('cmplz_consent_mode', consented.join(','), false );
|
||||
consentListeners.forEach((callback) => {
|
||||
callback(consent);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,67 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('consent', 'default', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
|
||||
dataLayer.push({
|
||||
'event': 'default_consent'
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_fire_categories", function (e) {
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
var consentedCategories = e.detail.categories;
|
||||
let preferences = 'denied';
|
||||
let statistics = 'denied';
|
||||
let marketing = 'denied';
|
||||
|
||||
if (cmplz_in_array( 'preferences', consentedCategories )) {
|
||||
preferences = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'statistics', consentedCategories )) {
|
||||
statistics = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'marketing', consentedCategories )) {
|
||||
marketing = 'granted';
|
||||
}
|
||||
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': preferences,
|
||||
'analytics_storage': statistics,
|
||||
'ad_storage': marketing,
|
||||
'ad_user_data': marketing,
|
||||
'ad_personalization': marketing,
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_cookie_warning_loaded", function (e) {
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{gtm_code}');
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_revoke", function (e) {
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{gtm_code}');
|
||||
@@ -0,0 +1,75 @@
|
||||
window['gtag_enable_tcf_support'] = {enable_tcf_support};
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
|
||||
gtag('set', 'dYWVlZG', true);
|
||||
gtag('set', 'ads_data_redaction', {ads_data_redaction});
|
||||
gtag('set', 'url_passthrough', {url_passthrough});
|
||||
gtag('consent', 'default', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
|
||||
|
||||
|
||||
document.addEventListener("cmplz_before_categories_consent", function (e) {
|
||||
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
let consentedCategories = e.detail.categories;
|
||||
let preferences = 'denied';
|
||||
let statistics = 'denied';
|
||||
let marketing = 'denied';
|
||||
|
||||
if (cmplz_in_array( 'preferences', consentedCategories )) {
|
||||
preferences = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'statistics', consentedCategories )) {
|
||||
statistics = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'marketing', consentedCategories )) {
|
||||
marketing = 'granted';
|
||||
}
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': preferences,
|
||||
'analytics_storage': statistics,
|
||||
'ad_storage': marketing,
|
||||
'ad_user_data': marketing,
|
||||
'ad_personalization': marketing,
|
||||
});
|
||||
|
||||
if ( statistics==='granted' ) {
|
||||
gtag('js', new Date());
|
||||
{additional_tags}
|
||||
gtag('config', '{G_code}', {
|
||||
cookie_flags:'secure;samesite=none',
|
||||
{anonymize_ip}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
document.addEventListener("cmplz_revoke", function (e) {
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,59 @@
|
||||
window['gtag_enable_tcf_support'] = {enable_tcf_support};
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('set', 'ads_data_redaction', {ads_data_redaction});
|
||||
gtag('set', 'url_passthrough', {url_passthrough});
|
||||
gtag('consent', 'default', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_fire_categories", function (e) {
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
var consentedCategories = e.detail.categories;
|
||||
let preferences = 'denied';
|
||||
let statistics = 'denied';
|
||||
let marketing = 'denied';
|
||||
|
||||
if (cmplz_in_array( 'preferences', consentedCategories )) {
|
||||
preferences = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'statistics', consentedCategories )) {
|
||||
statistics = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'marketing', consentedCategories )) {
|
||||
marketing = 'granted';
|
||||
}
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': preferences,
|
||||
'analytics_storage': statistics,
|
||||
'ad_storage': marketing,
|
||||
'ad_user_data': marketing,
|
||||
'ad_personalization': marketing,
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_revoke", function (e) {
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
window["gtag_enable_tcf_support"]={enable_tcf_support:enable_tcf_support};window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("set","dYWVlZG",true);gtag("set","ads_data_redaction",{ads_data_redaction:ads_data_redaction});gtag("set","url_passthrough",{url_passthrough:url_passthrough});gtag("consent","default",{security_storage:"granted",functionality_storage:"granted",personalization_storage:"denied",analytics_storage:"denied",ad_storage:"denied"});document.addEventListener("cmplz_before_categories_consent",function(e){function gtag(){dataLayer.push(arguments)}let consentedCategories=e.detail.categories;let preferences="denied";let statistics="denied";let marketing="denied";if(cmplz_in_array("preferences",consentedCategories)){preferences="granted"}if(cmplz_in_array("statistics",consentedCategories)){statistics="granted"}if(cmplz_in_array("marketing",consentedCategories)){marketing="granted"}gtag("consent","update",{security_storage:"granted",functionality_storage:"granted",personalization_storage:preferences,analytics_storage:statistics,ad_storage:marketing})});document.addEventListener("cmplz_revoke",function(e){gtag("consent","update",{security_storage:"granted",functionality_storage:"granted",personalization_storage:"denied",analytics_storage:"denied",ad_storage:"denied"})});
|
||||
@@ -0,0 +1,67 @@
|
||||
window['gtag_enable_tcf_support'] = {enable_tcf_support};
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag('set', 'dYWVlZG', true);
|
||||
gtag('set', 'ads_data_redaction', {ads_data_redaction});
|
||||
gtag('set', 'url_passthrough', {url_passthrough});
|
||||
gtag('consent', 'default', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_fire_categories", function (e) {
|
||||
function gtag(){
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
var consentedCategories = e.detail.categories;
|
||||
let preferences = 'denied';
|
||||
let statistics = 'denied';
|
||||
let marketing = 'denied';
|
||||
|
||||
if (cmplz_in_array( 'preferences', consentedCategories )) {
|
||||
preferences = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'statistics', consentedCategories )) {
|
||||
statistics = 'granted';
|
||||
}
|
||||
|
||||
if (cmplz_in_array( 'marketing', consentedCategories )) {
|
||||
marketing = 'granted';
|
||||
}
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': preferences,
|
||||
'analytics_storage': statistics,
|
||||
'ad_storage': marketing,
|
||||
'ad_user_data': marketing,
|
||||
'ad_personalization': marketing,
|
||||
});
|
||||
});
|
||||
|
||||
gtag('js', new Date());
|
||||
{additional_tags}
|
||||
gtag('config', '{G_code}', {
|
||||
cookie_flags:'secure;samesite=none',
|
||||
{anonymize_ip}
|
||||
});
|
||||
|
||||
document.addEventListener("cmplz_revoke", function (e) {
|
||||
gtag('consent', 'update', {
|
||||
'security_storage': "granted",
|
||||
'functionality_storage': "granted",
|
||||
'personalization_storage': "denied",
|
||||
'analytics_storage': 'denied',
|
||||
'ad_storage': "denied",
|
||||
'ad_user_data': 'denied',
|
||||
'ad_personalization': 'denied',
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
{additional_tags}
|
||||
gtag('config', '{aw_code}', {
|
||||
cookie_flags:'secure;samesite=none'
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
window['gtag_enable_tcf_support'] = {enable_tcf_support};
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', '{G_code}', {
|
||||
cookie_flags:'secure;samesite=none',
|
||||
{anonymize_ip}
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
var _paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
_paq.push(['requireCookieConsent']);
|
||||
|
||||
(function() {
|
||||
var u="{matomo_url}";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '{site_id}']);
|
||||
_paq.push(['setSecureCookie', window.location.protocol === "https:" ]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
||||
document.addEventListener("cmplz_fire_categories", function (e) {
|
||||
var consentedCategories = e.detail.categories;
|
||||
if (!cmplz_in_array( 'statistics', consentedCategories )) {
|
||||
_paq.push(['forgetCookieConsentGiven']);
|
||||
} else {
|
||||
_paq.push(['rememberCookieConsentGiven']);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
var _mtm = window._mtm = window._mtm || [];
|
||||
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.src='{matomo_url}container_{container_id}.js'; s.parentNode.insertBefore(g,s);
|
||||
_mtm.push({"event": "cmplz_event_functional"});
|
||||
document.addEventListener("cmplz_status_change", function (e) {
|
||||
if ( e.detail.category === 'preferences' && e.detail.value === 'allow' ) {
|
||||
_mtm.push({"event": "cmplz_event_preferences"});
|
||||
}
|
||||
|
||||
if ( e.detail.category === 'statistics' && e.detail.value === 'allow' ) {
|
||||
_mtm.push({"event": "cmplz_event_statistics"});
|
||||
}
|
||||
|
||||
if ( e.detail.category === 'marketing' && e.detail.value === 'allow' ) {
|
||||
_mtm.push({"event": "cmplz_event_marketing"});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
var _paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="{matomo_url}";
|
||||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||||
_paq.push(['setSiteId', '{site_id}']);
|
||||
_paq.push(['setSecureCookie', window.location.protocol === "https:" ]);
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
(function (d, w, c) {
|
||||
(w[c] = w[c] || []).push(function() {
|
||||
try {
|
||||
w.yaCounter{yandex_id} = new Ya.Metrika({
|
||||
id:{yandex_id},
|
||||
clickmap:true,
|
||||
trackLinks:true,
|
||||
accurateTrackBounce:true,
|
||||
trackHash:true,
|
||||
{ecommerce}
|
||||
});
|
||||
} catch(e) { }
|
||||
});
|
||||
|
||||
var n = d.getElementsByTagName("script")[0],
|
||||
s = d.createElement("script"),
|
||||
f = function () { n.parentNode.insertBefore(s, n); };
|
||||
s.type = "text/javascript";
|
||||
s.async = true;
|
||||
s.src = "https://mc.yandex.ru/metrika/watch.js";
|
||||
|
||||
if (w.opera == "[object Opera]") {
|
||||
d.addEventListener("DOMContentLoaded", f, false);
|
||||
} else { f(); }
|
||||
})(document, window, "yandex_metrika_callbacks");
|
||||
Reference in New Issue
Block a user