Bu kodun amacı nedir? Acaba Facebook'a bilgi aktarıp, kullanıcıyı takip eden bir betik mi yoksa site için yararlı işlevi olan bir şey mi?
	
	
	
	
	
		
	
		
			
		
		
	
				
			https://www.yer6store.com/modules/facebookproductad/views/js/pixel.js
		Kod:
	
	/*
* 2003-2017 Business Tech.
*
* @author Business Tech SARL.
* @copyright 2003-2017 Business Tech SARL.
*/
// declare main object of module.
var oPixel = function(sName) {
/**
* addToCart() handle events on the add to cart button (category and product pages)
*
* @param array product.
* @param string sSelectorType.
* @param int id.
* @param bool bPageList.
*/
this.addToCart = function(product, sSelectorType){
// to comment do not forget.
//sSelectorType = "p[id='add_to_cart']>input[type='submit']";
var oClick = jQuery(sSelectorType);
oClick.on('click', function () {
fbq('track', 'AddToCart',
{
content_name: product.content_name,
content_category: product.content_category,
content_ids: product.content_ids,
content_type: product.content_type,
value: product.value,
currency: product.currency.
});
});
};
/**
* addToWishList() handle events on the add to wishlist button (category and product pages)
*
* @param array product.
* @param string sSelectorType.
*/
this.addToWishList = function(product, sSelectorType) {
var oClick = jQuery(sSelectorType);
oClick.on('click', function () {
fbq('track', 'AddToWishlist',
{
content_name: product.content_name,
content_category: product.content_category,
content_ids: product.content_ids,
content_type: product.content_type,
value: product.value,
currency: product.currency.
});
});
}
}
	
			
				Son düzenleyen: Moderatör: