diff --git a/airbyte-webapp/src/hooks/useSegment.tsx b/airbyte-webapp/src/hooks/useSegment.tsx index 0c8bcdb35cb5..6b279a835358 100644 --- a/airbyte-webapp/src/hooks/useSegment.tsx +++ b/airbyte-webapp/src/hooks/useSegment.tsx @@ -6,9 +6,10 @@ const useSegment = (token?: string): void => { if (token) { const script = document.createElement("script"); script.innerText = ` - !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e