Virtual Page View Pixel

Virtual Page View Tracking

If you have virtual page views, e.g. single page apps, AJAX interaction that load content outside of the normal page load cycle, you’ll need to add an additional AJAX response handler snippet. For example, if you have a link to a category or product page, which loads via AJAX, you need to add this response handler to the category or product page link. This will trigger a log event to Bloomreach, so we can track the AJAX product page view.

The Bloomreach pixel requires the Original Ref URL parameter to be sent on all virtual Page Loads.

var br_data = br_data || {};
// Global pixel parameters ...,
br_data.acct_id = "<Bloomreach Provided Account ID>"; 
br_data.ptype = "<Bloomreach Page Type>";
br_data.title = "<title of current page>";
br_data.domain_key = "<Bloomreach Domain Key>"; 
br_data.view_id = "<Bloomreach View ID>";
br_data.user_id = "<Bloomreach User ID>";
br_data.tms = "<Tag Management system to exclude during transition>"
// Add additional Product, Category, Search or Conversion specific pixel parameters
// here ...
// this parameter is required on all Virtual Page Loads
br_data.orig_ref_url = location.href;

Virtual Page Load Variables

VariableValue type, exampleDescription
br_data.orig_ref_urlstring, ""Referring URL.
br_data.user_idstring, "947345478564"If you track users via a universal customer ID, populate this parameter with that ID. This should be an anonymized string and should not contain the user's email or other personally identifiable information.

This parameter is only required if you track users via a universal customer ID. This will allow Bloomreach to recognize users in a way that is aligned with your system for various personalization features.

If you do not track users this way, leave this blank. Read more on the recommended implementation.