As the social media, social networking, advertising, Internet marketing continue to evolve with new technologies and many companies create their own social groups, it all gets more complex and confusing. Many a times a picture or an image will explain more elegantly than 1000 words are more and in some cases image is the most suited tool to explain. Here is one image created by Brian Solis & Jesse Thomas that I like in this conversation!
Showing posts with label SEO. Show all posts
Showing posts with label SEO. Show all posts
Mapping URL to top level domain
When parsing web logs as part of web analytics, one might be interested in the top level domain analysis before drilling down further. Following query maps an url (referer) to top level domain. Top level domain include not only generic ones like '.com', '.edu', '.org', etc but also country level top levels like '.uk', '.de', etc. You can download the list from IANA (Internet Assigned Numbers Authority) .
After downloading it import into a table dim_int_mktg_tld which you can join with the staging data.
HTH,
Shiva
After downloading it import into a table dim_int_mktg_tld which you can join with the staging data.
CREATE TABLE `dim_int_mktg_tld` ( `tld` varchar(16) NOT NULL, `type` varchar(32) default 'country-code', #-- Can be country-code or generic `info` varchar(500) default NULL, PRIMARY KEY (`tld`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 #-- Join with yesterdays staging data and get TLD SELECT WL.url, TLD.tld FROM stg_weblog_date WL LEFT OUTER JOIN dim_int_mktg_tld TLD ON substring_index( substring_index( substring_index(url, '://', -1), '/',1), '.',-1) = TLD.tld WHERE WL.date = DATE_ADD(CURRENT_DATE, interval -1 day) #-- Example: http://www.abc.co.au/in/test #-- Innermost substring_index returns everything to the right of '://' #-- i.e, www.abc.co.au/in/test, #-- then the middle one gets everything to the left of first '/' #-- i.e, www.abc.co.au #-- then the outer most substring_index returns everything to the right of last '.' #-- i.e, au #-- which is then joined with TLD table
HTH,
Shiva
Google NS Individual Search Box
Today, while searching for "cygwin" keyword I was presented with results that caught my eye. The first result had its own search box. See picture below. Had anyone seen this before? I liked the feature and pretty handy if you are looking for a specific information from a specific site. I entered "latest version" and hit "Search cygwin.com" that showed search entry "latest version site:cygwin.com" in the next search. Nice.
Other posts that may be of interest:
1. Best Google home page logos
2. Better quicker SEM ROI
3. 99 bottles of beer in different laguages

Cheers,
Shiva
Other posts that may be of interest:
1. Best Google home page logos
2. Better quicker SEM ROI
3. 99 bottles of beer in different laguages

Cheers,
Shiva
Useful SEM SEO Links
Some of very useful links related to SEM and SEO fields.
- Google Adwords
- Official Blog
- Adwords Tools
- SEOmoz.org
- Search Engine Land
- Matt Cutts' Blog
- Yahoo
Google Analytics Data Retriever (API) - SEM, SEO
Google Analytics should be an integral part of any company's marketing data analysis strategy that plays in SEM, SEO field. Not too long ago Google released API for their Analytics and one can use this data or reports to compliment their in-house data analysis.
Here I have provided a small utility program that can be used to retrieve most popular six (6) reports and have used similar utilities that I have built to dump the data into MySQL data warehouse for much bigger data sets.
The application has two Perl modules (GAProfile.pm and GAReport.pm) and a main program (ga_report_retriever.pl). GAProfile.pm module is used to authenticate your account and get the auth_code that will be used in the subsequent calls to GA to get reports. GAReport.pm module is used to pull the report and dump important dimension and metrics to standard output. Put both these modules in the same directory (or copy them to directory in the path of PERL5LIB) as the main program and run it. To get different report, make a change in "ga_report_retriever.pl" passing the name of the report.
Before you start using the GA API, you may want to go through the documentation.
Here I have provided a small utility program that can be used to retrieve most popular six (6) reports and have used similar utilities that I have built to dump the data into MySQL data warehouse for much bigger data sets.
The application has two Perl modules (GAProfile.pm and GAReport.pm) and a main program (ga_report_retriever.pl). GAProfile.pm module is used to authenticate your account and get the auth_code that will be used in the subsequent calls to GA to get reports. GAReport.pm module is used to pull the report and dump important dimension and metrics to standard output. Put both these modules in the same directory (or copy them to directory in the path of PERL5LIB) as the main program and run it. To get different report, make a change in "ga_report_retriever.pl" passing the name of the report.
Before you start using the GA API, you may want to go through the documentation.
At command prompt> ./ga_report_retriever.pl
Subscribe to:
Posts (Atom)