This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function blankify(human) { | |
if (!human) { | |
return ' ' | |
} else return human | |
} | |
var accountTeam = new Object(); | |
accountTeam.csm = blankify("Bob") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function blankify(human) { | |
if (!human) { | |
return ' ' | |
} else return human | |
} | |
var accountTeam = new Object(); | |
accountTeam.csm = blankify("Bob") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var params = { | |
number_of_days: 7, | |
sample_percentage: 1, | |
libs: {'web':''}, | |
last_seen: 'Registration Date', | |
csv_format: true, | |
people_spec: ["Community member"] | |
} | |
var defaults = ["$city", "$region", "mp_country_code", "$brand", "$bluetooth_version", "$device", "$os", "$app_release", "$app_version", "$carrier", "$lib_version", "$wifi", "$screen_width", "$screen_height", "$model", "$os_version", "$manufacturer", "$screen_dpi", "$has_telephone", "has_nfc", "$bluetooth_enabled", "$browser", "$initial_referrer", "$initial_referring_domain", "$referrer", "$referring_domain", "$browser_version", "mp_keyword", "$search_engine", "utm_source", "utm_medium", "utm_campaign", "utm_content", "utm_term", "$radio", "mp_device_model", "$google_play_services", "mp_lib", "campaign_id", "message_id", "message_subtype", "message_type", "$answer_count", "survey_id", "collection_id", "$survey_shown", "$watch_model", "$ios_ifa", "$current_url", "$duration", "$from_binding", "$experiments", "$import", "distinct_id", "time", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var params = { | |
timezone_offset: -8, | |
minutes_gaps: 60 | |
} | |
function main() { | |
return Events({ | |
from_date: '2019-02-01', | |
to_date: '2019-02-28', | |
event_selectors: [{event: 'Game Played'}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main() { | |
return Events({ | |
/* Dec */ | |
from_date: "2018-12-01", | |
to_date: "2018-12-31", | |
// /* Jan */ | |
// from_date: "2019-01-01", | |
// to_date: "2019-01-31", | |
// /* Feb */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////// | |
/* Return an event count grouped by a single property */ | |
////////////////////////////////////////////////////////// | |
function main() { | |
return Events({ | |
from_date: '2018-02-10', | |
to_date: '2019-02-20', | |
event_selectors: [{ | |
event: 'Shopping List Add' |