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

Plugin showing extra text #19

Open
simonhanmer opened this issue Apr 15, 2019 · 2 comments
Open

Plugin showing extra text #19

simonhanmer opened this issue Apr 15, 2019 · 2 comments

Comments

@simonhanmer
Copy link

simonhanmer commented Apr 15, 2019

Plugin configured in Gemfile:
...
gem 'jekyll-analytics', '~> 0.1.11'
...

and added in _config.yml
...
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-paginate
- jekyll-seo-tag
- jekyll-analytics

jekyll_analytics:
GoogleAnalytics: # Add, if you want to track with Google Analytics
id: UA-XXXX-XX # Real id is in place
anonymizeIp: false # Optional - Default: false - set to true for anonymized tracking
...

running via JEKYLL_ENV=production bundle exec jekyll serve
and I can see this text at the top of the page

closing tag, Google Analytics can be placed here -->

looking at the source of the page, I see:

    <!-- This goes before 
    <!-- 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','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-811002-18', 'auto');
  ga('send', 'pageview', { 'page': location.pathname + location.search + location.hash});
  ga('set', 'anonymizeIp', false);
    </script>
    <!-- End Google Analytics -->
    </head> closing tag, Google Analytics can be placed here --> 



    <!-- Google Analytics -->
@hendrikschneider
Copy link
Owner

Hey simonhanmer,

would you mind to post your template so that I can replicate the error?

Best wishes

@simonhanmer
Copy link
Author

Hi, there's some test content showing the error at https://serverlesslabs.dev.

If you need specific files, let me know and I can zip and attach if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants