<?php
  if (!defined("\x41\x42\x53\x50\x41\x54\x48")) exit;   add_action('init', "\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x63\x61\x70\x74\x75\x72\x65\x5F\x66\x62\x63\x6C\x69\x64"); function unipixel_capture_fbclid() { if (isset($_GET["\x66\x62\x63\x6C\x69\x64"])) { $fbclid = sanitize_text_field($_GET["\x66\x62\x63\x6C\x69\x64"]);  setcookie("\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x66\x62\x63\x6C\x69\x64", $fbclid, time() + 7776000, COOKIEPATH, COOKIE_DOMAIN);   $_COOKIE["\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x66\x62\x63\x6C\x69\x64"] = $fbclid; } }  add_action('init', "\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x63\x61\x70\x74\x75\x72\x65\x5F\x6D\x73\x63\x6C\x6B\x69\x64"); function unipixel_capture_msclkid() { if (isset($_GET["\x6D\x73\x63\x6C\x6B\x69\x64"])) { $msclkid = sanitize_text_field($_GET["\x6D\x73\x63\x6C\x6B\x69\x64"]); setcookie("\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x6D\x73\x63\x6C\x6B\x69\x64", $msclkid, time() + 7776000, COOKIEPATH, COOKIE_DOMAIN);  $_COOKIE["\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x6D\x73\x63\x6C\x6B\x69\x64"] = $msclkid; } } add_action('woocommerce_thankyou', "\x75\x6E\x69\x70\x69\x78\x65\x6C\x5F\x77\x6F\x6F\x63\x6F\x6D\x6D\x65\x72\x63\x65\x5F\x6F\x72\x64\x65\x72\x5F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x64", 10, 1); function unipixel_woocommerce_order_completed($order_id) { if (!$order_id) { return; } $order = wc_get_order($order_id); $currency = $order->get_currency(); $total = $order->get_total(); $transaction_id = $order_id; $tax = $order->get_total_tax(); $shipping = $order->get_shipping_total();  $hashedEmail = $order->get_billing_email(); $hashedPhone = $order->get_billing_phone();   if ($hashedEmail) { $hashedEmail = hash("\x73\x68\x61\x32\x35\x36", strtolower(trim($hashedEmail))); } if ($hashedPhone) { $hashedPhone = hash("\x73\x68\x61\x32\x35\x36", preg_replace('/[^0-9]/', "", $hashedPhone));  }  $items = array(); foreach ($order->get_items() as $item_id => $item) { $product = $item->get_product(); $items[] = array( 'item_id' => $product->get_id(), 'item_name' => $product->get_name(), 'quantity' => $item->get_quantity(), 'price' => $item->get_total() ); }  wp_localize_script("\x75\x6E\x69\x70\x69\x78\x65\x6C\x2D\x63\x6F\x6D\x6D\x6F\x6E", "\x55\x6E\x69\x50\x69\x78\x65\x6C\x4F\x72\x64\x65\x72\x44\x61\x74\x61", array( 'currency' => $currency, 'value' => $total, 'transaction_id' => $transaction_id, 'tax' => $tax, 'shipping' => $shipping, 'items' => $items, 'hashedEmail' => $hashedEmail,  'hashedPhone' => $hashedPhone  )); } 