Created
August 17, 2016 17:31
-
-
Save thadeubrito/8237f565d70ca32555598d26caebc7cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Pixel -> | |
// lID=mnoubo&mcID=undefined&cID=undefined | |
// BigQuery-> | |
// lID=mnoubo&mcID=undefined&cID=undefined | |
// Analytics Backend-> | |
// cID find the campaing using lID | |
// mcID 'media-chooser-' + lID | |
// Problem: In the bigquery we will have data missing some informations like mcID, cID | |
// and can not use validations like cID != 'undefined' | |
// ---------------- | |
// Pixel -> | |
// lID=mnoubo&mcID=media-chooser-mnoubo&cID=1234 | |
// BigQuery-> | |
// lID=mnoubo&mcID=media-chooser-mnoubo&cID=1234 | |
// Analytics Backend-> | |
// Just save and avoid undefined mcID and cID | |
// Problem: Need to set the mcID and cID in the media choosers like: | |
// create an instance of the Media Chooser | |
var chooser = new Chute.Chooser({ | |
'client_id': '123456789', | |
'album': 'aaaaaa', | |
'campaign_id': '1234', | |
'chooser_id': 'media-chooser-aaaaaa' | |
}); | |
// Possible case, the last name in mcID can be the context and it will be the name of media chooser in the UI | |
'chooser_id': 'media-chooser-' + 'aaaaaa' + '-' + 'context' //ex: media-chooser-aaaaaa-sidebar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment