Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Community Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT
Community Documentation
Commits
aa0d8f1d
Commit
aa0d8f1d
authored
5 years ago
by
Adam Green
Browse files
Options
Downloads
Patches
Plain Diff
Modified the google analytics code to match the new tags used by GA
parent
721484a2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_includes/head.html
+7
-4
7 additions, 4 deletions
_includes/head.html
with
7 additions
and
4 deletions
_includes/head.html
+
7
−
4
View file @
aa0d8f1d
...
...
@@ -15,12 +15,15 @@
<link
rel=
"stylesheet"
href=
"{{ "
/
assets
/
css
/
just-the-docs.css
"
|
absolute_url
}}"
>
{% if site.ga_tracking != nil %}
<script
async
src=
"https://www.googletagmanager.com/gtag/js?id={{site.ga_tracking}}"
></script>
<script>
window
.
ga
=
window
.
ga
||
function
(){(
ga
.
q
=
ga
.
q
||
[]).
push
(
arguments
)};
ga
.
l
=+
new
Date
;
ga
(
'
create
'
,
'
{{ site.ga_tracking }}
'
,
'
{{ site.url }}
'
);
ga
(
'
send
'
,
'
pageview
'
);
window
.
dataLayer
=
window
.
dataLayer
||
[];
function
gtag
(){
dataLayer
.
push
(
arguments
);}
gtag
(
'
js
'
,
new
Date
());
gtag
(
'
config
'
,
"
{{site.ga_tracking}}
"
);
</script>
<script
async
src=
"https://www.google-analytics.com/analytics.js"
></script>
{% endif %}
{% if site.search_enabled != nil %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment