|
|
|
|
@ -16,7 +16,7 @@ class Realtime extends React.Component {
|
|
|
|
|
renderConversions() {
|
|
|
|
|
if (this.props.site.hasGoals) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="w-full block md:flex items-start justify-between mt-6">
|
|
|
|
|
<div className="items-start justify-between block w-full mt-6 md:flex">
|
|
|
|
|
<Conversions site={this.props.site} query={this.props.query} title="Goal Conversions (last 30 min)" />
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
@ -24,12 +24,14 @@ class Realtime extends React.Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const navClass = this.props.site.embedded ? 'relative' : 'sticky'
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="mb-12">
|
|
|
|
|
<div id="stats-container-top"></div>
|
|
|
|
|
<div className={`sticky top-0 bg-gray-50 dark:bg-gray-850 sm:py-3 py-1 z-9 ${this.props.stuck ? 'z-10 fullwidth-shadow' : ''}`}>
|
|
|
|
|
<div className="w-full sm:flex justify-between items-center">
|
|
|
|
|
<div className="w-full flex items-center mb-2 sm:mb-0">
|
|
|
|
|
<div className={`${navClass} top-0 sm:py-3 py-1 z-9 ${this.props.stuck && !this.props.site.embedded ? 'z-10 fullwidth-shadow bg-gray-50 dark:bg-gray-850' : ''}`}>
|
|
|
|
|
<div className="items-center justify-between w-full sm:flex">
|
|
|
|
|
<div className="flex items-center w-full mb-2 sm:mb-0">
|
|
|
|
|
<SiteSwitcher site={this.props.site} loggedIn={this.props.loggedIn} />
|
|
|
|
|
<Filters query={this.props.query} history={this.props.history} />
|
|
|
|
|
</div>
|
|
|
|
|
@ -37,11 +39,11 @@ class Realtime extends React.Component {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<VisitorGraph site={this.props.site} query={this.props.query} timer={this.props.timer} />
|
|
|
|
|
<div className="w-full block md:flex items-start justify-between">
|
|
|
|
|
<div className="items-start justify-between block w-full md:flex">
|
|
|
|
|
<Sources site={this.props.site} query={this.props.query} timer={this.props.timer} />
|
|
|
|
|
<Pages site={this.props.site} query={this.props.query} timer={this.props.timer} />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-full block md:flex items-start justify-between">
|
|
|
|
|
<div className="items-start justify-between block w-full md:flex">
|
|
|
|
|
<Countries site={this.props.site} query={this.props.query} timer={this.props.timer} />
|
|
|
|
|
<Devices site={this.props.site} query={this.props.query} timer={this.props.timer} />
|
|
|
|
|
</div>
|
|
|
|
|
|