Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d7d75c1

Browse files
authored
Merge pull request #328 from janhq/feat/setup-gtm
feat: setup GTM for nitro landing
2 parents 15a256b + ac20e46 commit d7d75c1

File tree

2 files changed

+45
-24
lines changed

2 files changed

+45
-24
lines changed

docs/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
GTM_ID=xxxx
12
POSTHOG_PROJECT_API_KEY=xxxx
23
POSTHOG_APP_URL=xxxx

docs/docusaurus.config.js

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ const config = {
9090
theme: {
9191
customCss: "./src/styles/main.scss",
9292
},
93+
googleTagManager: {
94+
containerId: process.env.GTM_ID || "XXX",
95+
},
9396
// Will be passed to @docusaurus/plugin-content-pages (false to disable)
9497
// pages: {},
9598
}),
@@ -124,51 +127,68 @@ const config = {
124127
playgroundPosition: "bottom",
125128
},
126129
metadata: [
127-
128-
{ name: 'description', content: 'Nitro is a high-efficiency Large Language Model inference engine for edge computing.'},
129-
{ name: 'keywords', content: 'Nitro, Jan, fast inference, inference server, local AI, large language model, OpenAI compatible, open source, llama' },
130+
{
131+
name: "description",
132+
content:
133+
"Nitro is a high-efficiency Large Language Model inference engine for edge computing.",
134+
},
135+
{
136+
name: "keywords",
137+
content:
138+
"Nitro, Jan, fast inference, inference server, local AI, large language model, OpenAI compatible, open source, llama",
139+
},
130140

131141
// Canonical URL
132-
{ name: 'canonical', content: 'https://nitro.jan.ai/' },
133-
142+
{ name: "canonical", content: "https://nitro.jan.ai/" },
143+
134144
// Robots tags
135145
{ name: "robots", content: "index, follow" },
136-
146+
137147
// Open Graph tags
138-
{ property: 'og:title', content: 'Fast inference engine | Nitro' },
139-
{ property: 'og:description', content: 'Nitro is a high-efficiency Large Language Model inference engine for edge computing.' },
140-
{ property: 'og:type', content: 'website'},
148+
{ property: "og:title", content: "Fast inference engine | Nitro" },
149+
{
150+
property: "og:description",
151+
content:
152+
"Nitro is a high-efficiency Large Language Model inference engine for edge computing.",
153+
},
154+
{ property: "og:type", content: "website" },
141155

142156
// Twitter card tags
143-
{ property: 'twitter:card', content: 'summary_large_image' },
144-
{ property: 'twitter:site', content: '@janhq_' },
145-
{ property: 'twitter:title', content: 'Fast inference engine | Nitro' },
146-
{ property: 'twitter:description', content: 'Nitro is a high-efficiency Large Language Model inference engine for edge computing.' },
157+
{ property: "twitter:card", content: "summary_large_image" },
158+
{ property: "twitter:site", content: "@janhq_" },
159+
{ property: "twitter:title", content: "Fast inference engine | Nitro" },
160+
{
161+
property: "twitter:description",
162+
content:
163+
"Nitro is a high-efficiency Large Language Model inference engine for edge computing.",
164+
},
147165
],
148166
headTags: [
149167
// Declare a <link> preconnect tag
150168
{
151-
tagName: 'link',
169+
tagName: "link",
152170
attributes: {
153-
rel: 'preconnect',
154-
href: 'https://nitro.jan.ai/',
171+
rel: "preconnect",
172+
href: "https://nitro.jan.ai/",
155173
},
156174
},
157175
// Declare some json-ld structured data
158176
{
159-
tagName: 'script',
177+
tagName: "script",
160178
attributes: {
161-
type: 'application/ld+json',
179+
type: "application/ld+json",
162180
},
163181
innerHTML: JSON.stringify({
164-
'@context': 'https://schema.org/',
165-
'@type': 'LLMInference',
166-
name: 'Nitro',
167-
description: "Nitro is a high-efficiency Large Language Model inference engine for edge computing.",
168-
keywords: "Nitro, OpenAI compatible, fast inference, local AI, llm, small AI, free, open source, production ready",
182+
"@context": "https://schema.org/",
183+
"@type": "LLMInference",
184+
name: "Nitro",
185+
description:
186+
"Nitro is a high-efficiency Large Language Model inference engine for edge computing.",
187+
keywords:
188+
"Nitro, OpenAI compatible, fast inference, local AI, llm, small AI, free, open source, production ready",
169189
applicationCategory: "BusinessApplication",
170190
operatingSystem: "Multiple",
171-
url: 'https://nitro.jan.ai/',
191+
url: "https://nitro.jan.ai/",
172192
}),
173193
},
174194
],

0 commit comments

Comments
 (0)