public static function OfficialFacebookPixelInjection::injectNoScriptCode in Official Facebook Pixel 7
Same name and namespace in other branches
- 8 src/OfficialFacebookPixelInjection.php \Drupal\official_facebook_pixel\OfficialFacebookPixelInjection::injectNoScriptCode()
1 call to OfficialFacebookPixelInjection::injectNoScriptCode()
File
- src/
OfficialFacebookPixelInjection.php, line 61 - Contains \Drupal\official_facebook_pixel \OfficialFacebookPixelInjection.
Class
- OfficialFacebookPixelInjection
- Class OfficialFacebookPixelInjection.
Namespace
Drupal\official_facebook_pixelCode
public static function injectNoScriptCode() {
// Inject inline noscript code to head
$pixel_noscript_code = PixelScriptBuilder::getPixelNoscriptCode();
drupal_add_html_head([
'#type' => 'markup',
'#markup' => $pixel_noscript_code,
'#weight' => 1000,
], 'facebook_pixel_noscript_code');
}