Help Centre

<

Home
Profile data integration

The following code should be pushed into the sfDataLayer.

As this datalayer contains the "checkout_url': field, this will be used as a reference point to take customers back to your cart.

After the datalayer has been added we can then add the checkout URL as a dynamic value.

This will then reference the datalayer that has been added and the items will be available in the cart.

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)