Indeed, the branding extension need a CSS selector, so it will not work for
the head section.Maybe you can unzip guacamole-1.4.0.war, modifiy the file
app/element/templates/blank.html, and repackage and re-deploy the war file.
Antoine
Le mercredi 7 septembre 2022, 12:36:33 UTC+2, Lee Doughty
<[email protected]> a écrit :
I don't think the head section is modifiable in that way.. you could probably
use "body" selector and get it to load early in the page.
On Wed, Sep 7, 2022, 2:16 AM Kiel Hurley <[email protected]> wrote:
We have multiple Guacamole servers and I’d like to do web analytics to see how
much they’re being used, and when.
umami (and it would be similar for Google Analytics) requires adding a script
into the <head> section (https://umami.is/docs/collect-data). I created an
extension with the following html file, and was hoping it would work:
<meta name="before-children" content="head">
<script async defer data-website-id="GUID"
src="https://analytics.example.com/umami.js"></script>
The Tomcat log says the extension loaded but it didn’t appear to work, as meta
is trying to insert the line before the children of a CSS tag called “head”
(https://guacamole.apache.org/doc/gug/guacamole-ext.html#updating-existing-html),
which doesn’t exist.
I considered using the js extension resource instead of html, to copy the
JavaScript file, but I need to include the GUID for the website so I’m not sure
this would work.
Is there a way to insert the script line into the head using an extension? Or
could there another way to achieve something similar?
Thanks