Changeset 2243986
- Timestamp:
- 02/13/2020 04:06:33 PM (6 years ago)
- Location:
- brainity-boost-ads/trunk
- Files:
-
- 3 edited
-
brainity.php (modified) (2 diffs)
-
pixel/FacebookWordpressPixelInjection.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
brainity-boost-ads/trunk/brainity.php
r2159026 r2243986 9 9 Author: Brainity 10 10 Author URI: https://www.brainity.co 11 Version: 1.0. 111 Version: 1.0.2 12 12 */ 13 13 … … 23 23 define('WPBRAINITY_PLUGIN', 'wp-brainity'); 24 24 //URL API 25 define('WPBRAINITY_API_URL', 'https:// shopify.brainity.co');25 define('WPBRAINITY_API_URL', 'https://app.brainity.co'); 26 26 //URL APP 27 define('WPBRAINITY_APP_URL', 'https:// shopify.brainity.co');27 define('WPBRAINITY_APP_URL', 'https://app.brainity.co'); 28 28 29 29 global $brainity_db_version; -
brainity-boost-ads/trunk/pixel/FacebookWordpressPixelInjection.php
r2148286 r2243986 67 67 public function injectPixelNoscriptCode() 68 68 { 69 if ( 70 (isset(self::$renderCache[0]) && 71 self::$renderCache[0] === true) || 72 empty(FacebookPixel::getPixelId()) 73 ) { 74 return; 75 } 69 76 echo(FacebookPixel::getPixelNoscriptCode()); 70 77 } … … 75 82 public function inject_view_content_event() 76 83 { 84 if ( 85 (isset(self::$renderCache[0]) && 86 self::$renderCache[0] === true) || 87 empty(FacebookPixel::getPixelId()) 88 ) { 89 return; 90 } 77 91 global $post; 78 92 $product = wc_get_product($post->ID); … … 104 118 public function inject_view_category_event() 105 119 { 120 if ( 121 (isset(self::$renderCache[0]) && 122 self::$renderCache[0] === true) || 123 empty(FacebookPixel::getPixelId()) 124 ) { 125 return; 126 } 106 127 global $wp_query; 107 128 … … 148 169 public function inject_add_to_cart_redirect_event() 149 170 { 171 if ( 172 (isset(self::$renderCache[0]) && 173 self::$renderCache[0] === true) || 174 empty(FacebookPixel::getPixelId()) 175 ) { 176 return; 177 } 150 178 $redirect_checked = get_option('woocommerce_cart_redirect_after_add', 'no'); 151 179 if ($redirect_checked == 'yes') { … … 159 187 public function inject_add_to_cart_event() 160 188 { 189 if ( 190 (isset(self::$renderCache[0]) && 191 self::$renderCache[0] === true) || 192 empty(FacebookPixel::getPixelId()) 193 ) { 194 return; 195 } 161 196 $product_ids = $this->get_content_ids_from_cart(WC()->cart->get_cart()); 162 197 … … 177 212 public function inject_gateway_purchase_event($order_id) 178 213 { 214 if ( 215 (isset(self::$renderCache[0]) && 216 self::$renderCache[0] === true) || 217 empty(FacebookPixel::getPixelId()) 218 ) { 219 return; 220 } 179 221 if (FacebookPixel::check_last_event('Purchase')) { 180 222 return; … … 193 235 public function inject_purchase_event($order_id) 194 236 { 237 if ( 238 (isset(self::$renderCache[0]) && 239 self::$renderCache[0] === true) || 240 empty(FacebookPixel::getPixelId()) 241 ) { 242 return; 243 } 195 244 if (FacebookPixel::check_last_event('Purchase')) { 196 245 return; … … 227 276 public function inject_initiate_checkout_event() 228 277 { 278 if ( 279 (isset(self::$renderCache[0]) && 280 self::$renderCache[0] === true) || 281 empty(FacebookPixel::getPixelId()) 282 ) { 283 return; 284 } 229 285 if (FacebookPixel::check_last_event('InitiateCheckout')) { 230 286 return; … … 250 306 public function inject_subscribe_event($order_id) 251 307 { 308 if ( 309 (isset(self::$renderCache[0]) && 310 self::$renderCache[0] === true) || 311 empty(FacebookPixel::getPixelId()) 312 ) { 313 return; 314 } 252 315 if (!function_exists("wcs_get_subscriptions_for_order")) { 253 316 return; -
brainity-boost-ads/trunk/readme.txt
r2159026 r2243986 4 4 Requires at least: 5.2.1 5 5 Tested up to: 5.2.1 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 82 82 == Changelog == 83 83 84 = Brainity 1.0.2 = 85 86 * Change URLs to connect to manager and only include pixel when is neeed 87 84 88 = Brainity 1.0.1 = 85 89
Note: See TracChangeset
for help on using the changeset viewer.