Merge pull request #1586 from mailpoet/nps-poll-for-old-users
NPS poll for old users [MAILPOET-1599]
This commit is contained in:
@ -4,6 +4,7 @@ function displayPoll() {
|
||||
&& window.satismeter
|
||||
&& window.mailpoet_installed_at_isoFormat
|
||||
) {
|
||||
// New users poll
|
||||
window.satismeter({
|
||||
writeKey: '6L479eVPXk7pBn6S',
|
||||
userId: window.mailpoet_current_wp_user.ID + window.mailpoet_site_url,
|
||||
@ -13,6 +14,16 @@ function displayPoll() {
|
||||
createdAt: window.mailpoet_installed_at_isoFormat,
|
||||
},
|
||||
});
|
||||
// Old users poll
|
||||
window.satismeter({
|
||||
writeKey: 'k0aJAsQAWI2ERyGv',
|
||||
userId: window.mailpoet_current_wp_user.ID + window.mailpoet_site_url,
|
||||
traits: {
|
||||
name: window.mailpoet_current_wp_user.user_nicename,
|
||||
email: window.mailpoet_current_wp_user.user_email,
|
||||
createdAt: window.mailpoet_installed_at_isoFormat,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user