I have a "thank you" page I show my customers after they successfully convert and place an order.
This thank you page has 2 iframe pixels placed on it.
Both pixels look like this:
I need to create a PHP if statement, so that if there is a certain parameter in the URL, then only one of the pixels will be displayed/fire.
Example:
1. What I have now (2 pixels every time):
2. What I need (only 1 pixel every time):
If the parameter "tid=" is in the URL, then ONLY display pixel number one.
If the URL does not have the "tid=" parameter in it, then only display pixel number two.
This thank you page has 2 iframe pixels placed on it.
Both pixels look like this:
Code:
<iframez src="http://tracking.mydomain.com/aff_goal?a=29&goal_id=37" scrolling="no" frameborder="0" width="1" height="1"></iframez>
Example:
1. What I have now (2 pixels every time):
Code:
<iframez src="http://tracking.mydomain.com/aff_goal?a=29&goal_id=37" scrolling="no" frameborder="0" width="1" height="1"></iframez>
<iframez src="http://tracking.mydomain.com/aff_goal?a=33&goal_id=47" scrolling="no" frameborder="0" width="1" height="1"></iframez>
2. What I need (only 1 pixel every time):
If the parameter "tid=" is in the URL, then ONLY display pixel number one.
If the URL does not have the "tid=" parameter in it, then only display pixel number two.