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
97302973
Unverified
Commit
97302973
authored
Jan 26, 2024
by
Joel
Committed by
GitHub
Jan 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: move register ga to signin page (#2233)
parent
99e80a8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
index.tsx
web/app/components/base/ga/index.tsx
+0
-17
page.tsx
web/app/signin/page.tsx
+19
-0
No files found.
web/app/components/base/ga/index.tsx
View file @
97302973
...
...
@@ -38,23 +38,6 @@ 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
>
</>
)}
</>
)
...
...
web/app/signin/page.tsx
View file @
97302973
import
React
from
'react'
import
cn
from
'classnames'
import
Script
from
'next/script'
import
Forms
from
'./forms'
import
Header
from
'./_header'
import
style
from
'./page.module.css'
import
{
IS_CE_EDITION
}
from
'@/config'
const
SignIn
=
()
=>
{
return
(
<>
{
!
IS_CE_EDITION
&&
(
<>
<
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
>
</>
)}
<
div
className=
{
cn
(
style
.
background
,
'flex w-full min-h-screen'
,
...
...
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