Analytics, Storage as promises, External tpl directives