Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

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

Open
Papageno2 opened this issue Jan 17, 2021 · 8 comments
Open

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

Papageno2 opened this issue Jan 17, 2021 · 8 comments

Comments

@Papageno2
Copy link

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
Copy link
Owner

Just remove google tracking ID from your config file.

@Papageno2
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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?

@ppoffice
Copy link
Owner

ppoffice commented Jan 18, 2021

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
Copy link
Author

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
Copy link
Owner

@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
Copy link
Author

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

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

No branches or pull requests

2 participants