Comments (11)
I don't have your site and code, how can I solve your problem ?
from jekyll-text-theme.
不好意思,原諒我沒有附上code,因為我只有修改_config.yml的Google analytics ID的部分,其它是沒有修改的
## Google Analytics ##
ga_tracking_id: UA-******515-1
from jekyll-text-theme.
在使用 analytics 之前有一个判断,只有在非 development 的时候才会出现:
{%- if jekyll.environment != "development" -%}
...
{%- endif -%}
这是 demo 站点的编译脚本:
JEKYLL_ENV=production bundle exec jekyll build --config ./_config.demo.yml
你看看 JEKYLL_ENV
变量的值是否为 development。本地启动默认是 development, GitHub Page 默认是 production。
I'm writing some documents for TeXt Theme, 现有的文档介绍的不是很清晰。
from jekyll-text-theme.
感謝回覆,我有注意到這個判斷式,但我是直接clone您的git到本地端修改相關_config.yml內容後Push到
GitHub,並指向master branch 做為GitHub page,是否有可能是在GitHub Jekyll編譯啟動時造成的bug?
謝謝您
JEKYLL_ENV的變數與您是一模一樣的
from jekyll-text-theme.
不清楚,线索太少,没法判断。
GitHub 在编译的时候默认会把 JEKYLL_ENV
的值设置为 production 的。
from jekyll-text-theme.
遇到了同样的问题,cloudflare上有访问数据,但google analytics两天以来一直是0。之前还能看到访问信息…近期并没有对相关代码进行过修改。
设成了private,所以没有办法提供代码了,只是正好看到了这个issue就回复一下。
from jekyll-text-theme.
@ZeroneCat Strange, I found your site, and there is an error about googletagmanager.
Can't visit google analytic for a while. so I can't test ...
from jekyll-text-theme.
from jekyll-text-theme.
Oh, Many thanks @ZeroneCat .😄
from jekyll-text-theme.
@kitian616 has this been resolved? Not sure if this is supposed to work out of the box. I can't read the text above. 😭
from jekyll-text-theme.
@pkayokay My temporary solution is to move Google analytics script to base.html
from jekyll-text-theme.
Related Issues (20)
- Bug: Is MathJax 2.7.4 obsolete? It does not properly render equations anymore. HOT 5
- Site is down HOT 4
- 快速开始的链接挂了
- Feature request: mastodon support in social links
- Feature request: PWA支持?都9120年了,应该支持下PWA啊,然后最好还有个笔记功能
- Feature request: How config url and baseurl with github
- Bug: 安装错误 sass-embedded HOT 2
- Side-Menu Item Collapse
- Bug: [dev branch] A small typing error makes jekyll serve break down
- Feature request: Toggling between different skins
- Bug: ToC should be scrollable
- Feature request: sub-menus? HOT 1
- Feature request: Can jekyll encrypt articles like Hexo? Is it possible to add an article encryption function to the theme.
- Feature request:
- Feature request: Question: Text can support html in markdown ?
- Bug: Archive posts not showing up on mobile
- Feature request: callouts without border
- Bug: ffi gem not compatible anymore, icons not rendering HOT 1
- Bug: Mermaid labels were not displayed properly. HOT 2
- Nested list items not indented as is customary
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-text-theme.