Customizing the freemarker theme templates
-
Are there any recommendations regarding how much customization is prudent in the Freemarker based templates? We're worried about large javascript libraries being integrated into them to do things like marketing analytics.
If you have any recommendations/limitations on that portion of the system, that can help us communicate a better path for such features outside of the themed pages.
-
You can put whatever you want in the theme pages, but it's a good idea to keep them lean so the user has a quick login experience. After all, most folks don't care about auth except when it doesn't work!
You can optionally pass info in the
state
parameter, that will come back to the caller. This can be encoded JSON, as long as it is url safe. You will want to make sure that you don't put too much stuff in there, as there are URL length limits for browsers (though I learned that chrome has a URL size limit of 2MB!). Here's an example of using thestate
parameter for application state.Or if you have different applications and redirect URLs, then just gathering metrics on the URLs may give you insight into who is using login, and from where.
Sort of depends upon what type of analytics you need.