For our system to be able to properly identify product pages on your Ecomm site, which is key so that ambassadors can pick products from your catalog to feature and display on their storefronts, a Regex for extracting the product id from your Ecomm site's URLs must be configured.
A Regex is an expression which allows for the matching of patterns within text, in this case, matching the product ids on your Ecomm's URLs.
Crafting and debugging Regexes can be complex, so we recommend you fetch a technical person or developer to help you with this task.
Feel free to contact your LoudCrowd Client Strategist if you need assistance
Please continue to read this guide and attempt to follow the given guidance.
However, should you run into any issue do not hesitate to contact your LoudCrowd Client Strategist.
Analyzing your product urls and crafting the Regex
You should get an URL for a product on you Ecomm and analyze it's structure so the product id can be extracted from it.
For example, if a URL for a product on your site is
https://www.mystore.com/us/products/12345678
where 12345678 is the product's id, then a suitable Regex might be
https:\/\/(www\.)?mystore\.com\/us\/products\/([a-zA-Z0-9\-]+)(\?|#|$)
But what if your store has a Canada region, denoted by /ca/ on the url, on which products need to be identified as well, such that the following URL should also detect the product
https://www.mystore.com/ca/products/12345678
in that case this Regex would be more appropriate
https:\/\/(www\.)?mystore\.com\/(us|ca)\/products\/([a-zA-Z0-9\-]+)(\?|#|$)
or even generalized if you have multiple regions which you know are all denoted by 2 letters
https:\/\/(www\.)?mystore\.com\/([a-zA-Z0-9]{2})\/products\/([a-zA-Z0-9\-]+)(\?|#|$)
You need to craft a Regex that is able to capture (using a group capture) the product id from any applicable URL on your Ecomm site that is relevant to your integration.
Configuring the Regex on your integration
After you are done with crafting and debugging your Regex, you just need to configure it on the appropriate field on the integration.
Provided that the supplied Regex is correct, now the system should be able to properly identify products on your Ecomm site for the purposes of product picking.
Note that product picking might still not work if product sourcing is not yet properly configured, as the system might be able to identify the product ids on the URLs now, but if the products are not yet on our system they won't be available for product picking.