Pearl Diver - Correct Lazy Loading for your tracking pixel on your website

Pearl Diver - Correct Lazy Loading for your tracking pixel on your website

Lazy loading is a technique used in software and website development where resources, such as images or data, are loaded only when they are actually needed or requested. Instead of loading everything upfront, lazy loading delays the loading process until the resource is clicked specifically or the user scrolls down the website to the related element to activate it.

In the case of a website, this function reduces initial load time as it only loads elements as consumers are navigating around your site. When it comes to the tracking pixel we have installed, this does not need lazy loading applied as it runs across all pages, and needs to activate in the background. This means it needs to be excluded from lazy loading applying. This will not impact the load time of your website as it is a background process.

You will need to exclude the Pearl Diver tracking pixel from having lazy loading as this  will prevent the data flowing into the Pearl Diver account.

Check for Lazy Loading

  1. Got to the website where you loaded the tracking pixel

  2. Right-click and select inspect from the menu or press the F12 Key

  3. In the elements section, CTRL + F and search for the keyword ‘trovo’ or the id of your tracking pixel - the pixel will look like '<iframe src="https://tag.trovo-tag.com/12345abc4567abc91011edfg123z"'
    OR for the V2 Pixels
    src="https://tag.trovo-tag.com/MISSING-PID?rurl=https.example.com%2F&ref=&v=js-0.1.0&aid=MISSING-AID"

  4. This will highlight the tag as being on the website - If you see the words ‘MISSING’ in the tag, this would indicate it is restricted by lazy loading or has not been installed correctly. It may also take a minute for the page to load this line.

Disable/exclude Lazy Loading

  1. Login to your WordPress dashboard.
  2. On the top bar, hover over WP Rocket and select Settings.
  3. Under Media add an exception for Pearl and Trovo
  4. Click ‘File Optimization (Optimize CSS & JS)’
  5. Scroll down to ‘Excluded JavaScript Files’ and enter the text https://tag.trovo-tag.com/ and https://tag.pearldiver.io/ 
  6. Save Changes
  7.   Check the website again and if you are still having any issues please book a time with us.

    • Related Articles

    • Pearl Diver - How to load the Pearl Diver tracking pixel to your website?

      A tracking pixel is a small piece of code that allows you to gather valuable insights about user behavior on your website, and collect this data. By properly implementing your unique Pearl Diver tracking pixel into your website, you can monitor ...
    • Pearl Diver- Detecting Click Fraud and Bot Traffic (non-human traffic) on your website

      In the digital landscape, ensuring human web traffic is a vital metric for the success of any website. However, the presence of click fraud and bot traffic can significantly skew analytics, compromise advertising budgets, and affect the overall ...
    • Pearl Diver for our Partners - FAQ

      Thank you for choosing to partner with us! As part of our commitment to delivering exceptional support tailored to our partners, we'd like to introduce this specialized FAQ document. While our standard Pearl Diver FAQ addresses general queries, this ...
    • Pearl Diver - Optimizing Results

      Guide to Utilizing and Increasing your Pearl Diver results. There are a couple of common factors which can reduce this percentage listed below. We typically are able to identify 20%-40% of your websites unique USA based visitors. Consent String set ...
    • SEPTEMBER UPDATE - What's New with Pearl Diver?

      We are excited to announce new Pearl Diver updates! Prepare for an enhanced user interface and a solid foundation for exciting upcoming features, all designed to elevate your Pearl Diver experience. Get ready to dive into a whole new world of ...