Skip to content

Instantly share code, notes, and snippets.

@gerard-kanters
Last active December 11, 2015 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerard-kanters/c9b731f6b5c379278fc5 to your computer and use it in GitHub Desktop.
Save gerard-kanters/c9b731f6b5c379278fc5 to your computer and use it in GitHub Desktop.
Mautic code for MyVox (you need to extend head in an existing plugin or creat a new plugin)
//Mautic programmatic marketing
$page_url = 'http://' . $_SERVER[HTTP_HOST] . $_SERVER['REQUEST_URI'];
$page_title = urlencode($title);
if(myvox_is_logged_in()) {
$muser = myvox_get_logged_in_user_entity();
$email = urlencode($muser->email);
} else {
$email = "";
}
$src= "http://mautic.netcare.nl/mtracking.gif?page_url='$page_url'&page_title='$page_title'&email='$email'";
echo '<img src="'. $src .'" style="display: none;" />';
//End Mautic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment