Skip to content

having some issues with post pageviews(goatcounter) #2412

Answered by kungfux
SoumyaK4 asked this question in Q&A
Discussion options

You must be logged in to vote

@SoumyaK4 Regarding the Issue 1, I suspect this happens because GoatCounter's JSON response returns formatted value string:

containing the total number of visitors as a formatted string with thousands separators
https://www.goatcounter.com/help/visitor-counter#json-160

Please try to override the _includes/pageviews/goatcounter.html with modified script to see if it works as expected. Then, we will submit a bugfix.

Thanks.

Details

<!-- Display GoatCounter pageviews -->
<script>
  document.addEventListener('DOMContentLoaded', () => {
    const pv = document.getElementById('pageviews');

    if (pv !== null) {
      const uri = location.pathname.replace(/\/$/, '');
      const url = `http…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@kungfux
Comment options

kungfux May 26, 2025
Collaborator

Answer selected by SoumyaK4
@kungfux
Comment options

kungfux May 26, 2025
Collaborator

@SoumyaK4
Comment options

@SoumyaK4
Comment options

@VisionTQ
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants