Skip to main content
Solved

Site speed issue when running pop up A/B test

  • April 22, 2022
  • 1 reply
  • 280 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

Best answer by stephen.trumble

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!

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

stephen.trumble
Community Manager
Forum|alt.badge.img+60
  • Community Manager
  • 1518 replies
  • Answer
  • April 22, 2022

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!