Skip to content

Commit 02e8d0f

Browse files
committed
google tag manager added to root
1 parent 1386a31 commit 02e8d0f

File tree

10 files changed

+32
-1124
lines changed

10 files changed

+32
-1124
lines changed

app/root.tsx

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Scripts,
66
ScrollRestoration,
77
} from '@remix-run/react';
8-
import type { LinksFunction, MetaFunction } from '@remix-run/node';
8+
import type { LinksFunction } from '@remix-run/node';
99
import './tailwind.css';
1010
import { RootLayout } from './components/ui/RootLayout';
1111

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

25-
export const meta: MetaFunction = () => {
26-
const title = "DEVSA - Building Authentic Connections"
27-
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"
28-
const ogImageUrl = `/og?title=${encodeURIComponent(title)}&description=${encodeURIComponent(description)}`
29-
30-
return [
31-
{ title },
32-
{ name: "description", content: description },
33-
{ property: "og:title", content: title },
34-
{ property: "og:description", content: description },
35-
{ property: "og:image", content: ogImageUrl },
36-
{ property: "og:image:type", content: "image/png" },
37-
{ property: "og:image:width", content: "1200" },
38-
{ property: "og:image:height", content: "630" },
39-
{ name: "twitter:card", content: "summary_large_image" },
40-
{ name: "twitter:title", content: title },
41-
{ name: "twitter:description", content: description },
42-
{ name: "twitter:image", content: ogImageUrl },
43-
]
44-
}
45-
4625
export function Layout({ children }: { children: React.ReactNode }) {
4726
return (
4827
<html lang="en" className="h-full bg-neutral-950 text-base antialiased">
@@ -53,9 +32,26 @@ export function Layout({ children }: { children: React.ReactNode }) {
5332
content="width=device-width, initial-scale=1"
5433
/>
5534
<Meta />
35+
{/* <!-- Google Tag Manager --> */}
36+
<script dangerouslySetInnerHTML={{
37+
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
38+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
39+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
40+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
41+
})(window,document,'script','dataLayer','GTM-MV4N2K33');`
42+
}}></script>
5643
<Links />
5744
</head>
5845
<body className="flex min-h-full flex-col">
46+
{/* <!-- Google Tag Manager (noscript) --> */}
47+
<noscript>
48+
<iframe
49+
src="https://www.googletagmanager.com/ns.html?id=GTM-MV4N2K33"
50+
height="0"
51+
width="0"
52+
style={{ display: 'none', visibility: 'hidden' }}
53+
></iframe>
54+
</noscript>
5955
<RootLayout>
6056
{children}
6157
<ScrollRestoration />

app/routes/_index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Coworking } from '~/components/CTA/Coworking';
77
export const meta: MetaFunction = () => {
88
return [
99
{
10-
title: 'DEVSA | Your Local Tech Community',
10+
title: 'DEVSA - Building Authentic Connections',
1111
},
1212
{
1313
property: 'og:url',
@@ -19,7 +19,7 @@ export const meta: MetaFunction = () => {
1919
},
2020
{
2121
property: 'og:title',
22-
content: 'DEVSA | Learning Networking Community',
22+
content: 'WTF is DEVSA?',
2323
},
2424
{
2525
name: 'description',

app/routes/board/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Board, VisionGrid } from './board';
44
export const meta: MetaFunction = () => {
55
return [
66
{
7-
title: 'DEVSA | Community Platform',
7+
title: 'DEVSA | Focused on Learning, Networking, and Community',
88
},
99
{
1010
property: 'og:url',
@@ -16,12 +16,12 @@ export const meta: MetaFunction = () => {
1616
},
1717
{
1818
property: 'og:title',
19-
content: 'DEVSA | Create a Community for Passionate Tech Enthusiasts',
19+
content: 'Your Support Matters | Make a Tax-Deductible Donation',
2020
},
2121
{
2222
name: 'description',
2323
content:
24-
'San Antonio Tech Community Focused on Learning and Networking!',
24+
"We're building a stronger ecosystem for the techies in San Antonio",
2525
},
2626
{
2727
property: 'og:image',

app/routes/coworking-space/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CoworkingHero } from './CoworkingHero';
44
export const meta: MetaFunction = () => {
55
return [
66
{
7-
title: 'DEVSA | Community Platform',
7+
title: 'DEVSA | Learn Build Connect',
88
},
99
{
1010
property: 'og:url',
@@ -16,12 +16,12 @@ export const meta: MetaFunction = () => {
1616
},
1717
{
1818
property: 'og:title',
19-
content: 'DEVSA | Coworking Space | Powered by Geekdom',
19+
content: 'DEVSA Coworking Space | Powered by Geekdom',
2020
},
2121
{
2222
name: 'description',
2323
content:
24-
'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',
24+
"Professional, student, or simply passionate about technology, you'll find a supportive community inside the DEVSA Coworking Space",
2525
},
2626
{
2727
property: 'og:image',

app/routes/mission/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Quote } from './Quote';
55
export const meta: MetaFunction = () => {
66
return [
77
{
8-
title: 'DEVSA | Community Platform',
8+
title: 'DEVSA | Focused on Learning, Networking, and Community',
99
},
1010
{
1111
property: 'og:url',
@@ -17,12 +17,12 @@ export const meta: MetaFunction = () => {
1717
},
1818
{
1919
property: 'og:title',
20-
content: 'DEVSA | Create a Community for Passionate Tech Enthusiasts',
20+
content: 'DEVSA | The Community for Passionate Tech Enthusiasts in San Antonio',
2121
},
2222
{
2323
name: 'description',
2424
content:
25-
'San Antonio Tech Community Focused on Learning and Networking!',
25+
"DEVSA is your hub for the San Antonio tech space, connecting you with like-minded individuals passionate about exploring the latest technologies and tools",
2626
},
2727
{
2828
property: 'og:image',

app/routes/og.tsx

Lines changed: 0 additions & 117 deletions
This file was deleted.

app/routes/replay2024/replay.og.tsx

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)