use mixpanel.people.set

This commit is contained in:
qfrery
2018-06-04 15:04:40 +01:00
committed by qfrery
parent 43813758eb
commit e8b0e77d0e

View File

@ -2,14 +2,17 @@
0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
window.mixpanelTrackingId = "8cce373b255e5a76fb22d57b85db0c92";
// window.mixpanelTrackingId = "8cce373b255e5a76fb22d57b85db0c92";
window.mixpanelTrackingId = "172e1ec7e7e6300e41defee3548dcf42";
if (mailpoet_analytics_enabled) {
mixpanel.init(window.mixpanelTrackingId);
mixpanel.register({'Platform': 'Plugin'});
if (mailpoet_analytics_data != null) {
mixpanel.track('MailPoet 3', mailpoet_analytics_data);
//TODO mixpanel.identify(userId);
mixpanel.people.set(mailpoet_analytics_data);
}
}