Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Google Analytics #31

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions README.md
Expand Up @@ -22,7 +22,6 @@ It is built using the open source [AMP Start framework](https://www.ampstart.com
- Social Sharing
- Simple Navigation Menu
- Pagination
- Google Analytics
- Can be easily installed via "theme gem"
- Github Pages support
- Easily Customisable
Expand Down Expand Up @@ -153,10 +152,6 @@ http://localhost:4000/#development=1

If you have errors on your page, AMP will list those for you in the console. If you do not have any errors, you'll get a message "AMP Validation Successful" on your console.

## Enabling Google Analytics
1. Set up your Analytics Tracking ID in _config.yml.
2. Remove {% comment %} and {% endcomment %} tags in the default.html file in layouts directory.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/samanyougarg/hanuman. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
Expand Down
6 changes: 1 addition & 5 deletions _config.yml
Expand Up @@ -30,10 +30,6 @@ privacy-policy: privacy-policy

permalink: /:title


# Google Analytics
analytics_id: ""

# Build settings
markdown: kramdown

Expand Down Expand Up @@ -63,4 +59,4 @@ exclude:
- changelog.md
- "*.Rmd"
- vendor
- .travis.yml
- .travis.yml
15 changes: 0 additions & 15 deletions _includes/analytics.html

This file was deleted.

1 change: 0 additions & 1 deletion _includes/head.html
Expand Up @@ -60,7 +60,6 @@
<script custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js" async=""></script>
<script async custom-element="amp-list" src="https://cdn.ampproject.org/v0/amp-list-0.1.js"></script>
<script async custom-template="amp-mustache" src="https://cdn.ampproject.org/v0/amp-mustache-0.1.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<script async custom-element="amp-youtube" src="https://cdn.ampproject.org/v0/amp-youtube-0.1.js"></script>
<script async custom-element="amp-form" src="https://cdn.ampproject.org/v0/amp-form-0.1.js"></script>
<script async custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-0.1.js"></script>
Expand Down
4 changes: 0 additions & 4 deletions _layouts/default.html
Expand Up @@ -5,9 +5,5 @@
{% include header.html %}

{{ content }}

{% comment %}
{% include analytics.html %}
{% endcomment %}
</body>
</html>