Last active
August 29, 2015 14:09
-
-
Save dannypage/c93c340e0acfc10933e9 to your computer and use it in GitHub Desktop.
Socialcode Pixel testing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<h2>SC WCA Pixel</h2> | |
<p>Thanks for your help!</p> | |
<script>(function() { | |
var _fbq = window._fbq || (window._fbq = []); | |
if (!_fbq.loaded) { | |
var fbds = document.createElement('script'); | |
fbds.async = true; | |
fbds.src = '//connect.facebook.net/en_US/fbds.js'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(fbds, s); | |
_fbq.loaded = true; | |
} | |
_fbq.push(['addPixelId', '1479200188989568']); | |
})(); | |
window._fbq = window._fbq || []; | |
window._fbq.push(['track', 'PixelInitialized', {}]); | |
window._fbq.push(["track", "ViewContent", { | |
price: [159.00, 29.50, 29.50], | |
product_id: ['TV_123456','CLO-29473856-1', 'CLO-29473856-2'], | |
product_category: ['Electronics > Video > Televisions > Flat Panel Televisions','Apparel & Accessories > Clothing > Pants > Jeans','Apparel & Accessories > Clothing > Pants > Jeans'] | |
}]); | |
window._fbq.push(["track", "AddToCart", { | |
price: [159.00, 29.50], | |
product_id: ['TV_123456','CLO-29473856-1'], | |
product_category: ['Apparel & Accessories > Clothing > Pants > Jeans','Electronics > Video > Televisions > Flat Panel Televisions',] | |
}]); | |
window._fbq.push(["track", "Purchase", { | |
price: 29.50, | |
product_id: 'CLO-29473856-1', | |
product_category: 'Apparel & Accessories > Clothing > Pants > Jeans' | |
}]); | |
window._fbq.push(["track", 1479200188989568, { | |
price: 29.50, | |
currency: USD | |
}]) | |
</script> | |
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=1479200188989568&ev=PixelInitialized" /></noscript> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment