Skip to content

Commit

Permalink
google tag manager added to root
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebubble committed Jan 23, 2025
1 parent 1386a31 commit 02e8d0f
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 1,124 deletions.
40 changes: 18 additions & 22 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Scripts,
ScrollRestoration,
} from '@remix-run/react';
import type { LinksFunction, MetaFunction } from '@remix-run/node';
import type { LinksFunction } from '@remix-run/node';
import './tailwind.css';
import { RootLayout } from './components/ui/RootLayout';

Expand All @@ -22,27 +22,6 @@ export const links: LinksFunction = () => [
},
];

export const meta: MetaFunction = () => {
const title = "DEVSA - Building Authentic Connections"
const description = "DEVSA is your hub for the San Antonio tech space, connecting you with like-minded individuals passionate about exploring the latest technologies and tools"
const ogImageUrl = `/og?title=${encodeURIComponent(title)}&description=${encodeURIComponent(description)}`

return [
{ title },
{ name: "description", content: description },
{ property: "og:title", content: title },
{ property: "og:description", content: description },
{ property: "og:image", content: ogImageUrl },
{ property: "og:image:type", content: "image/png" },
{ property: "og:image:width", content: "1200" },
{ property: "og:image:height", content: "630" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:title", content: title },
{ name: "twitter:description", content: description },
{ name: "twitter:image", content: ogImageUrl },
]
}

export function Layout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className="h-full bg-neutral-950 text-base antialiased">
Expand All @@ -53,9 +32,26 @@ export function Layout({ children }: { children: React.ReactNode }) {
content="width=device-width, initial-scale=1"
/>
<Meta />
{/* <!-- Google Tag Manager --> */}
<script dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MV4N2K33');`
}}></script>
<Links />
</head>
<body className="flex min-h-full flex-col">
{/* <!-- Google Tag Manager (noscript) --> */}
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-MV4N2K33"
height="0"
width="0"
style={{ display: 'none', visibility: 'hidden' }}
></iframe>
</noscript>
<RootLayout>
{children}
<ScrollRestoration />
Expand Down
4 changes: 2 additions & 2 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Coworking } from '~/components/CTA/Coworking';
export const meta: MetaFunction = () => {
return [
{
title: 'DEVSA | Your Local Tech Community',
title: 'DEVSA - Building Authentic Connections',
},
{
property: 'og:url',
Expand All @@ -19,7 +19,7 @@ export const meta: MetaFunction = () => {
},
{
property: 'og:title',
content: 'DEVSA | Learning Networking Community',
content: 'WTF is DEVSA?',
},
{
name: 'description',
Expand Down
6 changes: 3 additions & 3 deletions app/routes/board/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Board, VisionGrid } from './board';
export const meta: MetaFunction = () => {
return [
{
title: 'DEVSA | Community Platform',
title: 'DEVSA | Focused on Learning, Networking, and Community',
},
{
property: 'og:url',
Expand All @@ -16,12 +16,12 @@ export const meta: MetaFunction = () => {
},
{
property: 'og:title',
content: 'DEVSA | Create a Community for Passionate Tech Enthusiasts',
content: 'Your Support Matters | Make a Tax-Deductible Donation',
},
{
name: 'description',
content:
'San Antonio Tech Community Focused on Learning and Networking!',
"We're building a stronger ecosystem for the techies in San Antonio",
},
{
property: 'og:image',
Expand Down
6 changes: 3 additions & 3 deletions app/routes/coworking-space/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CoworkingHero } from './CoworkingHero';
export const meta: MetaFunction = () => {
return [
{
title: 'DEVSA | Community Platform',
title: 'DEVSA | Learn Build Connect',
},
{
property: 'og:url',
Expand All @@ -16,12 +16,12 @@ export const meta: MetaFunction = () => {
},
{
property: 'og:title',
content: 'DEVSA | Coworking Space | Powered by Geekdom',
content: 'DEVSA Coworking Space | Powered by Geekdom',
},
{
name: 'description',
content:
'Introducing the DEVSA Co-Working Space, powered by Geekdom! This co-working space is designed to bring together tech enthusiasts and provide a central location for learning, networking, and collaboration',
"Professional, student, or simply passionate about technology, you'll find a supportive community inside the DEVSA Coworking Space",
},
{
property: 'og:image',
Expand Down
6 changes: 3 additions & 3 deletions app/routes/mission/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Quote } from './Quote';
export const meta: MetaFunction = () => {
return [
{
title: 'DEVSA | Community Platform',
title: 'DEVSA | Focused on Learning, Networking, and Community',
},
{
property: 'og:url',
Expand All @@ -17,12 +17,12 @@ export const meta: MetaFunction = () => {
},
{
property: 'og:title',
content: 'DEVSA | Create a Community for Passionate Tech Enthusiasts',
content: 'DEVSA | The Community for Passionate Tech Enthusiasts in San Antonio',
},
{
name: 'description',
content:
'San Antonio Tech Community Focused on Learning and Networking!',
"DEVSA is your hub for the San Antonio tech space, connecting you with like-minded individuals passionate about exploring the latest technologies and tools",
},
{
property: 'og:image',
Expand Down
117 changes: 0 additions & 117 deletions app/routes/og.tsx

This file was deleted.

126 changes: 0 additions & 126 deletions app/routes/replay2024/replay.og.tsx

This file was deleted.

Loading

0 comments on commit 02e8d0f

Please sign in to comment.