Recommendation Quality
At this point you have integrated our
beacon
to your website.We start analyzing your traffic right from the moment we start receiving pageviews, and serve recommendations within 30 minutes. However, we recommend giving 24 or more hours to our system to see improved recommendations.
If the pageview count on our Lab is extremely different from that of your Google Analytics, check out our guide to Debugging analytics discrepancies.
Now that you have setup LiftIgniter, let's start seeing personalized recommendations!
Load up your webpage including our beacon
and open up your internet browser console
to start testing.
2.1 Printing Recommendations
Getting Recommendations
The
fetch
function can be called at most once on each pageview. It should be called exactly once, after all register calls.Separate
register
calls need to be made for each widget that you wish to show on a given pageview.
Copy-paste the following snippet of code into your console to see recommendations.
// Register call to get 100 recommendations for widget 'default-widget'.
// Apply a simple callback to print out the JSON response.
$p('register', {
max: 100, // Large number requested so you can see our full range of items
widget: 'default-widget', // name of widget
callback: function(resp) {
console.log(JSON.stringify(resp, null, 2));
console.log("// TEST.");
}
}
);
// Execute the registered call.
$p('fetch');
You can reference what register
and fetch
does on the SDK Documentations. You will see the list of recommended items with default field
. If you would like to tune the output of the recommendations, please check Checking Data Fields
docs.
If everything worked so far, congratulations!
No recommendations are showing up?
Below are the three most likely reasons.
- Your webpage is not in a format that LiftIgniter recognizes so it couldn't collect any `Inventory Item` from you. In this case check the documentations on [Inventory](https://liftigniter.readme.io/docs/what-liftigniter-scrapes).
- You might be loading our JavaScript twice, which causes our tracker to crash with another instance of itself. Please check Google Tag Manager or other means of inserting our script into the site, and make sure that our script is only being loaded once.
- We are collecting activities but we didn't start accepting you Inventories. In this case, please contact [Support](doc:support).