Help Centre

<

Home
Profile data integration

The following code should be pushed into the sfDataLayer.

If your email input via the basket page is not inside a form Salesfire will be unable to detect the data collected.
 
To integrate, you will need to insert the following script to send it via our datalayer.

Please insert on to the checkout pages:

window.sfDataLayer.push({
    'profile': {
        'name': 'John Doe',
        'first_name': 'John',
        'last_name': 'Doe',
        'email': 'john.doe@salesfire.com',
        'mobile_number': '1234567890',
        'checkout_url': 'https://www.salesfire.co.uk/checkout',
    },
    'subscriptions': [
        {
            'type': 'MARKETING',
            'channel': 'EMAIL',
            'status': 'SUBSCRIBED' 
        }
    ]
});

Subscriptions is an array of subscription updates - it will update where necessary, it will not replace.

type = TRANSACTIONAL or MARKETING
channel = EMAIL or SMS
status = SUBSCRIBED or UNSUBSCRIBED

(the values must be uppercase)