I am trying to pull url parameters from AdWords and replace them on the landing page content using Ruby on Rail Radiant CMS.
For example if the URL from AdWords was: www.example.com/?keyword={keyword}&{copy:matchype}
I want to pull out {keyword} on the landing page that says something like :
"Looking for {keyword}? we can help?"
I think this is possible using something like:
<% if params[:keyword] %>
Looking for "<%= params[:utm] %>"? we can help
<% end %>
Some help would be great.
Thanks
That's easy:
In a nutshell: if the keyword is present as a parameter, then display it with the desired text.