Rework Umami Integration #12

Closed
opened 2025-01-29 00:17:12 +01:00 by stephan.hadan · 6 comments

Rework the dirty hack, make integration parametrized.

Rework the dirty hack, make integration parametrized.
stephan.hadan added this to the v1.1 milestone 2025-01-29 00:17:12 +01:00
stephan.hadan added the
enhancement
label 2025-01-29 00:17:12 +01:00
stephan.hadan self-assigned this 2025-01-29 00:17:12 +01:00
stephan.hadan added this to the Development of new features project 2025-01-29 00:17:13 +01:00
stephan.hadan added the due date 2025-01-29 2025-01-29 00:17:26 +01:00
Author
Owner

Also add documentation

Also add documentation
stephan.hadan added reference feat/rework-umami-integration 2025-01-29 08:19:02 +01:00
stephan.hadan started working 2025-01-29 08:19:07 +01:00
Author
Owner

This value has to be parametrized in the site_header.html:

<script defer src="https://analytics.hadan-it.com/script.js" integrity="sha384-/WQteTtaLX4nU22mvCeTi4Yz3iK/J3yZ2rKq5jDxPMlizEQGzgJOlSofJxh+bx4B" crossorigin="anonymous" data-website-id="3b3d9b22-25d3-476e-b21a-81b3a1f1835f"></script>

This value has to be parametrized in the site_header.html: `<script defer src="https://analytics.hadan-it.com/script.js" integrity="sha384-/WQteTtaLX4nU22mvCeTi4Yz3iK/J3yZ2rKq5jDxPMlizEQGzgJOlSofJxh+bx4B" crossorigin="anonymous" data-website-id="3b3d9b22-25d3-476e-b21a-81b3a1f1835f"></script>`
Author
Owner

Eliminate google-analytics-integration in site_footer.html:

{{ template "_internal/google_analytics.html" . }}

Eliminate google-analytics-integration in site_footer.html: `{{ template "_internal/google_analytics.html" . }}`
Author
Owner

Implemented umami-Integration like this in site_header.html

    {{ if .Site.Params.umamienabled }}
    <script defer src="{{ .Site.Params.umamiurl }}script.js" integrity="{{ .Site.Params.umamisrihash }}" crossorigin="anonymous" data-website-id="{{ .Site.Params.umamiid }}"></script>
    {{ end }}
Implemented umami-Integration like this in site_header.html ``` {{ if .Site.Params.umamienabled }} <script defer src="{{ .Site.Params.umamiurl }}script.js" integrity="{{ .Site.Params.umamisrihash }}" crossorigin="anonymous" data-website-id="{{ .Site.Params.umamiid }}"></script> {{ end }} ```
stephan.hadan added a new dependency 2025-01-29 08:46:29 +01:00
Author
Owner

Eliminated Google-Analytics and added documentation. Pull Request to main branch for testing purposes.

Eliminated Google-Analytics and added documentation. Pull Request to main branch for testing purposes.
Author
Owner

Done. Tested, works.

Done. Tested, works.
stephan.hadan stopped working 2025-01-29 08:54:56 +01:00
35 minutes 49 seconds
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Total time spent: 35 minutes 49 seconds
stephan.hadan
35 minutes 49 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2025-01-29

Depends on
Reference: public/hugo-internet-weblog#12
No description provided.