Tuesday, February 14, 2017

Advanced personalisation in Hybris

Via enabling the advanced personalisation feature there can be a performance degradation in the site depends on the configuration
Personalisation is achieved with the help of the following extensions
   btg - for personalisation
   btgcockpit - for personalisation management via WCMS cockpit
It can be enabled with the help of storefront.btg.enabled property. Upto version 6.0 the extensions are included as part of base accelerator and enabled but the btgcockpit extension is not included.
Along with the above, the following changes need to be added to the web.xml

BTGSegmentFilter
de.hybris.platform.store.web.servlets.BTGSegmentFilter

       
BTGSegmentFilter
/view/*

From version 6.1 onwards btg is not coming up as default feature instead it provided as an add on named b2cbtgaddon
The customer segments can be viewed and edited using the Customer Segment perspective in WCMS cockpit

Step by Step
  1. Open the WCMS Cockpit with Advanced Personalization tool(localhost:9001/cmscockpit)
  2. Select the Customer Segments link from the top left corner (Customer segments normally contains a rules and output action)
  3. Create a new customer segment with name Viewed Beacon Jacket 300441355
    1. Select the catalog version as the staging catalog
    2. Select the store as Apparel Site UK
    3. Select the scope as (Session(D)/Persistent)
    4. Select the mode(Optimized Processing(D)/Full Processing)
  4. Now you will see the Customer segment screen
  5. Add a Customer Segement rule via pressing the + button on right hand side of the Customer Segment Rules session in the screen
    1. Select the type of the Rule(Order Rule/Cart/Customer/Website). We are selecting Website rule
    2. Select the left operand type as 'Has Viewed Products' from first combo box and choose operator as 'contains any'  from second combo box and  type '300441355' in the product text box and select the staging version of the product and press next and press done
  6. Next step is to add the output action
    1. Press the + button on the right hand side of the Output Actions session in the screen
    2. You can select the action(Add user to Group/Show or hide a WCMS Item). We are selecting Show or hide a WCMS Item
    3. Type Mini Cart - APP-S in in the WCMS Component and press next
    4. Select the 'should not see this WCMS Component' radio button and press next and done
  7. Press the Customer Segments Tab and you will see the newly created customer segement
  8. This is created in the staging area and press the synchronize button(a red button just left above to the customer segment) to synchronize the catalog
  9. Once you press synchronize the system create another customer segment on online version
  10. Now go to front end and select any product or any other page. You will see the mini basket
  11. As soon as you press the Glazier jacket product view the min basket component disappear from the page

2 comments:

  1. Hi Sukesh, this blog is very usefull for hybris developers, the above article is very helpfull.
    i have done all the steps mentioned above but i can not see the synchronize option after creating the customer segment could please help me on this.

    ReplyDelete
  2. Very nice blog... Thanks for sharing complete steps about personalization tool. I found this information very helpful.

    ReplyDelete