How to display Number of Hits of the SP Page in the website - Forum | JoomShaper
Solved SP Page Builder

How to display Number of Hits of the SP Page in the website

Asked by webmaster.unioeste 4 years ago Last activity 4 years ago

In the administrator, on SP Page Builder Pro - Pages, there is a list of existing pages with the information "Hits" in the right of each page. Is it possible to display this number of hits of the page in the frontend of the website?

Accepted answer

Marked as the solution
Rashida Rahman Staff

If I may...

Here is the file path:
\components\com_sppagebuilder\views\page\tmpl\default.php

You may edit this file and add the following line of code to show hits wherever you want:
echo $page->hits;

Here is a sample screenshot for your ease:
hits.png

This is all what I can do for you about it. Hope ths helps!

Best Regards

4 more replies

Paul Frankowski Senior Staff

Hi,

Unfortunately, this is not possible without code customization. Besides number of hits were popular 10-15 years ago now not really, now all webmasters know that only tracking stats have real value.

webmaster.unioeste Asked this

Hello,

Thanks for the fast answer,

Is it a code customization that I can do myself? Can you direct which way to go?

I know it doesn't have a real value, but it is a legal demand :/

webmaster.unioeste Asked this

Thank you!

I'll try this solution.

Best Regards

Rashida Rahman Staff

You are always welcome:)

Log in to reply.