Google Analytics provides MCF data. I want to use this data to interpret the interactions between the medium before a conversion with R.
To simplify, let´s say that I have 2 rows with the medium path and the total number of conversions associated to each path:
direct > cpc > organic > cpc > referral > direct | 3 conversions
organic > direct > cpc > referral > cpc > direct | 1 conversion
With R, How would you manage your dataframe to have this info:
- Number of times each channel is before another one. So for instance direct is before cpc (number of occurences of "direct > cpc" in my medium path weighted by the number of conversions)
The problem is that I when I proceed, the number of columns of the final dataframe is huge (1 per channel combination).
- How would you manipulate the data in R to have a "clear" and interpretable dataframe ?
- Would you use the same methodology or would you use a simple one?
- Which R packages would you use (from now I am simplys using stringr to manipulate the paths strings)?
- Additionnaly, do you know a mapping package that can perform a more graphic analysis ?
Thanks.
Sylvain