Complete guide for integrating PureClarity with Drupal using the PHP SDK, including data feeds, JavaScript implementation, and advanced personalization features
As Drupal is a PHP-based platform, you should use our PHP SDK to sync data between your store and PureClarity.
We require the use of JavaScript Snippets on the frontend of your store. These load PureClarity onto each page, and allow PureClarity to track the users actions so their experience is personalized.
Add Zones to relevant pages. Create some HTML div elements for your PureClarity Zones that will show personalized content.
Start with these three basic steps to get PureClarity working on your Drupal site, then implement the advanced features outlined below for maximum personalization impact.
This feed “seeds” PureClarity with existing orders. It allows PureClarity to learn about what products are bought with which other products, and what your existing customers have already purchased so their experience is personalized from day 1.This can be done using the PHP SDK.
This feed allows you to pass custom information you have about your customers to PureClarity. This can be used to help Segment your customers which are used in Campaigns.You can use the PHP SDK to send the User Feed.
If your product catalogue is regularly updated several times a day, then you can use the PureClarity Product Deltas to send up to date product information.You can use the PHP SDK to send the Deltas.
Product deltas ensure your recommendations always show current pricing, availability, and product information without waiting for the next full feed.
If your customers can place orders from another channel for example in a physical store or over the phone – then you can ensure that PureClarity is aware of these orders by sending a daily feed of these offline orders. This means when your customers return to your website, their personalized experience will take into account their offline orders.This can use the same process as the “Historic” orders as outlined above.
PureClarity equivalent: Store ViewWe recommend that your PureClarity setup is the same as your Drupal setup. Therefore if you have 5 Drupal Stores, we recommend you have 5 PureClarity Store Views.
There is an additional charge for having multiple PureClarity Store Views. Each Store View has a separate product data set. Each store view can support multiple currencies. Personalization is unique to each Store View.
PureClarity equivalent: ProductPureClarity operates at the product level. Products are surfaced in recommenders in Zones. Clicking on them will take the user to your product page, which will allow them to select the variant they want to purchase.See the Product Data Feed Overview for more information.
PureClarity equivalent: VariantVariant information is sent over in the PureClarity product feed. The variant record contains details about the variant, and the parent product it is part of. This is used to surface the correct products in the Zones.See the Product Data Feed Overview for more information.
PureClarity equivalent: AttributeProducts and Variants in the PureClarity product feed can contain any attributes from your site. Each record in the product feed will contain all the attributes for that product or variant, with all of the attribute values.PureClarity uses this data in the facets (filters on the search results and product listing pages).The data can also be used in PureClarity templates to control how the Product looks when it is displayed.See the Product Data Feed Overview for more information.
PureClarity equivalent: CurrencyEach product or variant in PureClarity can contain prices in multiple currencies. The PureClarity Currency Tracking Event is used to switch which currency PureClarity is using.
The PureClarity team can provide custom implementation guidance for complex Drupal setups. Contact support for assistance with your specific integration requirements.