Hi, I have a new amplitude installation on my website and I’m not able to get user properties to show up in amplitude. I am migrating from Heap. Sessions and events are being tracked in amplitude, just without any user properties (ie. “email”).
In my code I have:
<script type="text/javascript">
const properties = {
plan: '3',
payment_method: 'stripe',
account_type_id: '1',
profile_complete: '1',
handle: 'test',
dashboard_url: 'https://test.com/dashboard/',
company_id: '1',
company_name: 'test',
joindate: '1245300441',
contact_name: 'test test',
first_name: 'Test',
last_name: 'Test',
user_id: '1',
email: 'test@test.com',
billing_frequency: 'month',
};
if (window.amplitude){
const identifyEvent = new window.amplitude.Identify();
identifyEvent.set(properties);
window.amplitude.identify(identifyEvent);
}
</script>
What I see in the network tab is an empty user_properties object:
Based on some other threads, I thought the issue might be that I need to pre-define these user properties in the Amplitude dashboard. I did that and it’s still not working.
Please help!
Thank you