"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(684);const n=new(e(930).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,n="https://www.googletagmanager.com/gtag/js?id="+g,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 i=window;return i.dataLayer=i.dataLayer||[],i.gtag=(...a)=>{i.dataLayer.push(a)},i.gtag("js",new Date),i.gtag("config",g),{gtag:i.gtag,config:a=>i.gtag("config",g,a)}}},r=o}}]);