A parser to TrafficSourceCookie
WIP 🙏
parsed_source = TrafficSourceParser.parse(cookie_value)
It sets parsed_source
as a specific TrafficSourceParser::Parser
object, with attributes defined by its type and cookie params.
#<TrafficSourceParser::Parser::UtmzParser::Utmz utmcsr="t.co", utmccn="(referral)", utmcmd="referral", utmcct="/EFzCFawFrk">
#<TrafficSourceParser::Parser::CampaignParser::Campaign utm_campaign="spring", utm_medium="email", utm_source="newsletter1", utm_content="toplink">
Referrer is a listed social network:
#<TrafficSourceParser::Result::Social source="Facebook">
Referrer is from a listed search engine:
#<TrafficSourceParser::Result::Search source="Bing", query="shipit resultados digitais">
Referrer is unknown
#<TrafficSourceParser::Result::Generic source="http://www.resultadosdigitais.com.br">