Hey guys, i wonder if someone could help me out with this.
Im trying to pass a facebook pixel dynamically form the url.
So basically i want to have http://example.com?pixel=123456789
Then the {pixel} below wll be replaced with the pixel in the code below.
Thanks 
<!-- Facebook CONVERSION PIXEL -->
<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;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '{PIXEL}', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev={PIXEL}&cd[value]=0.00&cd[currency]=EUR&noscript=1" /></noscript>
Easy, php is designed to handle string insertion like this, and getting the variable from the URL is super simple... just change your above script like this - replace {pixel} with <?= $_GET['pixel'] ?>
I'm on my mobile or I'd do it for you, hit me @leeward.bound on skype if you need help implementing
Oh awesome thanks dude. I will try that and add you on Skype as well. 
Did you work it out ok? Make sure the file in the root of your site is called/re 'index.php'
<!-- Facebook CONVERSION PIXEL -->
<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;
}
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', '<?php=$_GET['pixel'];?>', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=<?php=$_GET['pixel'];?>&cd[value]=0.00&cd[currency]=EUR&noscript=1" /></noscript>