Visitor counter

Hi Wim
I would like to use a visitor counter for my dashboard using a company called Statcounter.

The code I need to add to the site is as follows:-

<!-- Default Statcounter code for Derbyweather.co.uk PwsWD
http://www.derbyweather.co.uk/pwsWD -->
<script type="text/javascript">
var sc_project=12326202; 
var sc_invisible=0; 
var sc_security="411803ca"; 
var scJsHost = "https://";
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
</script>
<noscript><div class="statcounter"><a title="Web Analytics"
href="https://statcounter.com/" target="_blank"><img
class="statcounter"
src="https://c.statcounter.com/12326202/0/411803ca/0/"
alt="Web Analytics"
referrerPolicy="no-referrer-when-downgrade"></a></div></noscript>
<!-- End of Statcounter Code -->

Is it possible to put this into the software and if so could you please advise where.

Thank you again

Regards

Dave

./_my_settings/hooks.txt

<!--  $scrpt_vrsn_dt  = 'hooks.txt|01|2020-11-06';  # release 2012_lts 
#
put a link to what you want to include at the empty line below  
#                      -->
<p style=" margin: 0 auto;">
 
 </p>

Add the code in the empty line between <p style=" margin: 0 auto;"> and </p>
This will nicely align the counter in the center.
Sometimes a counter does not like it to be in a p-part, then just add it at the bottom.

Check the demo website: TEST TEST Home Weather Station (ecoLcl version)

Success,
Wim

P.S. @ ALL
Visit the list of updated scripts after October 31, 2023 regularly to see if there are updates you want or have to install.
There is also the donation button to make sure you will get more then “error removing support” from me.

1 Like

A post was split to a new topic: Missing graphs-data

Hi
I put mine in Hooks.txt and it works fine, can you make a file called bottom.txt and it will work?

2 Likes

Thanks for noticing this.
I modified my answer.

Wim

Thank you for your help