Last active
December 11, 2015 21:51
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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