"use strict";(self.webpackChunkjupyterlab_google_analytics=self.webpackChunkjupyterlab_google_analytics||[]).push([[568],{568:(a,t,e)=>{e.r(t),e.d(t,{IGa:()=>n,default:()=>r});var g=e(921);const n=new(e(526).Token)("jupyterlab-google-analytics:plugin:IGa"),o={id:"jupyterlab-google-analytics:plugin",autoStart:!0,provides:n,requires:[g.ISettingRegistry],activate:async(a,t)=>{var e;const g=(await t.load(o.id)).get("trackingId").composite;var n="https://www.googletagmanager.com/gtag/js?id="+g;const r=document.createElement("script"),s=document.getElementsByTagName("script")[0];r.async=!0,r.src=n,null===(e=s.parentNode)||void 0===e||e.insertBefore(r,s);const c=window;return c.dataLayer=c.dataLayer||[],c.gtag=function(){c.dataLayer.push(arguments)},c.gtag("js",new Date),c.gtag("config",g),{gtag:c.gtag}}},r=o}}]);