Skip to content

Integration of YooChoose, a content recommendation solution, into eZ Platform

Notifications You must be signed in to change notification settings

clash82/EzSystemsRecommendationBundle

 
 

Repository files navigation

Recommendation Bundle

This bundle integrates Recommendation services into eZ Platform. It supports the YooChoose recommender at this moment.

Work in progress This Bundle is work in progress, and support is restricted to pull request (contribution) directly on this repository until it reaches v1.0. After that, it will offically be supported by eZ for users with eZ and Yoochoose subscription.

Requirements

  • PHP 5.4.4
  • eZ Publish 5.4/2014.11 or above, with the REST API configured to use sessions and publicly open to the YooChoose servers.
  • A YooChoose license

This bundle is independent from legacy's ezrecommendation extension, and doesn't require it.

Installation

This package is available via composer, so the instructions below are similar to how you install any other open source Symfony Bundle.

Run the following from your eZ Publish installation root (pick most recent release, example here is last one as of this writing):

php composer.phar require ezsystems/recommendation-bundle:0.1.*@rc

Enable the bundle in ezpublish/EzPublishKernel.php:

$bundles = array(
    // existing bundles
    new EzSystems\RecommendationBundle\EzSystemsRecommendationBundle()
);

Configuration

The bundle's configuration is siteaccess aware. This is an example of settings:

ez_recommendation:
    system:
        default:
            yoochoose:
                customer_id: "12345"
                license_key: "1234-5678-9012-3456-7890"
            server_uri: "http://example.com"

yoochoose.customer_id and yoochoose.license_key

These are your YooChoose customer ID and license keys.

server_uri

The URI your site's REST API can be accessed from.

[advanced] ez_recommendation.api_endpoint

This will set the URI used for the YooChoose backend. Changing it without a valid reason will break all calls to yoochoose. It can be useful to test the API by mocking the service.

Usage

Initial setup

Your content structure must be mapped to the YooChoose domain model. This must be done in collaboration with YooChoose.

Indexing

Public content is automatically indexed. When necessary, eZ Publish will notify YooChoose of changes to content. Initial import is to be managed with your YooChoose sales representative. Note that your server's REST API will need to be open to the YooChoose servers for indexing to be possible.

Tracking

Events from the site needs to be sent to YooChoose so that recommendations can be adapted to visitors. Tracking can be setup in multiple ways, depending on anyone's constraints.

You can find more information on the YooChoose documentation, about tracking in general, and about the generic asynchronous javascript tracker.

The item id

The ItemId mentioned throughout this documentation is usually set to the viewed ContentId. Depending on requirements, it can be set to a different value, in collaboration with YooChoose.

Troubleshooting

Most operations are logged via the ez_recommendation Monolog channel. To log everything about Recommendation to dev.recommendation.log, add the following to your config.yml:

monolog:
    handlers:
        ez_recommendation:
            type:   stream
            path:   "%kernel.logs_dir%/%kernel.environment%.recommendation.log"
            channels: [ez_recommendation]
            level: info

You can replace info by debug for more verbosity.

About

Integration of YooChoose, a content recommendation solution, into eZ Platform

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%