## **Validation Test Scenarios**
Bloomreach recommends to test the following scenarios to make sure your pixel fires as expected:
### **Test Scenarios: Page View**
** Scenario 1: Add a Product from a Product Page**
**Scenario Flow** | **Expected Result/ Pixels to Fire** | **Additional Verification** |
Start at the Homepage | Homepage Page View Pixel | |
Navigate to a Category Page | Category Page View Pixel | This should be populated with the **cat** and **cat_id** values and the data should be consistent with the feed data. |
Click on a Product to land on the PDP page | Product Page View Pixel | This should be populated with **prod_id**, **prod_name**, and **SKU**, and the data should be consistent with the feed data. |
Add the Product to the cart (from the PDP page) | ATC Event Pixel | 1. Ensure that the **ref** parameter is populated with the referring URL from the Category Page. <br> <br>2.If your site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected). |
Check out the product | Other Page View Pixel On the 'Thank you' page | Make sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach |
** Scenario 2: Add a Product from a Category Page**
This scenario only applies if your site allows a user to add products to a cart from a category page. Skip if this does not apply to your site.
**Scenario Flow** | **Expected Result/ Pixels to Fire** | **Additional Verification** |
Start at the Homepage | Homepage Page View Pixel | |
Navigate to a Category Page | Category Page View Pixel | Make sure that the _**cat**_ and _**cat_id**_ parameter is consistent with the values in the product feed sent to Bloomreach. |
Add two Products from the Category Page <br>to the cart | Two ATC Event Pixels | 1.Ensure that the **ref** parameter is populated with the referring URL from the Home Page. <br> <br>2.If your site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected). |
Check out the products | Other Page View Pixel On the 'Thank you' page | Make sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach |
**Scenario 3: Add a Product from a Collection Page**
This scenario only applies if you have Product Collection Pages. Skip if this does not apply to your site.
**Scenario Flow** | **Expected Result/ Pixels to Fire** | **Additional Verification** |
Start at the Homepage | Homepage Page View Pixel | |
Navigate to a Category Page | Category Page View Pixel | This should be populated with the **cat** and **cat_id** values and the data should be consistent with the feed data. |
Click on a Product Family Page | Product Page View Pixel | This should be populated with **prod_id**, **prod_name**, and **SKU**, and the data should be consistent with the feed data. |
Add two Products from the Product Family Page <br>to the cart | Two ATC Event Pixels | 1.Ensure that the **ref** parameter is populated with the referring URL from the Category Page. <br> <br>2.If your site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected). |
Check out the products | Other Page View Pixel On the 'Thank you' page | Make sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach |
** Scenario 4: Find a product through Organic Search (e.g. Google)**
**Scenario Flow** | **Expected Result/ Pixels to Fire** | **Additional Verification** |
Go to Google (or other search engine) and <br>search for one of your site's products. <br> <br>Click on the product link from Google <br>(or other search engine) | | |
This will bring you to a Product Page (PDP) | Product Page View Pixel | Make sure that the **ref** parameter shows as **Google ** <br>(or the search engine you used to perform the organic search) |
Add the Product to the cart (from the PDP page) | ATC Event Pixel | 1. Ensure that the **ref** parameter shows as **Google** <br>(or the search engine you used to perform the organic search) <br>2. If your site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected). |
Check out the products | Other Page View Pixel On the 'Thank you' page | Make sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach |
**Scenario 5: Add a Product from a filtered Category Page**
**Scenario Flow** | **Expected Result/ Pixels to Fire** | **Additional Verification** |
Start at the Homepage | Homepage Page View Pixel | |
Navigate to a Category Page | Category Page View Pixel | Make sure that the **cat** and **cat_id** parameter is consistent with the crumb values sent to Bloomreach in the product feed. |
Filter the Category Page to find a specific product | **Scenario A:** <br>If there is a full page load after the filter is selected, another Category Page View Pixel is expected to fire. <br> <br>**Scenario B:** If there is no full page load after the filter is selected, but your Category URL changes, another Category Page View Pixel is expected to fire. <br> <br>**Scenario C:** <br>If there is no full page load after the filter is selected and the URL does not change, no additional Page View pixel is expected to fire. | |
Click on a Product from the Search Results Page <br>to go to the PDP page | Product Page View Pixel | |
Add the Product to the cart (from the PDP page) | ATC Event Pixel | If you site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected). |
Check out the product | Other Page View Pixel On the 'Thank you' page | Make sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach |
#### **Scenario 6: View a Content page**
Scenario Flow | Expected Result/ Pixels to Fire | Additional Verification |
Start at the Homepage | Homepage Page View Pixel | View should be present only if applicable. The test fails if **view_id** is present even though it's not required. |
Navigate to content page | Content Page View pixel | If Page View **ptype is content** and has a **catalogs** object, then the referenced catalogs should be valid Content catalogs in CMS accounts/catalogs. <img src="https://files.readme.io/6a6ad3e-Screenshot_2023-02-14_at_3.44.49_PM.png" alt="1346" title="Screenshot 2023-02-14 at 3.44.49 PM.png" class="border" align="" caption="" height="auto" width="600" loading="lazy"> Also, if **catalogs** parameter is not passed, no error message will be shown in the pixel. |