How to Integrate Digioh with Boomtrain

How to Integrate with Boomtrain AnalyticsTrain.js

Follow these instructions if you are integrating with the AnalyticsTrain.js Boomtrain integration. In most cases these are the steps you will need to follow. If you have two API keys and/or you are integrating with the Boomtrain BTN library, scroll down for those instructions.

1. You will need the following information from your Boomtrain account to complete this integration. If you don't have this information just ask your Boomtrain Account Manager. 

PLEASE NOTE Javascript Library path must be https, not http.

2. Login to your Digioh account

3. Click on "Custom Javascript" under your name

4. Copy paste this into the the AFTER DOCUMENT READY section and replace the values below with your values:

  • [INSERT Boomtrain LIBRARY PATH HERE - MUST BE HTTPS] (don't include the brackets) - there is only one place you need to make this change (in the first line)

Note: Please note that the javascript library must be https and not http.

var BOOMTRAIN_URL = '[INSERT Boomtrain LIBRARY PATH HERE - MUST BE HTTPS]';


DIGIOH_CUSTOM_JS_GLOBAL = {};
DIGIOH_CUSTOM_JS_GLOBAL.bt_user = {};
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.exists = false;
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.has_email = false;
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.raw_cookie = '';
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.email = '';
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.first_name = '';
DIGIOH_CUSTOM_JS_GLOBAL.bt_user.last_name = '';

var bt_digioh_cookie = DIGIOH_COOKIE.get('bt_digioh');
if (bt_digioh_cookie === null) {
    DIGIOH_CUSTOM_JS.log('DIGIOH: Did not find an existing bt_digioh cookie...');
}
else {
    DIGIOH_CUSTOM_JS.log('DIGIOH: Found existing bt_digioh cookie, it is set to: ' + bt_digioh_cookie);
    DIGIOH_CUSTOM_JS_GLOBAL.bt_user.exists = true;
    DIGIOH_CUSTOM_JS_GLOBAL.bt_user.raw_cookie = bt_digioh_cookie;

    var raw = DIGIOH_CUSTOM_JS_GLOBAL.bt_user.raw_cookie;
    if (raw.indexOf('|') > 0) {
        var cookie_parts = raw.split('|');
        if (cookie_parts.length >= 3) {
            DIGIOH_CUSTOM_JS_GLOBAL.bt_user.email = cookie_parts[0];
            DIGIOH_CUSTOM_JS_GLOBAL.bt_user.first_name = (!cookie_parts[1] || cookie_parts[1] == 'XXXXXXX') ? '' : cookie_parts[1];
            DIGIOH_CUSTOM_JS_GLOBAL.bt_user.last_name = (!cookie_parts[2] || cookie_parts[2] == 'XXXXXXX') ? '' : cookie_parts[2];
        }

        if (cookie_parts[0] && cookie_parts[0].length > 3 && cookie_parts[0].indexOf('@') > 0) {
            DIGIOH_CUSTOM_JS_GLOBAL.bt_user.has_email = true;
        }
    }
}

var run_bt_func = function() {
    if (typeof _bt !== 'undefined' || typeof window._bt !== 'undefined') {
        if (typeof window._bt === 'undefined') {
            window._bt = _bt;
        }
        DIGIOH_CUSTOM_JS.log("DIGIOH: window._bt is defined");
    }
};

window.setTimeout(function() {
    if (typeof _bt === 'undefined' && typeof window._bt === 'undefined') {
        JQUERY_DIGIOH.when(
            JQUERY_DIGIOH.ajax({ url: BOOMTRAIN_URL, crossDomain: true, dataType: "script", cache: false })
        ).done(function () {
            DIGIOH_CUSTOM_JS.log("DIGIOH: Loaded analyticstrain.js script");
            run_bt_func();
        });
    }
    else {
        DIGIOH_CUSTOM_JS.log("DIGIOH: analyticstrain.js already defined, so skipping loading a 2nd time.");
        run_bt_func();
    }
}, 1500);

5. Copy Paste this into the After Lightbox Submit section

if (typeof DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data !== 'undefined') {
    DIGIOH_CUSTOM_JS.log("DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data found");

    var bt_email = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.email || '';
    var bt_first_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name || '';
    var bt_last_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name || '';

    if (bt_email || bt_email === '') {
        DIGIOH_CUSTOM_JS.log("DIGIOH: found bt_email");

        var bt_digioh = bt_email;

        if (bt_first_name) bt_digioh += '|' + bt_first_name;
        else bt_digioh += '|XXXXXXX';

        if (bt_last_name) bt_digioh += '|' + bt_last_name;
        else bt_digioh += '|XXXXXXX';

        DIGIOH_COOKIE.set('bt_digioh', bt_digioh);

        if (typeof window._bt !== 'undefined') {
            var bt_args = {};
            bt_args.source = 'Digioh';
            bt_args.lightbox_id = lightbox_id;
            bt_args.mail_list = 'true';
            //bt_args.list = 'subscriber';

            if (typeof DIGIOH_LIGHTBOX_NAMES !== 'undefined' && DIGIOH_LIGHTBOX_NAMES.hasOwnProperty(lightbox_id)) {
                bt_args.lightbox_name = DIGIOH_LIGHTBOX_NAMES[lightbox_id];
            } else {
                bt_args.lightbox_name = '';
            }

            if (typeof DIGIOH_LIGHTBOX_ANALYTICS !== 'undefined' && DIGIOH_LIGHTBOX_ANALYTICS.hasOwnProperty('form_submit_data')) {
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('first_name') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name) bt_args.first_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('last_name') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name) bt_args.last_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('phone') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.phone) bt_args.phone = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.phone;

                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_1') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_1 !== null) bt_args.custom_1 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_1;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_2') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_2 !== null) bt_args.custom_2 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_2;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_3') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_3 !== null) bt_args.custom_3 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_3;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_4') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_4 !== null) bt_args.custom_4 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_4;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_5') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_5 !== null) bt_args.custom_5 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_5;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_6') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_6 !== null) bt_args.custom_6 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_6;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_7') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_7 !== null) bt_args.custom_7 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_7;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_8') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_8 !== null) bt_args.custom_8 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_8;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_9') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_9 !== null) bt_args.custom_9 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_9;
                if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_10') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_10 !== null) bt_args.custom_10 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_10;
            }

            if (typeof DIGIOH_LIGHTBOX_ANALYTICS !== 'undefined' && DIGIOH_LIGHTBOX_ANALYTICS.hasOwnProperty('VARS')) {
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('city') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.city) bt_args.city = DIGIOH_LIGHTBOX_ANALYTICS.VARS.city;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('state') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.state) bt_args.state = DIGIOH_LIGHTBOX_ANALYTICS.VARS.state;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('country') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.country) bt_args.country = DIGIOH_LIGHTBOX_ANALYTICS.VARS.country;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('ip_address') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.ip_address) bt_args.ip_address = DIGIOH_LIGHTBOX_ANALYTICS.VARS.ip_address;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('web_source') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.web_source) bt_args.web_source = DIGIOH_LIGHTBOX_ANALYTICS.VARS.web_source;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('page_visits')) bt_args.page_views = DIGIOH_LIGHTBOX_ANALYTICS.VARS.page_visits;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('past_visits')) bt_args.past_visits = DIGIOH_LIGHTBOX_ANALYTICS.VARS.past_visits;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('device') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.device) bt_args.device = DIGIOH_LIGHTBOX_ANALYTICS.VARS.device;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('browser_type') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.browser_type) bt_args.browser = DIGIOH_LIGHTBOX_ANALYTICS.VARS.browser_type;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('operating_system') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.operating_system) bt_args.operating_system = DIGIOH_LIGHTBOX_ANALYTICS.VARS.operating_system;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('landing_page') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.landing_page) bt_args.landing_page_url = DIGIOH_LIGHTBOX_ANALYTICS.VARS.landing_page;
                if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('current_page_url') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.current_page_url) bt_args.submit_page_url = DIGIOH_LIGHTBOX_ANALYTICS.VARS.current_page_url;
            }

            window._bt.trackAccountSignup(bt_email, bt_args);
            DIGIOH_CUSTOM_JS.log("DIGIOH: sent _bt.trackAccountSignup");
        }
    }
}

How to Integrate with Boomtrain BTN library (non analyticstrain.js):

1. You will need the follow information from your Boomtrain account to complete this integration. If you don't have this information just ask your Boomtrain Account Manager. 

  • Javascript Library (example: https://d3r7h55ola878a.cloudfront.net/btn/1.0.0/btn.js)
  • API Key 1 (example: e22d241e217d40fe9431573de9bd319f)
  • API Key 2 (example: 36b4f950ac34fd6d8f656fcbf44cae1da)

PLEASE NOTE Javascript Library path must be https, not http.

2. Login to your Digioh account

3. Click on "Custom Javascript" under your name

4. Copy paste this into the the AFTER DOCUMENT READY section and replace the values below with your values:

  • [LIBRARY PATH URL - MUST BE HTTPS]
  • [API KEY 1]
  • [API KEY 2]
DIGIOH_CUSTOM_JS_GLOBAL = {};
DIGIOH_CUSTOM_JS_GLOBAL.btn_user = {};
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.exists = false;
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.has_email = false;
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.raw_cookie = '';
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.email = '';
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.first_name = '';
DIGIOH_CUSTOM_JS_GLOBAL.btn_user.last_name = '';

var btn_digioh_cookie = DIGIOH_COOKIE.get('btn_digioh');
if (btn_digioh_cookie === null) {
	DIGIOH_CUSTOM_JS.log('Did not find an existing btn_digioh cookie...');
} 
else {
	DIGIOH_CUSTOM_JS.log('Found existing btn_digioh cookie, it is set to: ' + btn_digioh_cookie);
	DIGIOH_CUSTOM_JS_GLOBAL.btn_user.exists = true;
	DIGIOH_CUSTOM_JS_GLOBAL.btn_user.raw_cookie = btn_digioh_cookie;
	
	var raw = DIGIOH_CUSTOM_JS_GLOBAL.btn_user.raw_cookie;
	if (raw.indexOf('|') > 0) {
	    var cookie_parts = raw.split('|');
	    if (cookie_parts.length >= 3) {
    	    DIGIOH_CUSTOM_JS_GLOBAL.btn_user.email = cookie_parts[0];
            DIGIOH_CUSTOM_JS_GLOBAL.btn_user.first_name = (!cookie_parts[1] || cookie_parts[1] == 'XXXXXXX') ? '' : cookie_parts[1];
            DIGIOH_CUSTOM_JS_GLOBAL.btn_user.last_name = (!cookie_parts[2] || cookie_parts[2] == 'XXXXXXX') ? '' : cookie_parts[2];
	    }
	    
	    if (cookie_parts[0] && cookie_parts[0].length > 3 && cookie_parts[0].indexOf('@') > 0) {
	        DIGIOH_CUSTOM_JS_GLOBAL.btn_user.has_email = true;
	    }
	}
}







var runBtnFunc = function() {
    if (typeof _btn !== 'undefined' || typeof window._btn !== 'undefined') {
        if (typeof window._btn === 'undefined') {
            window._btn = _btn;
        }
        
        DIGIOH_CUSTOM_JS.log("DIGIOH: window._btn is defined");
        
        var BOOMTRAIN_API_KEY_1 = '[API KEY 1]'; 
        var BOOMTRAIN_API_KEY_2 = '[API KEY 2]';
        window._btn.setDebugMode(true);
        window._btn.setAPIKeys(BOOMTRAIN_API_KEY_1,BOOMTRAIN_API_KEY_2);  
        
        if (DIGIOH_CUSTOM_JS_GLOBAL.btn_user.has_email) {
            window._btn.initialize(DIGIOH_CUSTOM_JS_GLOBAL.btn_user.email, {
                 "source":"Digioh"
            }); 
            DIGIOH_CUSTOM_JS.log("DIGIOH: _btn.initialize for " + DIGIOH_CUSTOM_JS_GLOBAL.btn_user.email);
        } else {
            window._btn.initialize();
            DIGIOH_CUSTOM_JS.log("DIGIOH: _btn.initialize for anon");
        }
    }
};


window.setTimeout(function() {
    if (typeof _btn === 'undefined' && typeof window._btn === 'undefined') {
        JQUERY_DIGIOH.when(
            JQUERY_DIGIOH.ajax({ url: "[LIBRARY PATH URL - MUST BE HTTPS]", crossDomain: true, dataType: "script", cache: false })
        ).done(function () {
            DIGIOH_CUSTOM_JS.log("DIGIOH: Loaded btn.js script");
            runBtnFunc();
        });
    }
    else {
        DIGIOH_CUSTOM_JS.log("DIGIOH: btn.js already defined, so skipping loading a 2nd time.");
        runBtnFunc();
    }
}, 1500);

6. Copy Paste this into the After Lightbox Submit section

if (typeof DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data !== 'undefined') {
    DIGIOH_CUSTOM_JS.log("DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data found");
    
    var btn_email = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.email || '';
    var btn_first_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name || '';
    var btn_last_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name || '';
    
    if (btn_email || btn_email === '') {
        DIGIOH_CUSTOM_JS.log("DIGIOH: found btn_email");
        
        var btn_digioh = btn_email;
        
        if (btn_first_name) btn_digioh += '|' + btn_first_name;
        else btn_digioh += '|XXXXXXX';
        
        if (btn_last_name) btn_digioh += '|' + btn_last_name;
        else btn_digioh += '|XXXXXXX';
        
        DIGIOH_COOKIE.set('btn_digioh', btn_digioh);
        
        if (typeof window._btn !== 'undefined') {
            var bti_args = {};
            bti_args.source = 'Digioh';
            bti_args.lightbox_id = lightbox_id;
            
            //SPECIAL NOTE: Both these options are commented out. If Boomtrain customer wants these added in Mail_List is True or Marked as a subscriber, uncomment the code below
            //bti_args.mail_list = 'true';
            //bti_args.list = 'subscriber';
            
            if (typeof DIGIOH_LIGHTBOX_NAMES !== 'undefined' && DIGIOH_LIGHTBOX_NAMES.hasOwnProperty(lightbox_id)) {
            	bti_args.lightbox_name = DIGIOH_LIGHTBOX_NAMES[lightbox_id];
            } else {
            	bti_args.lightbox_name = '';
            }
            
            if (typeof DIGIOH_LIGHTBOX_ANALYTICS !== 'undefined' && DIGIOH_LIGHTBOX_ANALYTICS.hasOwnProperty('form_submit_data')) {
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('first_name') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name) bti_args.first_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.first_name;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('last_name') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name) bti_args.last_name = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.last_name;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('phone') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.phone) bti_args.phone = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.phone;
            	
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_1') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_1 !== null) bti_args.custom_1 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_1;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_2') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_2 !== null) bti_args.custom_2 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_2;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_3') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_3 !== null) bti_args.custom_3 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_3;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_4') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_4 !== null) bti_args.custom_4 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_4;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_5') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_5 !== null) bti_args.custom_5 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_5;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_6') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_6 !== null) bti_args.custom_6 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_6;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_7') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_7 !== null) bti_args.custom_7 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_7;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_8') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_8 !== null) bti_args.custom_8 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_8;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_9') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_9 !== null) bti_args.custom_9 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_9;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.hasOwnProperty('custom_10') && DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_10 !== null) bti_args.custom_10 = DIGIOH_LIGHTBOX_ANALYTICS.form_submit_data.custom_10;
            }
            
            if (typeof DIGIOH_LIGHTBOX_ANALYTICS !== 'undefined' && DIGIOH_LIGHTBOX_ANALYTICS.hasOwnProperty('VARS')) {
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('city') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.city) bti_args.city = DIGIOH_LIGHTBOX_ANALYTICS.VARS.city;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('state') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.state) bti_args.state = DIGIOH_LIGHTBOX_ANALYTICS.VARS.state;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('country') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.country) bti_args.country = DIGIOH_LIGHTBOX_ANALYTICS.VARS.country;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('ip_address') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.ip_address) bti_args.ip_address = DIGIOH_LIGHTBOX_ANALYTICS.VARS.ip_address;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('web_source') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.web_source) bti_args.web_source = DIGIOH_LIGHTBOX_ANALYTICS.VARS.web_source;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('page_visits')) bti_args.page_views = DIGIOH_LIGHTBOX_ANALYTICS.VARS.page_visits;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('past_visits')) bti_args.past_visits = DIGIOH_LIGHTBOX_ANALYTICS.VARS.past_visits;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('device') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.device) bti_args.device = DIGIOH_LIGHTBOX_ANALYTICS.VARS.device;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('browser_type') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.browser_type) bti_args.browser = DIGIOH_LIGHTBOX_ANALYTICS.VARS.browser_type;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('operating_system') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.operating_system) bti_args.operating_system = DIGIOH_LIGHTBOX_ANALYTICS.VARS.operating_system;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('landing_page') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.landing_page) bti_args.landing_page_url = DIGIOH_LIGHTBOX_ANALYTICS.VARS.landing_page;
            	if (DIGIOH_LIGHTBOX_ANALYTICS.VARS.hasOwnProperty('current_page_url') && DIGIOH_LIGHTBOX_ANALYTICS.VARS.current_page_url) bti_args.submit_page_url = DIGIOH_LIGHTBOX_ANALYTICS.VARS.current_page_url;
            }
            
            
            window._btn.trackAccountSignup(btn_email, bti_args);
            
            DIGIOH_CUSTOM_JS.log("DIGIOH: sent _btn.trackAccountSignup");
            
            //**INSTRUCTIONS PROVIDED:  Once the user is verified and/or completes their profile call this event.
            //**QUESTION ABOUT THIS:  Does this get set after the first lightbox submisison, or after a certain additional action by the user 
            //(like another lightbox for their profile, for example)?
            //_btn.trackAccountCompleted(btn_email); 
        }
    }
}