jQuery(document).ready(function() { setTimeout(function(){ if (typeof _learnq !== 'undefined'){ var kl_account = _learnq.account(); var kl_email = _learnq.identify().$email; if (kl_email){ var info = encodeURIComponent(btoa(JSON.stringify({ "kl_email": kl_email, "kl_company_id":kl_account}))); $(document).find('a').each(function(){ if( typeof $(this) !== 'undefined' && typeof $(this).attr('href') !== 'undefined' && $(this).attr('href').indexOf('shop.') != -1){ var _href = $(this).attr('href'); var param_connector = _href.indexOf('?') == -1 ? '?' : '&' $(this).attr('href', _href + param_connector + '_ke=' + info) } }); } } }, 1200); }); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-0QHHNTHPK0');