Looks like the answer was to create 'header.inc' and put the code there. 
Oddly, page-header.inc is another option but doesn't seem to work. 

Thanks for pointing me to header.html.tmpl, it had 

#if os.path.exists("header.inc")
        #include "header.inc"
        #end if

Which pointed me to creating header.inc with the desired tracking code. 
On Saturday, September 10, 2022 at 12:02:35 PM UTC-5 vince wrote:

> Quick look at the header's tmpl file seems to indicate you can add 
> something there similar to the Google Analytics code that is there...
>
> On Friday, September 9, 2022 at 9:32:17 PM UTC-7 Seth Ratner wrote:
>
>> Hey everyone,
>>
>> Has anyone come up with the best way to add a tracking script such that 
>> all pages will have it?
>>
>> I've tried using the .inc files Belchertown supports, but that only 
>> tracks the homepage. The header or footer seems like the most obvious 
>> solution, but I'm not sure how to make it work.
>>
>> Thanks,
>> Seth
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0d5b12d3-668e-465f-9477-ac41a37b1174n%40googlegroups.com.

Reply via email to