This page explains how to check that you’ve successfully set up your website recommendations.
Get the Recommendation ID
In Ometria, go to: Campaigns > Product recommendations > select the recommendation instance you set up.
In the recommendation instance screen, copy the Recommendation ID:
Check your site
Next, go to your website and open your browser console
(In Google Chrome press Command+Option+C (Mac) or Control+Shift+C (Windows, Linux, Chrome OS) and then select the Console tab.)
Type ‘ometria’ into the console and hit Enter.
If a list of properties is returned, as in the example above, this means that the Ometria data API is in place and working.
If an error is returned, e.g.
Uncaught ReferenceError: ometria is not defined
This means that the API is not complete, and tracking won’t work.
Refer back to the setup guide to install it correctly.
Next, paste the following command into the console, replacing the red text in with your Recommendation ID:
ometria.trackRecommendedProductsImpression('188db35f66dab7f57be2dabb091a89cd');
Hit Enter.
This should return ‘undefined’:
If the recommendation isn’t set up correctly, you’ll get the same error:
Uncaught ReferenceError: ometria is not defined
Check your impressions
Go back to Ometria > Campaigns > Product recommendations > View website stats
You can see your impressions, clicks and click through rate for all of your recommendation instances:
Comments
0 comments
Article is closed for comments.