Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roberto Bochet
poul.org
Commits
d2945f9c
Commit
d2945f9c
authored
Mar 25, 2015
by
Edu Garcia
Browse files
Made Google Analytics optional and configurable
parent
349f2cf5
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d2945f9c
...
...
@@ -39,7 +39,8 @@ The main settings can be found inside the `_config.yml` file:
-
**url:**
your url
-
**paginate:**
the amount of posts displayed on homepage
-
**navigation:**
these are the links in the main site navigation
-
**social**
diverse social media usernames
-
**social**
diverse social media usernames (optional)
-
**google_analytics**
Google Analytics key (optional)
## License
...
...
_config.yml
View file @
d2945f9c
...
...
@@ -23,3 +23,5 @@ social:
twitter
:
brianmaierjr
facebook
:
brianmaierjr
email
:
brimaidesigns@gmail.com
google_analytics
:
"
UA-58263416-1"
_includes/google_analytics.html
View file @
d2945f9c
...
...
@@ -5,7 +5,7 @@
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
//www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-58263416-1
'
,
'
auto
'
);
ga
(
'
create
'
,
'
{{ site.google_analytics }}
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
</script>
_includes/head.html
View file @
d2945f9c
...
...
@@ -19,5 +19,5 @@
<!-- Modernizr -->
<script
src=
"{{ "
/
assets
/
js
/
modernizr.custom.15390.js
"
|
prepend:
site.baseurl
}}"
type=
"text/javascript"
></script>
{% include google_analytics.html %}
{%
if site.google_analytics %} {%
include google_analytics.html %}
{% 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