subscribeEmailInfo Function

This function needs to be called each time a guest registers, logs in or fills in the email address in a form on the website (e.g. Contact or Newsletter Form, Order Details), to inform Retargeting if user want to receive marketing emails.

If you have a checkbox for opt in/opt out, you can trigger this function when user change the status.

subscribeEmailInfo Function Parameters

Field Type Required Description
email text True Email address. Ex.
status bool True OptIn/Opt out status in boolean format. Ex. true


    var ra = ra || {};

    _ra.subscribeEmailInfo = {
        "email": "",
        "status": true

    if (_ra.ready !== undefined) {