@graphcommerce/algolia-personalization
v9.0.0-canary.81
Published
An implementation of Algolia personalization/Analytics through the GraphQL Mesh.
Downloads
310
Readme
Algolia Magento 2
An implementation of Algolia personalization/Analytics through the GraphQL Mesh.
Prerequisites
- Make sure you have configured @graphcommerce/algolia-mesh.
- As this is an extension of the google-datalayer. Make sure you have installed @graphcommerce/google-datalayer
Installation
- Find current version of your
@graphcommerce/next-ui
in your package.json. yarn add @graphcommerce/[email protected]
(replace 9.0.0 with the version of the step above)
Configuration
See Config for the configuration values. Add the following to your graphcommerce.config.js:
const config = { // Even if you do not use personalization, enabling analytics still allows you to track events in Algolia. algoliaEnableAnalytics: true, algoliaPersonalizationEnabled: true, }
In your algolia dashboard make sure, you have personalization enabled.
Continue to browse the site, and make sure your events are logged in de event debugger in your algolia dashboard. In the under left corner.
Data Sources > Events > Debugger
. Once you've collected several events, you can start configuring personalizationin
Enchance > personalization
setup the strategies. Note: if you can't find some events, make sure you have send several.