diff --git a/web/pages/analytics.tsx b/web/pages/analytics.tsx index 7dc6671f..45e84e85 100644 --- a/web/pages/analytics.tsx +++ b/web/pages/analytics.tsx @@ -15,6 +15,8 @@ import { getDailyBets } from 'web/lib/firebase/bets' import { getDailyComments } from 'web/lib/firebase/comments' import { getDailyContracts } from 'web/lib/firebase/contracts' import { getDailyNewUsers } from 'web/lib/firebase/users' +import { SiteLink } from 'web/components/site-link' +import { Linkify } from 'web/components/linkify' export const getStaticProps = fromPropz(getStaticPropz) export async function getStaticPropz() { @@ -192,9 +194,22 @@ export default function Analytics(props: { } return ( - - - {!IS_PRIVATE_MANIFOLD && } + , + }, + { + title: 'Market Stats', + content: , + }, + { + title: 'Google Analytics', + content: , + }, + ]} + /> ) } @@ -431,7 +446,6 @@ export function FirebaseAnalytics() { return ( <> - <p className="text-gray-500"> Less accurate; includes all viewers (not just signed-in users). </p> @@ -447,3 +461,28 @@ export function FirebaseAnalytics() { </> ) } + +export function WasabiCharts() { + return ( + <> + <p className="text-gray-500"> + Courtesy of <Linkify text="@wasabipesto" />; originally found{' '} + <SiteLink + className="font-bold" + href="https://wasabipesto.com/jupyter/manifold/" + > + here. + </SiteLink> + </p> + <Spacer h={4} /> + <iframe + className="w-full" + height={12000} + src="https://wasabipesto.com/jupyter/manifold/" + frameBorder="0" + style={{ border: 0 }} + allowFullScreen + /> + </> + ) +}