You are here

private static property PixelScriptBuilder::$pixelBaseCode in Official Facebook Pixel 8

Same name and namespace in other branches
  1. 7 src/PixelScriptBuilder.php \Drupal\official_facebook_pixel\PixelScriptBuilder::pixelBaseCode

File

src/PixelScriptBuilder.php, line 49
Contains \Drupal\official_facebook_pixel\PixelScriptBuilder.

Class

PixelScriptBuilder
Pixel object

Namespace

Drupal\official_facebook_pixel

Code

private static $pixelBaseCode = "\n<!-- Facebook Pixel Code -->\n<script type='text/javascript'>\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,'script','https://connect.facebook.net/en_US/fbevents.js');\n</script>\n<!-- End Facebook Pixel Code -->\n";