ppoffice / hexo-theme-minos

A simple and retro styled Hexo theme, concentrated more on your ideas.
http://ppoffice.github.io/hexo-theme-minos
MIT License
767 stars 201 forks source link

show info. on every page with google-analytics data #117

Open Papageno2 opened 3 years ago

Papageno2 commented 3 years ago

thx for this nice theme. Actually I know almost nothing about HTML and .js.

the question is how to show the tag on every page with google analytics data, like the comment tag on pages.

I have enabled the plugins

plugins:
  mathjax: true
  katex: false
  gallery: true
  clipboard: true
  google-analytics: 
    tracking_id: G-G.......
ppoffice commented 3 years ago

Just remove google tracking ID from your config file.

Papageno2 commented 3 years ago

Just remove google tracking ID from your config file.

it seems unreasonable ? why removing tracking ID will add google-analytics data on my page footer ? like this?

plugins:
  mathjax: true
  katex: false
  gallery: true
  clipboard: true
  google-analytics: 
    tracking_id: 

actually it doesn't work.

ppoffice commented 3 years ago

Sorry I thought you meant to disable Google analytics. Did you enter the right tracking ID? Also, did you disable ad blockers in your browser?

Papageno2 commented 3 years ago

Sorry I thought you meant to disable Google analytics. Did you enter the right tracking ID? Also, did you disable ad blockers in your browser?

hah ~

ppoffice commented 3 years ago

thx for this nice theme. Actually I know almost nothing about HTML and .js.

the question is how to show the tag on every page with google analytics data, like the comment tag on pages.

I have enabled the plugins

plugins:
  mathjax: true
  katex: false
  gallery: true
  clipboard: true
  google-analytics: 
    tracking_id: G-G.......

What do you mean by "show the tag"? Can you provide an example?

Papageno2 commented 3 years ago

thx for this nice theme. Actually I know almost nothing about HTML and .js. the question is how to show the tag on every page with google analytics data, like the comment tag on pages. I have enabled the plugins

plugins:
  mathjax: true
  katex: false
  gallery: true
  clipboard: true
  google-analytics: 
    tracking_id: G-G.......

What do you mean by "show the tag"? Can you provide an example?

maybe I have misleading in words. What I mean is to show data at the footer, such as visitors or views for posts.

for example, in this blog for Next theme.

ppoffice commented 3 years ago

@Papageno2 I think page view and visitor counters are provided by Busuanzi (not Google), which is not supported by Minio right now. However, it's very simple to add it to your blog. Simply go to http://busuanzi.ibruce.info/ and copy that script to https://github.com/ppoffice/hexo-theme-minos/blob/2.4.0/layout/common/footer.ejs#L7 and that should be it.

Papageno2 commented 3 years ago

@Papageno2 I think page view and visitor counters are provided by Busuanzi (not Google), which is not supported by Minio right now. However, it's very simple to add it to your blog. Simply go to http://busuanzi.ibruce.info/ and copy that script to https://github.com/ppoffice/hexo-theme-minos/blob/2.4.0/layout/common/footer.ejs#L7 and that should be it.

well, thanks for your reply. but I donot want to use Busuanzi 😆