hexo-theme-minos icon indicating copy to clipboard operation
hexo-theme-minos copied to clipboard

show info. on every page with google-analytics data

Open Papageno2 opened this issue 4 years ago • 8 comments

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.......

Papageno2 avatar Jan 17 '21 14:01 Papageno2

Just remove google tracking ID from your config file.

ppoffice avatar Jan 17 '21 15:01 ppoffice

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.

Papageno2 avatar Jan 18 '21 01:01 Papageno2

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?

ppoffice avatar Jan 18 '21 03:01 ppoffice

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 ~

  • the tracking ID is right because I can see the analytics in my google-analytics account.
  • iI think no ad blockers enabled, if yes, any hints in chrome browser for ad blocking?

Papageno2 avatar Jan 18 '21 05:01 Papageno2

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?

ppoffice avatar Jan 18 '21 12:01 ppoffice

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.

Papageno2 avatar Jan 19 '21 04:01 Papageno2

@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.

ppoffice avatar Jan 19 '21 15:01 ppoffice

@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 😆

Papageno2 avatar Jan 20 '21 02:01 Papageno2