Skip to content

Instantly share code, notes, and snippets.

@infusedmj
Last active August 29, 2015 14:01
Show Gist options
  • Save infusedmj/2e528edff25e7db3f026 to your computer and use it in GitHub Desktop.
Save infusedmj/2e528edff25e7db3f026 to your computer and use it in GitHub Desktop.
function embed_ambassador_tracking_pixel($order) {
$email = $order->billing_email;
echo '<img src="https://mbsy.co/embed/v2/img/?mbsy_username=AFG&mbsy_campaign_uid=12765&mbsy_email='.$email.'&mbsy_revenue=0&mbsy_has_trial=1&mbsy_auto_create=0" style="border: none; display: none" alt="" />';
echo '<img src="https://mbsy.co/embed/v2/img/?mbsy_username=AFG&mbsy_campaign_uid=_____&mbsy_email='.$email.'&mbsy_revenue=0&mbsy_has_trial=1&mbsy_auto_create=0" style="border: none; display: none" alt="" />';
}
add_action('woocommerce_order_details_after_customer_details', 'embed_ambassador_tracking_pixel',10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment