Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
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.
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.
Thank you Nikko!
The footer (socket) has too much height when there is less content.
Hello Rikard,
Thank you, but it does not work. Take a look at the screenshot (private content).
Thomas
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)