1

This is what a stripped down version of the sitemap JS looks like, so you can get an idea of what I'm trying to do:

Evergage.init({
    cookieDomain: "example.co.uk",
    trackerUrl: "https://example.germany-2.evergage.com"
}).then(() => {
    const config = {
        global: {
            listeners: [
                Evergage.listener('submit', 'form', (event) => {
                    Evergage.sendEvent({
                        action: 'Account Created',
                        user: { 
                            attributes: {
                                emailAddress: event.detail,
                                signupReferralSource: '' /* ??? */
                            }
                        }
                    });
                })
            ]
        },
        pageTypes: [
            {
                name: "example",
                isMatch: () => true
            }
        ]
    };

    Evergage.initSitemap(config);
});

0

You must log in to answer this question.

Browse other questions tagged .