Skip to content

Commit

Permalink
feat: ✨ add missing Assets.pageViewed event
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Dec 18, 2024
1 parent 5105742 commit 29a25d5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions packages/web/pages/assets/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import type { NextPage } from "next";

import { AssetsInfoTable } from "~/components/table/asset-info";
import { EventName } from "~/config";
import { useAmplitudeAnalytics } from "~/hooks";

const Assets: NextPage = () => (
<main className="mx-auto max-w-container p-8 pt-4 md:p-4">
<AssetsInfoTable tableTopPadding={16} />
</main>
);
const Assets: NextPage = () => {
useAmplitudeAnalytics({
onLoadEvent: [EventName.Assets.pageViewed],
});

return (
<main className="mx-auto max-w-container p-8 pt-4 md:p-4">
<AssetsInfoTable tableTopPadding={16} />
</main>
);
};

export default Assets;

0 comments on commit 29a25d5

Please sign in to comment.