Using the identify function to track user and subscription attributes

const context = {
    user: {
        id: 'user-12345', // mandatory
        email: '[email protected]',
        name: 'John Doe',
        role: 'admin',
        image: 'https://example.com/images/user12345.jpg',
        phone: '+1234567890',
        timezone: 'America/New_York',
        signUpDate: 1707164462000,
        location: {
            country: "USA",
            region: "Northeast",
            state: "New York",
            city: "New York City",
            postalCode: "10001"
        }
        // add custom attributes here after creating them in your subscription

    },
    subscription: {
        id: 'subscription-12345' // mandatory
         // add custom attributes here after creating them in your subscription
    }
}

eucera('when', 'ready', () => {
    eucera.identify(context);
});