13.6 End-to-end scenario

13.6.1 Start Azure Event Hub trigger

To show the payload send by Adobe Experience Platform Real-time CDP to our Azure Event Hub upon segment qualification, we need to start our simple Azure Event Hub trigger function. This function will simple “dump” the payload to the console in Visual Studio Code. But remember this function can be extended in any way to interface with all sorts of environments using dedicated API’s and protocols.

Launch Visual Studio Code and start project

Make sure to have your Visual Studio Code project opened and running

To start/stop/restart your Azure function in Visual Studio Code, refer to the following exercises:

Your Visual Studio Code’s Terminal should mention something similar to this:

[2022-02-23T05:03:41.429Z] Worker process started and initialized.
[2022-02-23T05:03:41.484Z] Debugger attached.
[2022-02-23T05:03:46.401Z] Host lock lease acquired by instance ID '000000000000000000000000D90C881B'.

6-01-vsc-ready.png

13.6.2 Load your Luma website

Go to https://builder.adobedemo.com/projects. After logging in with your Adobe ID, you’ll see this. Click your website project to open it.

DSN

You can now follow the below flow to access the website. Click Integrations.

DSN

On the Integrations page, you need to select the Data Collection property that was created in exercise 0.1.

DSN

You’ll then see your demo website open up. Select the URL and copy it to your clipboard.

DSN

Open a new incognito browser window.

DSN

Paste the URL of your demo website, which you copied in the previous step. You’ll then be asked to login using your Adobe ID.

DSN

Select your account type and complete the login process.

DSN

You’ll then see your website loaded in an incognito browser window. For every demonstration, you’ll need to use a fresh, incognito browser window to load your demo website URL.

DSN

13.6.3 Qualify for your Interest in Equipment segment

Navigate to the Equipment page once, and do not reload or refresh it. This action should qualify you for your --demoProfileLdap-- - Interest in Equipment segment.

6-04-luma-telco-nav-sports.png

To verify, open the Profile Viewer panel. You should now be a member of the --demoProfileLdap-- - Interest in Equipment. If your segment memberships are not yet updated in your Profile Viewer panel, click the reload button.

6-05-luma-telco-nav-broadband.png

Switch back to Visual Studio Code and look at your TERMINAL tab, you should see a list of segments for your specific ECID. This activation payload is delivered to your event hub as soon as you qualify for the --demoProfileLdap-- - Interest in Equipment segment.

When you take a closer look a the segment payload, you can see that --demoProfileLdap-- - Interest in Equipment is in status realized.

A segment status of realized means that our profile hsa just entered the segment. While the existing status means that our profile continues to be in the segment.

6-06-vsc-activation-realized.png

13.6.4 Visit the Equipment page for a second time

Do a hard refresh of the Equipment page.

6-07-back-to-sports.png

Now, switch back to Visual Studio Code and verify your TERMINAL tab. You will see that we still have your segment, but now in status existing which means that our profile continues to be in the segment.

6-08-vsc-activation-existing.png

13.6.5 Visit the Sports page for a third time

If you would revisit the Sports page for a third time, no activation will take place, because there is no state change from a segment point of view.

Segment activations only happen when the segment’s status changes:

6-09-segment-state-change.png

Next Step: Summary and benefits

Go Back to Module 13

Go Back to All Modules

On this page