# Redirect script for Facebook pixel?

**URL:** <https://www.phphelp.com/t/redirect-script-for-facebook-pixel/25066>\
**Category:** General PHP Help\
**Created:** [March 29, 2016, 7:44am UTC](https://www.phphelp.com/t/redirect-script-for-facebook-pixel/25066 "2016-03-29T07:44:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul-ic7](https://www.phphelp.com/user_avatar/www.phphelp.com/paul-ic7/32/1166_2.png) [@Paul-ic7](https://www.phphelp.com/u/Paul-ic7)\
**Post date:** [March 29, 2016, 7:44am UTC](https://www.phphelp.com/t/redirect-script-for-facebook-pixel/25066/1 "2016-03-29T07:44:45Z")

</div>

Hi guys,

I have a website that clicks through to a site I don’t control. So I can’t put a Facebook tracking pixel on that site. BUT I’m assuming I can use a redirect script with the Facebook pixel in it.

So people would click a link on my site, the script would run with the Facebook pixel, and people would end up on the site I don’t control.

Would a script be able to run the Facebook pixel so that Facebook can track it?

Or would it be better to use an intermediary page with a meta redirect? (Of course, that page would have the Facebook pixel on it.)

Thanks, I really appreciate your expertise.
