Skip to content

Event Tracking Pixel

The Event Tracking Pixel is a lightweight JavaScript snippet that automatically tracks user interactions on your ecommerce website. Once installed, it continuously feeds Marqo with real customer signals so search results, collection ranking, and personalized recommendations get smarter with every visit. The captured events also power the Analytics dashboard, giving your team a clear view of what shoppers search for, which products they engage with, and where they drop off.

Setup

Step 1: Get Your Customer ID

Contact your Marqo representative to obtain your unique Customer ID. You'll need this to configure the Pixel.

Step 2: Install the Pixel

Add the following script tag to your website's HTML, ideally just before the closing </body> tag:

<script src="https://pixel.marqo-ep.ai/c/YOUR_CUSTOMER_ID/p.min.js" defer></script>

Important: Replace YOUR_CUSTOMER_ID with the Customer ID provided by your Marqo representative.

Once you have it, double-check that your site’s Content Security Policy (CSP) allows the Marqo pixel to load. If you see CSP errors in the browser console (e.g. blocked script or network request), allowlist https://pixel.marqo-ep.ai and https://pixel-ingestion-worker.marqo-ep.ai so the tag can load and send events.

Step 3: Verify Installation

Once the Pixel is installed, you can test it by running the following command in your browser's developer console:

window.MARQO_PIXEL.test()

This will generate and publish a test event. You will be able to confirm it's sent by inspecting the Network tab in your browser's Developer Tools and seeing the https://pixel-ingestion-worker.marqo-ep.ai/ request.

What Gets Tracked

Here's a list of events it can track:

  • Search
  • Collection view
  • Result click (for search or collection)
  • Add to cart
  • Purchase

Support

If you encounter any issues during setup or need assistance customizing the Pixel, please contact your Marqo representative or visit our Support Center.