NPS poll for old users

This commit is contained in:
qfrery
2018-10-28 15:57:59 +01:00
parent b21ef30202
commit 7538a08678

View File

@@ -4,6 +4,7 @@ function displayPoll() {
&& window.satismeter && window.satismeter
&& window.mailpoet_installed_at_isoFormat && window.mailpoet_installed_at_isoFormat
) { ) {
// New users poll
window.satismeter({ window.satismeter({
writeKey: '6L479eVPXk7pBn6S', writeKey: '6L479eVPXk7pBn6S',
userId: window.mailpoet_current_wp_user.ID + window.mailpoet_site_url, userId: window.mailpoet_current_wp_user.ID + window.mailpoet_site_url,
@@ -13,6 +14,16 @@ function displayPoll() {
createdAt: window.mailpoet_installed_at_isoFormat, createdAt: window.mailpoet_installed_at_isoFormat,
}, },
}); });
// Old users poll
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,
},
});
} }
} }