# Search for Product(s)

### Event trigger

* The result page is loaded. Capture the search keyword and products.
* Add this script below the main script in the `header` tag.

```html
<script>
  var url = web_media_template.buildUrlMediaJson(
    "browsing", 
    "product_search", 
    ["div_asm_qct_test_json_1"], 
    {
      items: [
        {
          type: "product",
          id: "12345",
          sku: "12345",
          name: "The Product Title 1",
          original_price: 10000,
          price: 10000,
          page_url: "https://website.com/p.html",
          image_url: "https://website.com/p.png"
        },
        {
          type: "product",
          id: "12345",
          sku: "12345",
          name: "The Product Title 1",
          original_price: 10000,
          price: 10000,
          page_url: "https://website.com/p.html",
          image_url: "https://website.com/p.png"
        }
      ], 
      extra: {
        src_search_term: "Alibaba",
        number_results: 10
      }
    }
  );
</script>
```
