Skip to content

Commit 380857f

Browse files
authored
Merge pull request #4 from CodeHarborHub/dev-2
added google-tag-manager
2 parents 82bfe9c + 4ce0438 commit 380857f

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ const config = {
310310
mode: 'auto',
311311
},
312312
],
313+
[
314+
'@docusaurus/plugin-google-tag-manager',
315+
{
316+
containerId: 'GTM-MLJNRGC9',
317+
},
318+
],
313319
[
314320
"@docusaurus/plugin-pwa",
315321
{

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"dependencies": {
1717
"@docusaurus/core": "^3.2.1",
1818
"@docusaurus/plugin-content-pages": "^3.2.1",
19+
"@docusaurus/plugin-google-tag-manager": "^3.2.1",
1920
"@docusaurus/plugin-ideal-image": "^3.2.1",
2021
"@docusaurus/plugin-pwa": "^3.2.1",
2122
"@docusaurus/plugin-vercel-analytics": "^3.2.1",

src/theme/MDXComponents.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import InsertionSortVisualization from '@site/src/components/DSA/arrays/Insertio
1919
import File from '@site/src/components/File';
2020
import YoutubeVideo from '../components/YoutubeVideo';
2121
import Lesson from '@site/src/components/Lesson';
22+
import Image from '@theme/IdealImage';
2223

2324
export default {
2425
// Re-use the default mapping
@@ -43,5 +44,6 @@ export default {
4344
InsertionSortVisualization,
4445
File,
4546
YoutubeVideo,
46-
Lesson
47+
Lesson,
48+
Image
4749
};

0 commit comments

Comments
 (0)