Skip to content

Instantly share code, notes, and snippets.

@bryanberger
Last active June 30, 2017 16:55
Show Gist options
  • Save bryanberger/8af1d91ae0eaadb239b0729de931160c to your computer and use it in GitHub Desktop.
Save bryanberger/8af1d91ae0eaadb239b0729de931160c to your computer and use it in GitHub Desktop.
config = {
enabled: true,
items: [
{
inclusions: '',
message: 'Check out our awesome More than School campaign: click here',
url: '/more-than-school',
newtab: true,
label: 'mts',
style: 'mts',
exclusions: [
new RegExp('/(corporate-digital-training|talent|credentials|opportunity-fund)'),
new RegExp('/education/learn-[^/]+-online')
],
schedule: {
start: 'June 1, 2017 00:00:00 -0500',
end: 'August 15, 2017 00:00:00 -0500'
}
}
],
exclusions: [
new RegExp('/education/[^/]+-immersive'),
new RegExp('/education/.+/learn-more'),
'/education/data-analytics',
'/education/data-science',
'/education/digital-marketing',
'/education/front-end-web-development',
'/education/javascript-development',
'/education/product-management',
'/education/user-experience-design',
'/education/visual-design',
'accounts.generalassemb.ly',
'/orders/checkout',
'/findyourcourse',
function paidCWEs() {
return document.querySelector('.price .symbol') !== null
}
]
}
_GA_announcements_configure(config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment