File tree 2 files changed +6
-19
lines changed
2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- plugins : {
3
- tailwindcss : { } ,
4
- autoprefixer : { } ,
5
- } ,
6
- }
2
+ plugins : {
3
+ tailwindcss : { } ,
4
+ autoprefixer : { } ,
5
+ } ,
6
+ } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from "react";
2
2
import { DocsThemeConfig , useConfig } from "nextra-theme-docs" ;
3
3
import { useRouter } from "next/router" ;
4
4
import { GoogleAnalytics } from '@next/third-parties/google'
5
- import Script from "next/script" ;
6
5
7
6
const config : DocsThemeConfig = {
8
7
head : ( ) => {
@@ -19,19 +18,7 @@ const config: DocsThemeConfig = {
19
18
return (
20
19
< >
21
20
< title > { fullTitle } </ title >
22
- < Script
23
- strategy = 'lazyOnload'
24
- src = { `https://www.googletagmanager.com/gtag/js?id=${ googleId } ` }
25
- />
26
-
27
- < Script id = '' strategy = 'lazyOnload' >
28
- { `
29
- window.dataLayer = window.dataLayer || [];
30
- function gtag(){dataLayer.push(arguments);}
31
- gtag('js', new Date());
32
- gtag('config', '${ googleId } ');
33
- ` }
34
- </ Script >
21
+ < GoogleAnalytics gaId = { googleId } />
35
22
< link rel = "icon" type = "image/png" href = "/logo.png" />
36
23
37
24
< meta httpEquiv = "Content-Language" content = "en" />
You can’t perform that action at this time.
0 commit comments