Analyzing paid search campaigns in many markets can sometimes be overwhelming. Too much data locked in too many spreadsheets. It can sometimes be difficult to actually see what is happening across each market at once. I recently discovered Wickham's ggplot2 for R data visualization. Generally I'll use Pivot tables for quick & dirty analysis of ad words campaign performance. Rather than writing a macro let's write an R script to automate some of this.
Below is a quick look at two regressions plotting some (fake) company data for registrations versus ad words spend.
KeyMarkets_PaidSearch_AdWords_EF_2011 <- read.csv("~/Dropbox/R/DataSets/Acquisition/KeyMarkets_PaidSearch_AdWords_EF_2011.csv")
qplot(Cost, Total.Reg, colour = Portfolio) + geom_smooth(method="lm", se=T)
Here's what the output looks like.
We can see that Brazil looks great and Mexico is showing promise.
Next I ran a regression combining all the markets.
library(ggplot2)
#import dataset
KeyMarkets <- read.csv("~/Dropbox/R/DataSets/Acquisition/KeyMarkets_PaidSearch_AdWords_EF_2011.csv")
attach(KeyMarkets)
#To add faceted regressions just add this argument: facet_grid(. ~ Portfolio)
#note that the argument se=T was added for explicitness. The default is set to True.
qplot(Cost, Total.Reg, data=KeyMarkets, main="Total Reg vs. Cost in Key Markets") + geom_smooth(method="lm", SE=T)
Below is the chart this generates. Note the grey band is the Standard error.
Finally, let's have a look at the relative competitiveness by market. We'll do a scatter plot of the cost per registration versus the total registrations to get both a sense of spend efficiency as well as volume.
# let's plot efficiency, reg vs. CPR
qplot(Cost/Total.Reg, Total.Reg, data=KeyMarkets,
colour = factor(Portfolio),
main="Performance by Key market: CPR vs. Volume")
This is a fantastic package with lots of flexibility to create custom charts based on the data. In future posts I'll plan to build on these and take advantage of the flexibility contained in this package.



