Skip to content

Commit 9d72b4d

Browse files
authored
Merge pull request #36 from PromInc/Page-Level-Reporting
Page level reporting
2 parents 5018f5d + 08b6ec2 commit 9d72b4d

29 files changed

Lines changed: 3637 additions & 847 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
organic-search-analytics/config/
2-
*.p12
1+
*.p12
2+
.DS_STORE

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
## 2.5.0 - 2017-04-06
2+
### Reports
3+
- Add page data to the report
4+
- Convert query into a link to Google
5+
- Chart bug fixes
6+
- Stylized display of applied report parameters
7+
- Linked relevant applied report parameters
8+
- Link between relevant reports in the report table
9+
- Added tooltips to column headings
10+
- Correct inaccuracy in average_position calculation
11+
- Fix Date reports with granularity of Week, Month, and Year set
12+
13+
### Database updates
14+
- Alter search_analytics table for improved data storage and analysis
15+
- avg_position from int(11) to float, default NULL
16+
- avg_position_click from int(11) to float
17+
- default of null for device_type, country, and query columns
18+
- add page column
19+
- change database charset for wider language compatibility
20+
- add settings table
21+
22+
### Added
23+
- Added page level data in capture from Google and reporting
24+
- Added debug logger
25+
- Added the config and log directories to the repository so it isn’t necessary to add it on setup
26+
27+
### Changed
28+
- Update Font Awesome to 4.7.0
29+
- Minor style updates throughout the site
30+
- Installation sql script to reflect new database structure
31+
- Upgrade script to reflect these database and file system changes
32+
33+
### Fixes/Closes Github Issues
34+
- #13
35+
- #16
36+
- #28
37+
- #31
38+
- #32
39+
- #35
40+
141
## 2.4.3 - 2016-07-01
242
### Bug Fix
343
- Data Capture would not import any records for new installs (non-upgraded) of this tool. A MySQL error was thrown in the background due to a field not being available in the database.

README.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
# Organic Search Analytics Importer
2-
## Version 2.3.7 Now Available!!! (January 12th, 2016)
3-
**Official Release Version**
4-
> This is a highly recommended update for all users. This update fixes a bug where queries from Google that contain special characters are not being saved to the database. It is suggested that you update to this version immediately.
2+
## Version 2.5.0 Now Available!!! (April 6th, 2017)
3+
### New Features
4+
- Choose which dimensions to capture in the settings
5+
- Capture Page from Google Search Analytics
6+
- Reporting Bug Fixes and Enhancements
57

6-
> Once updated, there is a **Delete Data** option found on the home page. This page can be used to delete data that was affected by this bug. Once deleted, you can re-capture data for that date. This process ensures your data is as accurate as possible.
7-
8-
## Version 2.4.0
9-
**Current Master Branch**
10-
At this time, the current master branch has been updated to 2.4.0 and not commited as an official release.
11-
12-
This update adds the country field, as requested in Issue #11.
13-
14-
> **Notice** You will need to run an update script from the home page for this version to run smoothly as it needs to update the database. Go to the homepage of your installation, choose **Upgrade Scripts** and then choose **Run Update for Version 2.x.x to 2.4.0**. Failure to run this script will result in undesired results across the utility.
15-
16-
> The update script performs a database update to add the *country* column.
8+
> **Notice** You will need to run an update script from the home page for this version to run smoothly as it needs to update the database. Go to the homepage of your installation, choose **Upgrade Scripts** and then choose **Run Update for Version 2.x.x to 2.5.0**. Failure to run this script will result in undesired results across the utility.
179
1810

1911
## Features
20-
Import organic search analytics from Google Search Console (Google Webmaster Tools) and Bing Search Keywords (Bing Webmaster Tools) into a local database to keep a historical, local, and combined record of your (past the 30 days that Google offers).
12+
Import organic search analytics from Google Search Console (Google Webmaster Tools) and Bing Search Keywords (Bing Webmaster Tools) into a local database to keep a historical, local, and combined record of your (past the 90 days that Google offers).
2113

2214
This archive of organic search analytics will allow you to study long term SEO trends and shifts and can help to monitor and gauge performance of a websites over time.
2315

organic-search-analytics.sql

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS `report_saved` (
3333
`category` int(11) NOT NULL,
3434
`paramaters` varchar(1000) NOT NULL,
3535
PRIMARY KEY (`id`)
36-
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
36+
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
3737

3838
-- --------------------------------------------------------
3939

@@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `report_saved_categories` (
4646
`name` varchar(256) NOT NULL,
4747
`description` varchar(1000) NOT NULL,
4848
PRIMARY KEY (`id`)
49-
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
49+
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
5050

5151
-- --------------------------------------------------------
5252

@@ -60,16 +60,17 @@ CREATE TABLE IF NOT EXISTS `search_analytics` (
6060
`date` date NOT NULL,
6161
`search_engine` varchar(50) NOT NULL,
6262
`search_type` varchar(24) NOT NULL,
63-
`device_type` varchar(24) NOT NULL,
64-
`country` varchar(10) NULL,
65-
`query` varchar(500) NOT NULL,
63+
`device_type` varchar(24) NULL DEFAULT NULL,
64+
`country` varchar(10) NULL DEFAULT NULL,
65+
`query` varchar(500) NULL DEFAULT NULL,
66+
`page` VARCHAR(500) NULL DEFAULT NULL,
6667
`impressions` int(11) NOT NULL,
6768
`clicks` int(11) NOT NULL,
6869
`ctr` float NOT NULL,
69-
`avg_position` int(11) NOT NULL,
70-
`avg_position_click` int(11) NULL,
70+
`avg_position` float NOT NULL,
71+
`avg_position_click` float NULL,
7172
PRIMARY KEY (`id`)
72-
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
73+
) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
7374

7475
-- --------------------------------------------------------
7576

@@ -83,7 +84,15 @@ CREATE TABLE IF NOT EXISTS `settings` (
8384
`value` varchar(256) NOT NULL,
8485
`data` varchar(500) NOT NULL,
8586
PRIMARY KEY (`id`)
86-
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
87+
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0 ;
88+
89+
INSERT INTO `settings`
90+
(type, value, data)
91+
VALUES
92+
('settings', 'google_search_console_dimensions_query', 'On'),
93+
('settings', 'google_search_console_dimensions_page', 'Off'),
94+
('settings', 'google_search_console_dimensions_device', 'On'),
95+
('settings', 'google_search_console_dimensions_country', 'On') ;
8796

8897
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
8998
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
*/
3+
!.gitignore

organic-search-analytics/css/lib/font-awesome/font-awesome.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)