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);
});
New contributor
Will is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Will is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.