Skip to content

Commit 1c240dd

Browse files
authored
Revert "Posthog tracking for video embeds starts" (#2738)
Revert "Posthog tracking for video embeds starts (#2699)" This reverts commit 9eac670.
1 parent 9eac670 commit 1c240dd

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

src/components/video-embed/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
useMilestones,
1616
} from './helpers'
1717
import s from './video-embed.module.css'
18-
import { trackVideoStart } from 'lib/posthog-events'
1918

2019
/**
2120
* MAX_PLAYBACK_SPEED is based on max speeds for YouTube & Wistia.
@@ -143,9 +142,6 @@ function VideoEmbed({
143142
{...reactPlayerProps}
144143
config={config}
145144
url={url}
146-
onStart={() => {
147-
trackVideoStart(url)
148-
}}
149145
onDuration={setDuration}
150146
progressInterval={PROGRESS_INTERVAL}
151147
onProgress={({ playedSeconds }: { playedSeconds: number }) => {

src/layouts/sidebar-sidecar/utils/_local_platform-docs-mdx/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import React from 'react'
77
import { DocsEnterpriseAlert } from './components/enterprise-alert'
88
import Image from 'components/image'
99
import { ImageProps } from 'components/image/types'
10-
import VideoEmbed from 'components/video-embed'
1110

1211
// This function returns a simple object containing the default components
1312
// The `additionalComponents` param is purely for convenience.
@@ -38,6 +37,5 @@ function _defaultComponents() {
3837
return {
3938
EnterpriseAlert: DocsEnterpriseAlert,
4039
img: makeImageElement({ noBorder: true }),
41-
VideoEmbed,
4240
}
4341
}

src/lib/posthog-events.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)