Salesforce B2C Commerce provides an easy way to manage Pay Per Click (PPC) URLs. You don't have to specify a separate URL for each query made by Google or other search engines. Instead, you can map the query generated by Google to a relevant landing page in B2C Commerce automatically. The URL-mapping feature enables you to pass the keyword in the Google query to the Search-Show pipeline, which directs the customer to a page with search results based on the query. The Search-Show pipeline also detects if you have created a search redirect for the term and shows the related landing page for that redirect.
This example assumes that you are managing PPC URLs in Google, through the keyword insertion
feature in AdWords, part of Google's "ValueTrack" system. Although this example is specific
to Google, the same principles apply for Yahoo or any other search engine This means that
you are passing the keyword
parameter as part of the URL.
Trapping Keywords in AdWords with Destination URLs That Use Pipelines
You can define your AdWords PPC ad with a
destination URL that includes the search term, using the Google AdWords
keyword
parameter to insert the keyword.
www.domain.com/on/demandware.store/Sites-SiteGenesis-Site/en_GB/Search-Show?q={keyword}
Trapping keywords with B2C Commerce mapping Rules
Instead of specifying a B2C Commerce URL as your AdWords destination URL, you can manage AdWords URLs with finer control using B2C Commerce mapping rules. You can specify mapping rules to trap certain keywords and direct them to explicit landing pages or a catch-all for unmerchandised search terms.
In the example below, when customers
search for Sony Bravia
they are sent to the Search-Show
pipeline, which shows the search results for a keyword search of
sony bravia
. When customer searches for
lcd
they are sent to the category page for flat screen
TVs. The last mapping rule is a catch-all that identifies any incoming
AdWords URLs that don't have a specific mapping rule and redirects it to
the Search-Show pipeline so that customers see the search results for the
search term they entered.
www.domain.com/adwords?q={keyword}
/adwords?sony%20bravia p,,,Search-Show?q=sony%20bravia
/adwords?lcd p,,,Search-Show?cgid=electronics-televisions-flat-screen
/adwords?** p,,,Search-Show,q,{q}