Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
channel classifier
"channelClassifier" : {
"channels" : [
{
"channelName" : "affiliate",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "affiliate"
}
]
}
},
{
"channelName" : "retargeting",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "CONTAINS",
"operand" : "S_UTM_MEDIUM",
"argument" : "retarget"
}
]
}
},
{
"channelName" : "display",
"channelRules" : {
"operator" : "OR",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "display"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpm"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "banner"
}
]
}
},
{
"channelName" : "email",
"channelRules" : {
"operator" : "OR",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "email"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "e-mail"
}
]
}
},
{
"channelName" : "other advertising",
"channelRules" : {
"operator" : "OR",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpv"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpa"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpp"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "content-text"
}
]
}
},
{
"channelName" : "referral",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "CONTAINS",
"operand" : "S_UTM_MEDIUM",
"argument" : "referral"
}
]
}
},
{
"channelName" : "paid social",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "ISSOCIAL_DOMAIN",
"operand" : "S_REFERRER_HOST",
"argument" : ""
},
{
"operator" : "OR",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpc"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "ppc"
},
{
"operator" : "CONTAINS",
"operand" : "S_UTM_MEDIUM",
"argument" : "paid"
}
]
}
]
}
},
{
"channelName" : "paid search",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "ISPAIDSEARCH_DOMAIN",
"operand" : "S_REFERRER_HOST",
"argument" : ""
},
{
"operator" : "OR",
"rules" : [
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "cpc"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "ppc"
},
{
"operator" : "EQUAL",
"operand" : "S_UTM_MEDIUM",
"argument" : "paidsearch"
},
{
"operator" : "CONTAINS",
"operand" : "S_LANDING_PAGE_QUERY",
"argument" : "gclid="
},
{
"operator" : "CONTAINS",
"operand" : "S_LANDING_PAGE_QUERY",
"argument" : "utm_"
}
]
}
]
}
},
{
"channelName" : "organic search",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "ISORGANICSEARCH_DOMAIN",
"operand" : "S_REFERRER_HOST",
"argument" : ""
}
]
}
},
{
"channelName" : "social",
"channelRules" : {
"operator" : "OR",
"rules" : [
{
"operator" : "ISSOCIAL_DOMAIN",
"operand" : "S_REFERRER_HOST",
"argument" : ""
},
{
"operator" : "CONTAINS",
"operand" : "S_UTM_MEDIUM",
"argument" : "social"
},
{
"operator" : "CONTAINS",
"operand" : "S_UTM_MEDIUM",
"argument" : "sm"
}
]
}
},
{
"channelName" : "referral",
"channelRules" : {
"operator" : "AND",
"rules" : [
{
"operator" : "NOTNULL",
"operand" : "S_REFERRER_HOST",
"argument" : ""
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment