- Impact
- 8
PHP and cookies - is this possible? Please read!
Hi,
OK, so here's what I want to do:
I have a website with several different products for sale on it. I promote the site using PPC. I want to be able to run one PPC ad campaign for the site with normal pricing (let's say each product is $200), and another campaign for the site with sale pricing (sale price of each item is $100). I want to be able to put a cookie on the users computer when they click on the PPC ads for the sale price it displays the sale prices instead of the normal prices.
This should be fairly simple, right?
I know a little PHP and am good with HTML, as I understand it is should function sort of like this:
User clicks on ad for sale price, gets directed to landing page that puts cookie on their computer.
User browses website, wherever there is mention of a price the site checks to see if the user has the cookie, if they do the sale price is shown, if not then the regular price is shown.
Does anyone know of a simple tutorial that would show how to do this? I found a bunch of tutorials showing how to set up the cookie, but none that showed how to get the page to display different messages (prices) based on the cookie being present or not.
If anyone can help I would really appreciate it!
Thanks,
George
Hi,
OK, so here's what I want to do:
I have a website with several different products for sale on it. I promote the site using PPC. I want to be able to run one PPC ad campaign for the site with normal pricing (let's say each product is $200), and another campaign for the site with sale pricing (sale price of each item is $100). I want to be able to put a cookie on the users computer when they click on the PPC ads for the sale price it displays the sale prices instead of the normal prices.
This should be fairly simple, right?
I know a little PHP and am good with HTML, as I understand it is should function sort of like this:
User clicks on ad for sale price, gets directed to landing page that puts cookie on their computer.
User browses website, wherever there is mention of a price the site checks to see if the user has the cookie, if they do the sale price is shown, if not then the regular price is shown.
Does anyone know of a simple tutorial that would show how to do this? I found a bunch of tutorials showing how to set up the cookie, but none that showed how to get the page to display different messages (prices) based on the cookie being present or not.
If anyone can help I would really appreciate it!
Thanks,
George