You are here

public static function PixelScriptBuilder::getPixelAddToCartCode in Official Facebook Pixel 7

Same name and namespace in other branches
  1. 8 src/PixelScriptBuilder.php \Drupal\official_facebook_pixel\PixelScriptBuilder::getPixelAddToCartCode()

Gets FB pixel AddToCart code

File

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

Class

PixelScriptBuilder
Pixel object

Namespace

Drupal\official_facebook_pixel

Code

public static function getPixelAddToCartCode($param = array(), $tracking_name = '', $with_script_tag = true) {
  return self::getPixelTrackCode(self::ADDTOCART, $param, $tracking_name, $with_script_tag);
}