Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Enfold Showcase #1165583

    Hi Everybody,

    Took me a while..now here is my new website:

    High Credit Score Secrets

    in reply to: MailChimp Script Customization #1053087

    Add this to the function.php file:

    // Set Cookie for Referrer

    function register_bar_ref_cookie() {
    	if(!isset($_COOKIE['origin_ref'])) {
        	setcookie('origin_ref', $_SERVER['HTTP_REFERER']);
    	}
    }
    
    add_action('init', 'register_bar_ref_cookie');

    and then this code into mailchimp.php in the subfolder avia-shortcodes:

    // Get Referrer
    	
    if (isset($_COOKIE['origin_ref'])) {
    	$referer = $_COOKIE['origin_ref'];
    } else {
    	$referer = $_SERVER['HTTP_REFERER'];				
    }
    
    $data_to_send = array(
    	'email_address' => $mail,
    	'status'		=> $status,
    	'interests'     => array('xxx-your-code' => true),

    ‘merge_fields’ => array(‘REFER’ => $referer),
    );

    This will give you the original referrer in your MailChimp list (add field REFER in MailChimp).

    • This reply was modified 5 years, 11 months ago by tomherold.
    in reply to: MailChimp Script Customization #1051803

    Hello Nikko,

    Well, it probably goes beyond a support question. I added an extra field with the referrer information. Using the php function $_SERVER[‘HTTP_REFERER’]. But it does not work – giving me my own domain name. Probably because of a page change.

    in reply to: MailChimp Script Customization #1051737

    Thank you Nikko!

    in reply to: Footer Height with minimum Content #980430

    The footer (socket) has too much height when there is less content.

    in reply to: Footer Height with minimum Content #980068

    Hello Rikard,

    Thank you, but it does not work. Take a look at the screenshot (private content).

    Thomas

Viewing 6 posts - 1 through 6 (of 6 total)