link to referrer site

This commit is contained in:
Danny van Kooten 2016-12-10 16:07:03 +01:00
parent 9755b72ebf
commit c79e8407a0
4 changed files with 5 additions and 3 deletions

View File

@ -5,8 +5,8 @@ This is a general draft document for thoughts and todo's, without any structure
### What's cooking?
- Fix seeding
- Update page title when it changes.
- Custom date range picker
- Bulk process tracking requests (Redis or in-memory?)
- Allow sorting in table overviews.
- Choose a OS license & settle on name.

View File

@ -30,7 +30,7 @@ class Table extends Component {
}
return (
<td>{p.Label}</td>
<td>{p.Label.substring(0, 15)}</td>
)
}

View File

@ -64,7 +64,7 @@ class Dashboard extends Component {
<Table period={this.state.period} endpoint="screen-resolutions" title="Screen Resolutions" headers={["#", "Resolution", "Count", "%"]} />
</div>
<div class="col-2">
<Table period={this.state.period} endpoint="referrers" title="Referrers" headers={["#", "URL", "Count", "%"]} />
<Table period={this.state.period} endpoint="referrers" title="Referrers" headers={["#", "URL", "Count", "%"]} labelCell={(p) => ( <td><a href={"//" + p.Label}>{p.Label.substring(0, 15)}</a></td>)} />
</div>
<div class="col-2">
<Table period={this.state.period} endpoint="browsers" title="Browsers" headers={["#", "Browser", "Count", "%"]} onAuthError={this.props.onLogout} />

View File

@ -19,6 +19,8 @@ CREATE TABLE visitors(
`country` CHAR(3) NULL
);
ALTER TABLE visitors ADD UNIQUE(`visitor_key`);
CREATE TABLE pages(
`id` INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
`hostname` VARCHAR(63) NOT NULL,