You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to provide custom footer HTML code to include Google Analytics, clustrmaps, and other info that we could be useful to track number of users for a given app. This information is useful when we need to justify to our finance team why we are spending $ on a shinyapps.io account (or maybe a Posit Connect license in the future).
Our marketing team is also interested in displaying a banner image at the bottom. Likely with a link back to a central page for our institute.
Describe alternatives you've considered
We could have a central page with links to all of our shiny apps and use link click tracking tools, but that won't work if users bookmark specific app URLs.
#681 seems a bit related, but that's custom HTML on the title.
Additional context
We currently have a little over 80 apps on libd.shinyapps.io. My guess is that about a fourth or a third of them are iSEE apps.
That would be added just below the uiOutput allPanels, but there might be some better ways also that could validate the entry. The footer = approach you were showing can be a bit fragmented by the way we create the UI elements, that's at least a guess from the top of my head, but I can dig in a bit more.
And yes, I would also love to document a bit more on the usage/impact :)
I was considering a couple of aspects and just a few logic & logical options.
In my first draft I came up with
If provided as HTML tags, "as one wishes", renders as is
If just a string, enforce it to make it look like a footer
If none of them, consider not valid and give no footer
Looks like...
iSEE(sce, appFooter = fluidRow(
shinydashboard::box(
width = 12L,
footer = p("This is an example footer for Leo, WITH THE PARAMETER. ",
"Possibly a good place to put meaningful trackers and links.",
style="text-align: center;")
)
))
iSEE(sce, appFooter = list()) # for example...
These would BTW work nicely also if iSEE is launched without any object to explore right away.
Purpose might be different but in the end the trick is the same, by allowing any (possibly well written) HTML content to be displayed.
The only thing I did on top is to simplify "footerify" any content provided as plain text.
Activity
federicomarini commentedon Jul 8, 2025
I am experimenting around a bit
That would be added just below the uiOutput
allPanels, but there might be some better ways also that could validate the entry. Thefooter =approach you were showing can be a bit fragmented by the way we create the UI elements, that's at least a guess from the top of my head, but I can dig in a bit more.And yes, I would also love to document a bit more on the usage/impact :)
federicomarini commentedon Jul 8, 2025
I was considering a couple of aspects and just a few logic & logical options.
In my first draft I came up with
Looks like...
These would BTW work nicely also if iSEE is launched without any object to explore right away.
Thoughts?
federicomarini commentedon Jul 9, 2025
If you want to give it a spin @lcolladotor you can find a working implementation in the branch https://github.com/iSEE/iSEE/tree/footer_adventures, happy to hear back if that would do it 😉
kevinrue commentedon Jul 9, 2025
Catching up. I think Fede is on it. I just wanted to mention that I've implemented custom headers and footers in iSEEindex
https://isee.github.io/iSEEindex/articles/header.html
Though admittedly it's for a different purpose!
federicomarini commentedon Jul 9, 2025
Purpose might be different but in the end the trick is the same, by allowing any (possibly well written) HTML content to be displayed.
The only thing I did on top is to simplify "footerify" any content provided as plain text.