Cross-site recommendation
It is entirely possible to recommend content across different websites using rek.ai. This functionality can be applied, for instance, between an intranet and an external website, or between a municipal site and a tourism site.
If the websites are not on the same domain, you will need to add them as approved domains in the Dashboard (opens in a new tab) (add them to the project that will fetch the recommendations).
Examples of sites that share the same domain and do not require additional configuration include: site.com
and news.site.com
.
To enable cross-site recommendations, the only parameter that needs to be added is: data-projectid="111111"
, where 111111 is replaced with the project ID of the site from which you wish to fetch recommendations.
The projectid can be found under settings in the Dashboard (opens in a new tab).
Example of cross-site recommendation
This image shows how recommendations from the "Tourist website" (opens in a new tab) can be displayed on the "Municipal website" (opens in a new tab). This so visitors can discover relevant content across the two sites.
Code example
Just add the project id from the site you want to get recommendations from.
<div class="rek-prediction"
data-projectid="111111"
id="news"
data-selector="#news"
data-nrofhits="4"
data-renderstyle="advanced"
data-cols="2"
data-headertext="Recommended"
data-titleheadinglevel="3"
data-titlemaxlength="100"
data-titlefontclass="subheading"
></div>