Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

added errors tracking page opengraph image

Blue Mouseace01611bbf4
diff --git a/app/components/SEO.tsx b/app/components/SEO.tsx
index f6e020f4b..0cee0c7d1 100644
--- a/app/components/SEO.tsx
+++ b/app/components/SEO.tsx
@@ -5,6 +5,7 @@ import _toUpper from 'lodash/toUpper'
// import { MAIN_URL } from 'redux/constants'
import { getPageMeta } from 'utils/server'
import { getOgImageUrl } from 'redux/constants'
+import routes from 'routesPath'
export const SEO = () => {
const {
@@ -16,6 +17,7 @@ export const SEO = () => {
const isBlogPage = _startsWith(pathname, '/blog')
const isMainPage = pathname === '/'
+ const isErrorsPage = pathname === routes.errorTracking
const isProjectViewPage = _startsWith(pathname, '/projects/')
const ogImageUrl = getOgImageUrl(prefixLessTitle)
@@ -44,7 +46,13 @@ export const SEO = () => {
<meta property='og:image' content='https://swetrix.com/assets/og_image.png' />
</>
)}
- {!isProjectViewPage && !isMainPage && (
+ {isErrorsPage && (
+ <>
+ <meta name='twitter:image' content='https://swetrix.com/assets/og_image_errors.png' />
+ <meta property='og:image' content='https://swetrix.com/assets/og_image_errors.png' />
+ </>
+ )}
+ {!isProjectViewPage && !isMainPage && !isErrorsPage && (
<>
<meta name='twitter:image' content={ogImageUrl} />
<meta property='og:image' content={ogImageUrl} />
diff --git a/public/assets/og_image_errors.png b/public/assets/og_image_errors.png
new file mode 100644
index 000000000..66ea40afa
Binary files /dev/null and b/public/assets/og_image_errors.png differ