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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Surfer
  3. Add tracking code to Surfer?

Add tracking code to Surfer?

Scheduled Pinned Locked Moved Surfer
9 Posts 5 Posters 1.2k Views 5 Watching
  • 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.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #1

      I'd really like to be able to track the downloads of my PDF library which I've got in a Surfer app here https://library.uniteddiversity.coop

      I'm running Umami on my Cloudron and would like to be able to drop the tracking code in somewhere.

      What's the best/ easiest way to do this? Be nice if there was just a field in settings we could paste into 🙂

      Thanks!

      Josef.

      I use Cloudron with Gandi & Hetzner

      timconsidineT 2 Replies Last reply
      1
      • jdaviescoatesJ jdaviescoates

        I'd really like to be able to track the downloads of my PDF library which I've got in a Surfer app here https://library.uniteddiversity.coop

        I'm running Umami on my Cloudron and would like to be able to drop the tracking code in somewhere.

        What's the best/ easiest way to do this? Be nice if there was just a field in settings we could paste into 🙂

        Thanks!

        Josef.

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #2

        @jdaviescoates I manually add the umami script statement (copied from umami website settings) into the html page.
        Works fine for small sites with limited number of pages.
        I doubt that qualifies as "best" way but maybe could be "easiest" for targeting certain pages.

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          Yes adding the tracking code is preferred. I am trying to keep surfer as simple as possible, but I guess tracking PDF downloads will not work, since you can't inject script code into pdfs as such.

          I guess this will only work, if surfer itself provides some GET stats of sorts. What could be the easiest way to deal with this though? Like maybe letting surfer just GET/POST some other url, which goes to some analytics endpoint?

          robiR 1 Reply Last reply
          1
          • nebulonN nebulon

            Yes adding the tracking code is preferred. I am trying to keep surfer as simple as possible, but I guess tracking PDF downloads will not work, since you can't inject script code into pdfs as such.

            I guess this will only work, if surfer itself provides some GET stats of sorts. What could be the easiest way to deal with this though? Like maybe letting surfer just GET/POST some other url, which goes to some analytics endpoint?

            robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #4

            @nebulon

            @jdaviescoates uses the directory listing part of Surfer IIRC, hence Surfer generates the HTML to present the directory list, which would need a way to have a html/js script inserted to track events.

            Conscious tech

            1 Reply Last reply
            0
            • robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #5

              While you could ask for webserver access logs and analyze those, you may be better served by using a Calibre like front end that can present more metadata for the PDFs as well as previews, etc. Think ebook site like zLibrary.

              Conscious tech

              jdaviescoatesJ 1 Reply Last reply
              1
              • robiR robi

                While you could ask for webserver access logs and analyze those, you may be better served by using a Calibre like front end that can present more metadata for the PDFs as well as previews, etc. Think ebook site like zLibrary.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #6

                @robi yeah, I've already got an ebook library going with Calibre too, but I like the simplicity of surfer/ basic directory listings.

                https://i-librarian.net/ looks like a potentially good option though, and @ultraviolet has previously packaged it too, see:

                https://forum.cloudron.io/post/39264

                I use Cloudron with Gandi & Hetzner

                robiR 1 Reply Last reply
                1
                • jdaviescoatesJ jdaviescoates

                  @robi yeah, I've already got an ebook library going with Calibre too, but I like the simplicity of surfer/ basic directory listings.

                  https://i-librarian.net/ looks like a potentially good option though, and @ultraviolet has previously packaged it too, see:

                  https://forum.cloudron.io/post/39264

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #7

                  @jdaviescoates I hear you, we have such a site too with GBs of content in browsable directories for members so it would be a welcome addition if we could add some tracking to it.. just need a custom script option.

                  Conscious tech

                  1 Reply Last reply
                  1
                  • humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by
                    #8

                    Yourls lets you track link clicks so that might work for this use case. It's in the CR app store if you haven't come across it yet.

                    1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      I'd really like to be able to track the downloads of my PDF library which I've got in a Surfer app here https://library.uniteddiversity.coop

                      I'm running Umami on my Cloudron and would like to be able to drop the tracking code in somewhere.

                      What's the best/ easiest way to do this? Be nice if there was just a field in settings we could paste into 🙂

                      Thanks!

                      Josef.

                      timconsidineT Offline
                      timconsidineT Offline
                      timconsidine
                      App Dev
                      wrote on last edited by
                      #9

                      @jdaviescoates are you wanting to track individual files in a directory ? or when someone accesses the directory (listing) ?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search