Skip to content

Commit c8fce65

Browse files
authored
script (#158)
1 parent 276575e commit c8fce65

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/app/BaiDuAnalytics.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const BaiduAnalytics = () => {
99

1010
return (
1111
<Script
12+
defer
1213
id="baidu-tongji"
1314
strategy="afterInteractive"
1415
src={`https://hm.baidu.com/hm.js?${key}`}

src/app/ClarityAnalytics.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const ClarityAnalytics = () => {
99

1010
return (
1111
<Script
12+
defer
1213
id="clarity-tongji"
1314
strategy="afterInteractive"
1415
src={`https://www.clarity.ms/tag/${key}`}

src/app/GoogleAnalytics.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ const GoogleAnalytics = () => {
99
{gtag.GA_TRACKING_ID && (
1010
<>
1111
<Script
12+
defer
1213
strategy="afterInteractive"
1314
src={`https://www.googletagmanager.com/gtag/js?id=${gtag.GA_TRACKING_ID}`}
1415
/>
1516
<Script
1617
id="gtag-init"
18+
defer
1719
strategy="afterInteractive"
1820
dangerouslySetInnerHTML={{
1921
__html: `

src/app/RybbitAnalytics.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const RybbitAnalytics = () => {
1212
<Script
1313
id="rybbit-tongji"
1414
strategy="afterInteractive"
15+
defer
1516
data-site-id={`${siteId}`}
1617
src={`${key}`}
1718
/>

0 commit comments

Comments
 (0)