-
Notifications
You must be signed in to change notification settings - Fork 25
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
No analytics code is added to html pages #53
Comments
My solution was to fork the jekyll theme repo and hard code the Plausible snippet in there Roald87/texture@85a1820. |
@Roald87 The environment variable needs to be set before Jekyll runs, right now you're setting it too late. See: # correct:
JEKYLL_ENV=production bundle exec jekyll serve
# incorrect:
bundle exec jekyll serve JEKYLL_ENV=production |
Thanks will try it! |
@Roald87 It's been a few days. Can you confirm if that solved your issue? |
🤷 it still doesn't work. Never mind then. I'm OK with the work-around. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to add Plausible analytics to my GitHub pages site. I assume that when everything works, the following snippet should be added somewhere between the
<head>
tags:I did the following:
gem 'jekyll-analytics'
to myGemfile
bundle install
, where I see the following line in the output:Using jekyll-analytics 0.1.14
_config.yml
file:bundle exec jekyll serve JEKYLL_ENV=production
When I inspect the index.html no analytics tag is added in the head. I also tested it with the GoogleAnalytics one, by replacing the
Plausible: ...
with:But again with the same result.
When I check the verbose output of
jekyll serve
I do no see the jekyll-analytics module being used anywhere:Or doesn't it show up in here?
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: