Skip to content

Instantly share code, notes, and snippets.

@filipecrosk
Created July 6, 2020 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipecrosk/8280aad2de1818fce956a88b8de351d2 to your computer and use it in GitHub Desktop.
Save filipecrosk/8280aad2de1818fce956a88b8de351d2 to your computer and use it in GitHub Desktop.
Payload quiz
const payload = {
name: model.name,
email: model.email,
source: ENV.quizFonte, // outbrain, taboola, facebook, google, affiliate
referer: window.document.referrer,
query_string: queryArray,
questions: questionsAndAnswers,
krux_id: this._getParam('krux_id'),
sub_id: this._getParam('sub_id'),
fbclid: this._getParam('fbclid'),
gclid: this._getParam('gclid'),
utm_source: this._getParam('utm_source'),
utm_medium: this._getParam('utm_medium'),
utm_campaign: this._getParam('utm_campaign'),
utm_content: this._getParam('utm_content'),
utm_term: this._getParam('utm_term'),
campaign_id: this._getParam('campaign_id'),
ad_id: this._getParam('ad_id'),
fluxo_automacao: 'fluxo_unico',
origem_cadastro:
window.location.origin + window.location.pathname,
dito_data: ditoData,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment