Skip to content

Commit

Permalink
Merge pull request #1 from resynth1943/patch-1
Browse files Browse the repository at this point in the history
Remove Google Analytics
  • Loading branch information
christianezeani authored Jun 1, 2020
2 parents 6726d54 + d82b279 commit 41950f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ panthera-jekyll currently supports the following icons:

* [FontAwesome](https://fontawesome.com) (version 5.9.0)

Additionally, you may choose to set the following optional variables:

```yml
google_analytics: [Your Google Analytics tracking ID]
```

### Stylesheet

If you'd like to add your own custom styles:
Expand Down
12 changes: 1 addition & 11 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@
<script type="text/javascript" src="{{ '/assets/libs/jquery-3.4.1.min.js' | relative_url }}"></script>
<script type="text/javascript" src="{{ '/assets/libs/jquery-migrate-3.0.1.min.js' | relative_url }}"></script>
<script type="text/javascript" src="{{ '/assets/js/panthera-jekyll.js?v=' | append: site.github.build_revision | relative_url }}"></script>

{% if site.google_analytics %}
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}

</body>
</html>

0 comments on commit 41950f7

Please sign in to comment.