Track impressions of Ajax-loaded products

Home » Support » Docs » Track impressions of Ajax-loaded products

By default Full Picture tracks product impressions but if you load additional product teasers via ajax (to get the effect of inifinite product list) their impressions will not be automatically tracked.

Fortunately, there is an easy way to fix that.

All you need to do is to fire these 2 scripts.

The script below needs to be fired before the new products get loaded on the page:

let ajx_fupi_woo_teasers_data = FP.findAll('.fupi_prod_teaser_data');

ajx_fupi_woo_teasers_data.forEach( teaser => {

And this script needs to fire right after they load:

FP.track( 'woo product impressions', 'list item view', 'instant' );

If your store is not using any type of ajax loaded product lists yet, I recommend you use a free plugin Load More Products by BeRocket.

It already has special fields in which you can paste these scripts.