Details
-
Story
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
-
TANGO | SP_42 | Jul31 - Aug14, TANGO | #43 DEV | Aug14-Aug28
Description
Summary
Currently, the content recommendation feature only works using the default company (virtual instance), this story was created to support different companies to the default company in Content Recommendation. **
NOTE: The description of the story is almost the same as the original, we just have to use a non-default company to validate the story.
Glossary
- Term: a word associated with some content, either as a tag or because the content contains it.
- Terms of interest: a set of terms that have been associated with a visitor by AC, based on his/her navigation history.
- Visitor: is not logged into DXP (regardless if he/she has a user account) (See ---
---)LPS-86252
Initial Setup
- A virtual instance, different from the default one must be created
- A virtual instance, different from the default one must be configured as a Liferay Data Source in Analytics Cloud (https://help.liferay.com/hc/en-us/articles/360006653472-Adding-a-Liferay-DXP-Data-Source)
- Create a content tagged with a term and display it on a display page so that this term is included the information sent by the analytics client:
- Add a display page template
- Add a web content “Sport America News” tagged with the “sport” and “america” tag
- Select the previously created display page template as the display page template for the content
- See detailed steps to create a Display Page at the end.
- Create some term-related content:
- Web content “Olympic Games” tagged with the “sport” tag
- Blog “Superbowl” tagged with the “america” tag
- Create some term-unrelated content:
- Web content “Economics” not containing any tags or words “sport”/”america”
- Blog “Politics” not containing any tags or words “sport”/”america”
- Create a page to display the recommended content:
- Create a dynamic content set (all settings default)
- Add a “home” widget page
- Include an Asset Publisher, and configure to use the created content set
Technical considerations
- It takes up to X mins since a visitor performs an action on DXP and he is segmented by his behavior on Analytics Cloud. Take this into account for the tests.
- The anonymous user identification is preserved even if the browser is closed, as long as the visitor does not log out or the browser local storage is not cleared.
Acceptance Criteria
Note: the following acceptance criteria assume that a virtual instance different to the default one and connected to AC is being used
- Content recommendation is disabled in Collection:
- Given the “Enable Content Recommendation” has been disabled in Collection
- And a visitor that has viewed the content “Sport America News” in its display page
- When the visitor visits the home page
- Then the asset publisher shows all content (term-related and term-non-related)
- Content recommendation is enabled in Collection and the visitor has interests:
- Given the “Enable Content Recommendation” has been enabled in Collection
- And a visitor that has viewed the content “Sport America News” in its display page
- When the visitor visits the home page
- Then the asset publisher shows only the term-related content
- Content recommendation is enabled in Collection and the visitor has no interests (AC returns an empty set of terms of interest):
- Given the “Enable Content Recommendation” has been enabled in the Content Set
- And a visitor that has NOT viewed the content “Sport America News” in its display page
- When the visitor visits the home page
- Then the asset publisher shows all content (term-related and term-non-related)
Creating a Display Page to visualize a Web Content with tags
- Go to Site Builder > Pages > Display Page Templates
- Create a new Display Page Template
- Map it to Web Content Article - Basic Web Content
- Add one or more fragments and map them to the fields of the basic web content
- Publish the Display Page Template
- Go to Content & Data > Web Content
- Add a new Basic Web Content
- Fill in Title and Content
- In the sidebar, go to Display Page Template, and select specific. Choose the display page template created in step 2
- Also, select some tags in Metadata for the Web Content
- Publish the Web Content
- In the kebab for the Web Content, select the option "View Content"
- In the source for the HTML code, search for keywords. The tags will be present
Test Scenarios
AC ID | Test Strategy | Test Scenarios | Is it covered by FrontEnd ? (JS-Unit) | Is it covered by BackEnd? (unit or integration) | Poshi? |
---|---|---|---|---|---|
01 | Medium | Having the Content recommendation not enabled in Collection, when a visitor that has viewed a content in its display page visits the home page, the asset publisher shows all content (term-related and term-non-related) | NO | NO | Is it possible? |
02 | Critical | Having the Content recommendation enabled in Collection, when a visitor that has interests and has viewed a content in its display page visits the home page, the asset publisher shows only the term-related content | NO | NO | Is it possible? |
03 | High | Having the Content recommendation enabled in Collection and in the Content Set, when a visitor that has no interests and has NOT viewed a content in its display page visits the home page, the asset publisher shows all content (term-related and term-non-related) | NO | NO | Is it possible? |
Attachments
Issue Links
- is related to
-
LPS-87232 As a Channel Manager, I want to drive engagement by promoting content relevant to a visitor's interest
-
- Closed
-
-
LPS-118836 Add integration tests for AssetListAssetEntryQueryProcessor
-
- Closed
-