Re: Web analytics

2022-09-07 Thread Michael Jumper
On Wed, Sep 7, 2022 at 5:50 AM Antoine Besnier
 wrote:
>
> 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.
>

Please do not do this - that file has a very specific purpose and
needs to be what the name suggests: blank. It is also not advisable to
make changes to the web application directly, especially through
attempting to modify the .war file itself. Instead, the extension
system should be used (as you are already attempting to do).

Does this Umami tool require that things be added with a "script" tag?
If not, Guacamole's extension system provides its own method for
adding arbitrary JavaScript, and that would be much easier than
tracking down the best place for tag insertion. See the "js" entry for
guac-manifest.json:

https://guacamole.apache.org/doc/gug/guacamole-ext.html#extension-manifest

- Mike

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: Web analytics

2022-09-07 Thread Antoine Besnier
 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 
 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  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  section (https://umami.is/docs/collect-data). I created an 
extension with the following html file, and was hoping it would work:



https://analytics.example.com/umami.js"</a>;>

 

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

  

Re: Web analytics

2022-09-07 Thread Lee Doughty
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 
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  section (https://umami.is/docs/collect-data). I
> created an extension with the following html file, and was hoping it would
> work:
>
> 
>
> https://analytics.example.com/umami.js"</a>;>
>
>
>
> 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
>


Web analytics

2022-09-06 Thread Kiel Hurley
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  section (https://umami.is/docs/collect-data). I created an 
extension with the following html file, and was hoping it would work:

https://analytics.example.com/umami.js"</a>;>

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