Skip to content

Commit

Permalink
feat: add Umami Analytics script
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Oct 7, 2023
1 parent c980e90 commit 48c77f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/(public)/cv/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Languages from '@/components/organisms/cv/Languages';
import Publications from '@/components/organisms/cv/Publications';
import WorkExperience from '@/components/organisms/cv/WorkExperience';

import { queryJobs } from '@/queries/jobs';
import { queryLanguages } from '@/queries/languages';
import { queryPublications } from '@/queries/publications';
import { querySchools } from '@/queries/schools';
Expand All @@ -28,13 +29,10 @@ export const metadata = {

const queryData = async () => {
const intro = await queryIntro();

const res = await fetch(process.env.BASEURL + '/api/jobs');
const jobs = await res.json();

const jobs = await queryJobs('en');
const languages = await queryLanguages();
const publications = await queryPublications('en');
const schools = await querySchools('it');
const schools = await querySchools('en');
const skills = await querySkills('en');

return {
Expand Down
7 changes: 7 additions & 0 deletions src/app/(public)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export default function RootLayout({ children }: { children: ReactNode }) {
type='text/javascript'
src='https://cdn-cookieyes.com/client_data/343cca4a060bf9189f75d72e/script.js'
></Script>

{/* Umami Analytics */}
<Script
async
src='https://analytics.eu.umami.is/script.js'
data-website-id='ab53ae74-58ea-44ff-b5fa-451b4f52c364'
></Script>
</head>
<body>
<LayoutClient>{children}</LayoutClient>
Expand Down

0 comments on commit 48c77f6

Please sign in to comment.