diff --git a/src/events/lib/schema.js b/src/events/lib/schema.js index 2541d6344f..e5c75e34fa 100644 --- a/src/events/lib/schema.js +++ b/src/events/lib/schema.js @@ -395,7 +395,6 @@ const experiment = { }, experiment_variation: { type: 'string', - enum: ['control', 'treatment'], description: 'The variation this user we bucketed in, such as control or treatment.', }, experiment_success: { diff --git a/src/frame/components/article/ArticlePage.tsx b/src/frame/components/article/ArticlePage.tsx index 425b39dab5..0999ff202b 100644 --- a/src/frame/components/article/ArticlePage.tsx +++ b/src/frame/components/article/ArticlePage.tsx @@ -12,6 +12,7 @@ import { Lead } from 'src/frame/components/ui/Lead' import { PermissionsStatement } from 'src/frame/components/ui/PermissionsStatement' import { ArticleGridLayout } from './ArticleGridLayout' import { ArticleInlineLayout } from './ArticleInlineLayout' +import { MeasureBrokenHashes } from './MeasureBrokenHashes' import { PlatformPicker } from 'src/tools/components/PlatformPicker' import { ToolPicker } from 'src/tools/components/ToolPicker' import { MiniTocs } from 'src/frame/components/ui/MiniTocs' @@ -102,6 +103,7 @@ export const ArticlePage = () => { {isDev && } + {router.pathname.includes('/rest/') && } {currentLayout === 'inline' ? ( { + try { + if (asPath.includes('#')) { + const hash = asPath.split('#')[1] + if (hash) sendHash(hash) + } + } catch (error) { + console.error('Error measuring broken hash', error) + } + }, []) + + return null +}