SirRawrsalot
July 13th, 2008, 11:21 PM
alright:
No questions about my idea, i dont want anyone to STEAL IT! lol j/k
this is how i plan to organize some search result for a company that's paying me ...money! lol
I have two tables: searches and outbound. An entry is made into "searches" whenever somebody does a search. It stores the keyword, whether the search was via user-input or via clicking a text-link (bKeyed) and has a timestamp (datetime). Each search also has an ID (nSearchID).
An entry to outbound is created when a user clicks a link away from the site. We use the last nSearchID that this user generated, a SID (varchar 50) and a datetime.
I need a tool that allows the admin to enter a start & end date / time (year, month, day hour, minute) which then shows # of keyword searches total; then broken down into # that were manually inputted (bKeyed=1) and # that were text link clicked (bKeyed=0). Then we want to see how many clicks of the text ads occurred for each of these types [aka CTR]. Show the top 20 keywords manually inputted vs the top 20 keywords not manually inputted [along with # of searches for each]. For each keyword, we want to know the conversions/CTR based on whether it was manually inputted vs not manually inputted. [This might look like:
7/7/08 - 7/7/08 total searches: 13,000
top 20 manually inputted: searches clicks CTR
britney spears 100 20 20%
.....
Remember a search can have 0 to many clicks (outbound).
Table structure is:
CREATE TABLE IF NOT EXISTS `outbound` (
`nID` int(10) unsigned NOT NULL auto_increment,
`nSearchID` int(10) unsigned NOT NULL,
`cSID` varchar(50) NOT NULL,
`tsDatetime` datetime NOT NULL,
PRIMARY KEY (`nID`),
KEY `nSearchID` (`nSearchID`),
KEY `cSID` (`cSID`),
KEY `tsDatetime` (`tsDatetime`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=312 ;
-- ------------------------------
--------------------------
--
-- Table structure for table `searches`
--
CREATE TABLE IF NOT EXISTS `searches` (
`nSearchID` int(10) unsigned NOT NULL auto_increment,
`cKeyword` varchar(255) NOT NULL,
`bKeyed` tinyint(1) unsigned NOT NULL,
`tsDatetime` datetime NOT NULL,
PRIMARY KEY (`nSearchID`),
KEY `cKeyword` (`cKeyword`),
KEY `bKeyed` (`bKeyed`),
KEY `tsDatetime` (`tsDatetime`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4219 ;
No questions about my idea, i dont want anyone to STEAL IT! lol j/k
this is how i plan to organize some search result for a company that's paying me ...money! lol
I have two tables: searches and outbound. An entry is made into "searches" whenever somebody does a search. It stores the keyword, whether the search was via user-input or via clicking a text-link (bKeyed) and has a timestamp (datetime). Each search also has an ID (nSearchID).
An entry to outbound is created when a user clicks a link away from the site. We use the last nSearchID that this user generated, a SID (varchar 50) and a datetime.
I need a tool that allows the admin to enter a start & end date / time (year, month, day hour, minute) which then shows # of keyword searches total; then broken down into # that were manually inputted (bKeyed=1) and # that were text link clicked (bKeyed=0). Then we want to see how many clicks of the text ads occurred for each of these types [aka CTR]. Show the top 20 keywords manually inputted vs the top 20 keywords not manually inputted [along with # of searches for each]. For each keyword, we want to know the conversions/CTR based on whether it was manually inputted vs not manually inputted. [This might look like:
7/7/08 - 7/7/08 total searches: 13,000
top 20 manually inputted: searches clicks CTR
britney spears 100 20 20%
.....
Remember a search can have 0 to many clicks (outbound).
Table structure is:
CREATE TABLE IF NOT EXISTS `outbound` (
`nID` int(10) unsigned NOT NULL auto_increment,
`nSearchID` int(10) unsigned NOT NULL,
`cSID` varchar(50) NOT NULL,
`tsDatetime` datetime NOT NULL,
PRIMARY KEY (`nID`),
KEY `nSearchID` (`nSearchID`),
KEY `cSID` (`cSID`),
KEY `tsDatetime` (`tsDatetime`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=312 ;
-- ------------------------------
--------------------------
--
-- Table structure for table `searches`
--
CREATE TABLE IF NOT EXISTS `searches` (
`nSearchID` int(10) unsigned NOT NULL auto_increment,
`cKeyword` varchar(255) NOT NULL,
`bKeyed` tinyint(1) unsigned NOT NULL,
`tsDatetime` datetime NOT NULL,
PRIMARY KEY (`nSearchID`),
KEY `cKeyword` (`cKeyword`),
KEY `bKeyed` (`bKeyed`),
KEY `tsDatetime` (`tsDatetime`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4219 ;