Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
bdc5e9ce
Unverified
Commit
bdc5e9ce
authored
Jan 25, 2024
by
Joel
Committed by
GitHub
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: test register ga (#2202)
parent
f2b2effc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
index.tsx
web/app/components/base/ga/index.tsx
+17
-1
No files found.
web/app/components/base/ga/index.tsx
View file @
bdc5e9ce
...
...
@@ -38,7 +38,23 @@ gtag('config', '${gaIdMaps[gaType]}');
}
}
>
</
Script
>
{
gaType
===
GaType
.
admin
&&
(
<>
<
Script
strategy=
"beforeInteractive"
async
src=
{
'https://www.googletagmanager.com/gtag/js?id=AW-11217955271"
}
'
}
>
</
Script
>
<
Script
id=
"ga-monitor-register"
dangerouslySetInnerHTML=
{
{
__html
:
`
window.dataLayer2 = window.dataLayer2 || [];
function gtag(){dataLayer2.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-11217955271"');
`
,
}
}
>
</
Script
>
</>
)}
</>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment