Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Sap hybris profile quickstart #19

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
24af679
SAP Hybris Profile Quickstart
Jun 1, 2017
01bb8ab
Updated readme.md
aartek Jun 1, 2017
fc53c33
Improved 409 error handling
aartek Jun 2, 2017
fbd6532
Improved 409 error handling
aartek Jun 2, 2017
c27134c
Added cookie consent, profile toolbox and updated layout.
aartek Oct 3, 2017
98b571a
Updated service urls, changed consent cookie bar layout
aartek Oct 6, 2017
2e7d07e
Removed unused dependency
aartek Oct 6, 2017
1be7369
Review changes
aartek Oct 9, 2017
cc27ff5
Review changes
aartek Oct 9, 2017
aa2efe0
Jshint
aartek Oct 9, 2017
3c85a09
Review changes
aartek Oct 9, 2017
241e48a
Review changes
aartek Oct 9, 2017
8384e46
Fixed command
aartek Oct 9, 2017
11227cd
Added warning message
aartek Oct 9, 2017
f72c243
Merge pull request #1 from hybris/Profile_Quickstart_2_0
golojg Oct 9, 2017
f1ab7e8
Fixed Quick Start Guide url
aartek Oct 11, 2017
25ee4d9
Added quickstart guide
aartek Oct 11, 2017
da6553e
Added quickstart guide
aartek Oct 11, 2017
e4c7b95
- Fixed getting consent reference (blocked getting consent after each…
aartek Oct 16, 2017
1c5088d
Merge pull request #2 from hybris/bug-fix/2890
sebarys Oct 16, 2017
7b51c22
- Added ProfileTagConfiguration
aartek Oct 25, 2017
bc80d45
updated readme
aartek Oct 25, 2017
b71d956
Updated Quickstart.md
aartek Oct 26, 2017
5b6fe32
Updated Quickstart.md
aartek Oct 26, 2017
8298944
Merge pull request #3 from hybris/Quickstart_with_ProfileTag
golojg Oct 26, 2017
713fea9
Added Demo Toolbox integration
aartek Aug 23, 2018
09e7475
Merge pull request #4 from hybris/demo_toolbox_integration
adamdyga Sep 4, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions Quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Profile Quick Start Guide
## Step 1: Create and configure a YaaS account

This section explains how to create a YaaS account, an organization, and a project.

### Create a YaaS account

To create a YaaS account, follow these steps:
1. Go to the <a href="https://yaas.io">YaaS main page</a>.
2. Select **Register for free** and follow the steps provided in the instructions to complete the registration.

### Create an organization

When your registration is complete, you can create your own organization.

> If you wish to start using SAP Hybris Profile, creating an organization is mandatory.

To set up your organization, follow these steps:
1. Sign in to the https://builder.yaas.io using your YaaS account.
2. Select **Create your own organization**.
3. Provide the name of your organization.
4. Select your country of origin.
5. Click **Try for free** to create a non-commercial organization.

### Create a project

To start using SAP Hybris Profile, you need a project, also known as a tenant. Follow these steps to set up your project:
1. In the Builder, select your organization and click **Create your first project**.
2. Complete the **Display Name** and **Identifier** fields to define your project. Optionally, provide the description of your project.
3. Click **Save** to create your own project.

## Step 2: Subscribe to packages

To use SAP Hybris Profile as described in this document, subscribe your project to the following packages:
1. Profile Core Services
2. Profile Services for Commerce

To subscribe to the Profile Core Services and Profile Services for Commerce packages, follow these steps:
1. In the Builder, select Your Organization > Your Project.
2. Navigate to Administration > Subscriptions.
3. Click Subscribe. The <a href="https://market.yaas.io">YaaS Market</a> opens.
4. Find the Profile Core Services and Profile Services for Commerce packages.
5. To subscribe to the packages, click on the icons representing each, and select Subscribe now.
6. Select a project to subscribe to the packages, and click Continue.
7. Review your order and click Subscribe now.

## Step 3: Set up a simplified storefront

To start using SAP Hybris Profile for the purpose described in this document, you need a storefront. For your convenience, it is recommended that you download and install a simplified storefront version created specially to introduce you to the basic SAP Hybris Profile functionality. The simplified storefront project is located <a href="https://github.com/hybris/yaas-storefront-profile-quickstart/tree/SAP_Hybris_Profile_Quickstart">here</a>.

To download and install the simplified storefront, and parametrize it with your tenant, execute the following commands. Replace the **{tenant}** parameter with your tenant identifier.

> You must have npm and Git installed locally. For more information about installing Git.

```
git clone -b SAP_Hybris_Profile_Quickstart https://github.com/hybris/yaas-storefront-profile-quickstart.git
cd yaas-storefront-profile-quickstart
npm install
npm start -- --pid={tenant}
```

If you are located in the EU region, modify the last command to look as follows:

```
npm start -- --pid={tenant} --region=eu
```

After executing these commands, open the storefront in your browser by clicking the following link: <a href="http://localhost:9000">http://localhost:9000</a>.

> Use this storefront to send basic events such as `PageViewEvent` and `ProductDetailPageViewEvent` to SAP Hybris Profile, track the events in the Trace Explorer, and see the profile document changes caused by the events in the Profile Explorer. For more complex operations, use the [YaaS Storefront](https://github.com/SAP/yaas-storefront). For more details about the YaaS Storefront, and how to set it up, see the <a href="https://devportal.yaas.io/gettingstarted/">Getting Started</a> guide.


## Step 4: Send events

Now that the simplified storefront is installed locally on your machine and ready to use, you can send events to SAP Hybris Profile just by clicking on the storefront.

> The simplified storefront supports three event types only: `PageViewEvent`, `ProductDetailPageViewEvent` and `CategoryPageViewEvent`.

Interactions with the storefront create events. Click on the product of your choice to create a `ProductDetailPageViewEvent`, click on the youtube video link to send a `PageViewEvent`, or switch the category to send a `CategoryPageViewEvent`. The enrichers contained within the **Profile Services for Commerce** package that your tenant is subscribed to react to these events, and introduce changes to the profile.


## Step 5: Track events

You can track the events sent from the storefront to SAP Hybris Profile in the Trace Explorer. Tracking allows you to collect details about the exact time of calls between services, and the duration of specific operations. Additionally, it allows you to detect any latency problems.

> In the simplified storefront version, tracing is enabled by default. Therefore, no action from you is required to activate event tracking.

To navigate to the Trace Explorer, click a **Show the last event in Trace Explorer** link that appears in the SAP Hybris Profile Toolbox each time the storefront sends an event to SAP Hybris Profile.

For example, by clicking on a product in the storefront, you send the `ProductDetailPageViewEvent` to SAP Hybris Profile. This event triggers the specified enricher, which modifies the profile document by adding sections such as `observations`.

## Step 6: View the profile changes in Profile Explorer

The events that you send to SAP Hybris Profile from your storefront trigger the enrichers. Depending on the event type, the triggered enrichers introduce various changes to the profile document.

To navigate to the Profile Explorer, click a **Go to Profile Explorer** link that appears in the SAP Hybris Profile Toolbox each time the storefront sends an event to SAP Hybris Profile.

Alternatively, follow these instructions to trace the path of the event in the Trace Explorer and navigate from there to the Profile Explorer.
1. Go to the Trace Explorer to see the initial logs from context adapters that pre-process the event sent from the storefront before dispatching it to the enrichers.
2. In the **Context Transition** component of the Trace Explorer, click one of the displayed links, which represent a given **contextTraceId**. Each storefront event triggers various enrichers. What you see is a list of enricher-generated logs resulting from the storefront activity.
3. Find the log with a message about profile creation or updation. The log indicates that an enricher created or updated a profile with specified identifier.
4. Click the link in that log to go to the **Profile Explorer** and view the created profile document.

Loading