Skip to content

Instantly share code, notes, and snippets.

@unity
Created June 1, 2018 18:08
Show Gist options
  • Save unity/2b757901f76c45bf7397eb65f519f0cf to your computer and use it in GitHub Desktop.
Save unity/2b757901f76c45bf7397eb65f519f0cf to your computer and use it in GitHub Desktop.
if (isInSegment("Highly Qualified") && isInSegment("Connected This week")) {
traits({ category: 'active' });
} else if (isInSegment("Not Qualified") && !isInSegment("Connected This week")) {
traits({ category: 'no_fit' });
} else if (isInSegment("Highly Qualified") && !isInSegment("Connected This week")) {
traits({ category: 'churn_risk' });
} else if (isInSegment("Not Qualified") && isInSegment("Connected This week")) {
traits({ category: 'needs_onboarding' });
} else {
traits({ category: 'manual_operation' });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment