Skip to content

Commit

Permalink
feat: add favicon and google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Jul 10, 2024
1 parent 2124363 commit e3d63cd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import '../styles/globals.css';
import React from 'react';
import { Metadata } from 'next';
import { siteMetadata } from '../lib/site-metadata';
import { GA_TRACKING_ID } from '../lib/google-analytics';
import { GoogleAnalytics } from '@next/third-parties/google'

export const metadata: Metadata = {
metadataBase: new URL(siteMetadata.siteUrl),
Expand Down Expand Up @@ -52,7 +54,10 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<link rel="icon" href="/favicon.png" sizes="any" type="image/png" />

<body>{children}</body>
<GoogleAnalytics gaId={GA_TRACKING_ID} />
</html>
);
}
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"devDependencies": {
"@catppuccin/highlightjs": "^0.2.2",
"@next/third-parties": "^14.2.5",
"@playwright/test": "^1.45.1",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
Expand Down

0 comments on commit e3d63cd

Please sign in to comment.