remove gtag
This commit is contained in:
parent
f92eae0a5c
commit
428623c91c
2 changed files with 0 additions and 31 deletions
|
@ -1,7 +1,6 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import type { GetServerSideProps } from 'next'
|
import type { GetServerSideProps } from 'next'
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
import * as gtag from 'utils/gtag'
|
|
||||||
|
|
||||||
const IFrameWarning = dynamic(() => import('components/IFrameWarning'), {
|
const IFrameWarning = dynamic(() => import('components/IFrameWarning'), {
|
||||||
ssr: false,
|
ssr: false,
|
||||||
|
@ -17,21 +16,9 @@ interface RoomProps {
|
||||||
|
|
||||||
export default function Room({ id }: RoomProps) {
|
export default function Room({ id }: RoomProps) {
|
||||||
if (typeof window !== 'undefined' && window.self !== window.top) {
|
if (typeof window !== 'undefined' && window.self !== window.top) {
|
||||||
gtag.event({
|
|
||||||
action: 'connect_to_room_in_iframe',
|
|
||||||
category: 'v1',
|
|
||||||
label: id,
|
|
||||||
value: 0,
|
|
||||||
})
|
|
||||||
return <IFrameWarning url={`https://tldraw.com/r/${id}`} />
|
return <IFrameWarning url={`https://tldraw.com/r/${id}`} />
|
||||||
}
|
}
|
||||||
|
|
||||||
gtag.event({
|
|
||||||
action: process.env.NODE_ENV === 'production' ? 'connect_to_room' : 'connect_to_room_dev',
|
|
||||||
category: 'v1',
|
|
||||||
label: id,
|
|
||||||
value: 0,
|
|
||||||
})
|
|
||||||
return <MultiplayerEditor roomId={id} />
|
return <MultiplayerEditor roomId={id} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import type { GetServerSideProps } from 'next'
|
import type { GetServerSideProps } from 'next'
|
||||||
import dynamic from 'next/dynamic'
|
import dynamic from 'next/dynamic'
|
||||||
import * as gtag from 'utils/gtag'
|
|
||||||
import { Utils } from '@tldraw/core'
|
import { Utils } from '@tldraw/core'
|
||||||
|
|
||||||
const IFrameWarning = dynamic(() => import('components/IFrameWarning'), {
|
const IFrameWarning = dynamic(() => import('components/IFrameWarning'), {
|
||||||
|
@ -18,26 +17,9 @@ interface RoomProps {
|
||||||
|
|
||||||
export default function Room({ id }: RoomProps) {
|
export default function Room({ id }: RoomProps) {
|
||||||
if (typeof window !== 'undefined' && window.self !== window.top) {
|
if (typeof window !== 'undefined' && window.self !== window.top) {
|
||||||
gtag.event({
|
|
||||||
action: 'connect_to_readonly_room_in_iframe',
|
|
||||||
category: 'v1',
|
|
||||||
label: id,
|
|
||||||
value: 0,
|
|
||||||
})
|
|
||||||
|
|
||||||
return <IFrameWarning url={`https://tldraw.com/v/${id}`} />
|
return <IFrameWarning url={`https://tldraw.com/v/${id}`} />
|
||||||
}
|
}
|
||||||
|
|
||||||
gtag.event({
|
|
||||||
action:
|
|
||||||
process.env.NODE_ENV === 'production'
|
|
||||||
? 'connect_to_readonly_room'
|
|
||||||
: 'connect_to_readonly_room_dev',
|
|
||||||
category: 'v1',
|
|
||||||
label: id,
|
|
||||||
value: 0,
|
|
||||||
})
|
|
||||||
|
|
||||||
return <ReadOnlyMultiplayerEditor roomId={id} />
|
return <ReadOnlyMultiplayerEditor roomId={id} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue