Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Conversion Rate Optimization (https://www.warriorforum.com/conversion-rate-optimization/)
-   -   How to dynamically insert Bing ads search term/keyword into landing page? (https://www.warriorforum.com/conversion-rate-optimization/1037988-how-dynamically-insert-bing-ads-search-term-keyword-into-landing-page.html)

user276954 17th January 2015 04:23 PM

How to dynamically insert Bing ads search term/keyword into landing page?
 
I am running a campaign with Bing ads sending visitors to my landing page. I want to make it so that when the person searches for "red widget" and then clicks on my ad, the landing page they are sent to contains the words "red widget" in various places I specify.

I have tried to append ?kw={keyword} to the end of my destination URL in the Bing ads editor but this does not work. With ?kw={keyword} at the end of my destination URL, the page doesn't open and comes back with the following error:

The URI you submitted has disallowed characters.

I fixed this error by going into my config.php file (my site is built on the codeigniter php framework) and allowing ?&= characters. The page still does not work. So now when I am at mysite.com/ladingpage.php?kw=somekeyword the page doesn't work, because there is no such page.

Whenever I can get the page to display with the ?kw= appended, I was going to try and read it with

Code:

<? echo $_GET['kw'] ?>
Can anyone help me out here? Some way to strip off the ?kw=someKeyword and save that as the keyword and then load the landing page without the ?kw=someKeyword appended? This shouldn't be that hard, I watched some youtube videos and read tutorials of people doing exactly what I am doing but it's just not working for me.

user276954 18th January 2015 11:25 AM

Re: How to dynamically insert Bing ads search term/keyword into landing page?
 
Well right now I am looking into Codeigniter being the problem here. Something about the way CI handles a url with parameters. It looks like CI may treat a url with a parameter as a compelte url instead or just loading the original page and separating the params from the url. I spent hours looking into this yesterday and probably several more hours today. If anyone can save me a few hours of research into this problem and provide some insight as to a working solution I would really appreciate it.


All times are GMT -6. The time now is 02:56 PM.