Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kitian616/jekyll-TeXt-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed May 24, 2018
2 parents ac86cdf + e0bc411 commit 4315cac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ leancloud:
##############################
## Google Analytics
ga_tracking_id: UA-71907556-1 #Google analytics id for the site

ga_anonymize_ip: false # Anonymize IP tracking for Analytics

## => Build
##############################
Expand Down
2 changes: 1 addition & 1 deletion _config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ leancloud:
##############################
## Google Analytics
ga_tracking_id: # Google Analytics id for the site

ga_anonymize_ip: false # Anonymize IP tracking for Analytics

## => Build
##############################
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ leancloud:
##############################
## Google Analytics
ga_tracking_id: # Google Analytics id for the site

ga_anonymize_ip: false # Anonymize IP tracking for Analytics

## => Build
##############################
Expand Down
3 changes: 3 additions & 0 deletions _includes/analytics-providers/google.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

ga('create', '{{ site.ga_tracking_id }}', 'auto');
ga('send', 'pageview');
{% if site.ga_anonymize_ip == true %}
ga('set', 'anonymizeIp', true);
{% endif %}
</script>

{%- endif -%}

0 comments on commit 4315cac

Please sign in to comment.