Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
snac
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
snac
snac
Commits
26c7966d
Commit
26c7966d
authored
Jun 07, 2023
by
Jason Jordan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert to Google Analytics 4
parent
f49f7e02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
snippet_page.html
src/snac/client/webui/templates/snippet_page.html
+6
-6
No files found.
src/snac/client/webui/templates/snippet_page.html
View file @
26c7966d
...
...
@@ -113,14 +113,14 @@ body {
</style>
{# If there is a google analytics tracking ID, then insert the Google Analytics script #}
{% if control.googleAnalyticsID %}
<!-- Google tag (gtag.js) -->
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id={{control.googleAnalyticsID}}"
></script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
){
i
[
'GoogleAnalyticsObject'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(){
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'script'
,
'https://www.google-analytics.com/analytics.js'
,
'ga'
);
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
(){
dataLayer
.
push
(
arguments
);}
gtag
(
'js'
,
new
Date
());
ga
(
'create'
,
'{{control.googleAnalyticsID}}'
,
'auto'
);
ga
(
'send'
,
'pageview'
);
gtag
(
'config'
,
'{{control.googleAnalyticsID}}'
);
</script>
{% endif %}
</head>
...
...
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