Solved

Site speed issue when running pop up A/B test

  • 22 April 2022
  • 1 reply
  • 187 views

Hi all,

Wanted to run a few A/B tests on various pages with different types of popup offer, to see what content works best on blog vs. product page.

We’ve had a few site speed issues recently and our dev suggested that it might be due to the Klaviyo tech in the background used to generate different versions of pop-ups.

Has anyone had anything similar like this occur and if so how did you fix it? 

Cheers

icon

Best answer by stephen.trumble 22 April 2022, 18:03

View original

1 reply

Userlevel 7
Badge +60

Hey @Tom2 

Welcome to the Klaviyo Community! Thank you for coming to the community to ask your question.

What integration are you using for your site? Klaviyo’s JavaScript onsite tracking is loaded asynchronously. This means it will not block other aspects of your site from loading. However, Google’s PageSpeed Insights and other site speed reports may still flag it as a contributing factor in your site’s load times. However, the more signup forms you have per page the slower the signup forms will load. One thing you can do to try to improve your page load speed by unchecking the automatic injection of the onsite script and Manually Install klaviyo.js for Shopify Stores to your theme.liquid file before the closing </body> tag. Here's your script required for manual installation: 

<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=COMPANYID"></script>

 Hope this helps! Thank you for being part of the Klaviyo Community!

Reply