Settings
To use django-umami efficiently, it's best to configure it exactly to your needs, right! To do this you can use either use environment variables or manually call the methods.
Using environment variables
Using umami object
Tip
Make sure to import any files needed first!
Method - Set Host URL
Set Host URL
This allows you to set the main host URL of umami. This is only required if you have not set it via the UMAMI_PAGE_URL
environment variable.
PARAMETER | DESCRIPTION | REQUIRED |
---|---|---|
host_url (string) | Your analytics site url E.g. https://mysite.com |
Method - Set Website ID
Set Website ID
This allows you to set the main host URL of umami. This is only required if you have not set it via the UMAMI_WEBSITE_ID
environment variable.
PARAMETER | DESCRIPTION | REQUIRED |
---|---|---|
website_id (string - uuid) | Your website id E.g. 12345678-12345.... |