Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Setting COLLECT_API_ENDPOINT in Umami

    Umami
    2
    4
    44
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d19dotca
      d19dotca last edited by

      I noticed that the COLLECT_API_ENDPOINT endpoint supposedly needs to be set at build time... how does one go about doing this though when hosting in Cloudron? I've tried setting it and am not having any success. I've tried adding export before it too and restarting after saving the changes, no differences in behaviour though.

      I'm thinking this isn't working. Is there a different way this needs to be set? Has anyone configured this property yet by any chance?

      --
      Dustin Dauncey
      www.d19.ca

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        https://github.com/umami-software/umami/issues/1318 confirms that this is a build time variable. In the package, we source user environment variables after the build. I am trying to see if it changes anything if we source it before the build.

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff @d19dotca last edited by

          @d19dotca Try the latest package, I was able to set to TRACKER_SCRIPT_NAME and COLLECT_API_ENDPOINT to get analytics past ublock origin. Something like:

          export TRACKER_SCRIPT_NAME=tellme
          export COLLECT_API_ENDPOINT=/api/teller
          
          d19dotca 1 Reply Last reply Reply Quote 1
          • d19dotca
            d19dotca @girish last edited by

            @girish that’s perfect, thanks so much! I’ll try this out tonight.

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply Reply Quote 1
            • Topic has been marked as a question  nebulon nebulon 
            • Topic has been marked as solved  girish girish 
            • Referenced by  girish girish 
            • First post
              Last post
            Powered by NodeBB