-
Notifications
You must be signed in to change notification settings - Fork 19
/
organic-search-analytics.sql
executable file
·99 lines (81 loc) · 2.98 KB
/
organic-search-analytics.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-- phpMyAdmin SQL Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 29, 2015 at 11:43 PM
-- Server version: 5.5.34
-- PHP Version: 5.4.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `organic-search-analytics`
--
-- --------------------------------------------------------
--
-- Table structure for table `report_saved`
--
CREATE TABLE IF NOT EXISTS `report_saved` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(256) NOT NULL,
`name` varchar(256) NOT NULL,
`category` int(11) NOT NULL,
`paramaters` varchar(1000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
-- --------------------------------------------------------
--
-- Table structure for table `report_saved_categories`
--
CREATE TABLE IF NOT EXISTS `report_saved_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) NOT NULL,
`description` varchar(1000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
-- --------------------------------------------------------
--
-- Table structure for table `search_analytics`
--
CREATE TABLE IF NOT EXISTS `search_analytics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(256) NOT NULL,
`date` date NOT NULL,
`search_engine` varchar(50) NOT NULL,
`search_type` varchar(24) NULL DEFAULT NULL,
`device_type` varchar(24) NULL DEFAULT NULL,
`country` varchar(10) NULL DEFAULT NULL,
`query` varchar(500) NULL DEFAULT NULL,
`page` VARCHAR(500) NULL DEFAULT NULL,
`impressions` int(11) NOT NULL,
`clicks` int(11) NOT NULL,
`ctr` float NOT NULL,
`avg_position` float NOT NULL,
`avg_position_click` float NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE IF NOT EXISTS `settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(256) NOT NULL,
`value` varchar(256) NOT NULL,
`data` varchar(500) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
INSERT INTO `settings`
(type, value, data)
VALUES
('settings', 'google_search_console_dimensions_query', 'On'),
('settings', 'google_search_console_dimensions_page', 'Off'),
('settings', 'google_search_console_dimensions_device', 'On'),
('settings', 'google_search_console_dimensions_country', 'On') ;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;