lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
650 stars 356 forks source link

feat: add support to provide custom tracker script name for Umami Analytics #418

Closed guidemetothemoon closed 1 year ago

guidemetothemoon commented 1 year ago

Description

Umami provides support to assign a custom name to the tracker script different from the default umami.js (TRACKER_SCRIPT_NAME environment variable) to help you avoid some ad-blockers: https://umami.is/docs/environment-variables I have added support in Anatole to check if trackerScriptName is provided then use it, if not then keep using default umami.js as before.

Wiki documentation must be updated for the same.

Issue Number:

No issue created.


Additional Information (Optional)


Checklist

Yes, I included all necessary artefacts, including:


Testing Checklist

Yes, I ensured that all of the following scenarios were tested:


Notify the following users

@lxndrblz

netlify[bot] commented 1 year ago

Deploy Preview for anatole-demo ready!

Name Link
Latest commit 965168de562017fa5bcde6a260e06fe48f9a2b32
Latest deploy log https://app.netlify.com/sites/anatole-demo/deploys/63d039a7ace5690008088fc7
Deploy Preview https://deploy-preview-418--anatole-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information