As explained in another article, the Convertize pixel is synchronous to avoid a flickering effect when loading the web page.
However, Convertize does allow the user to change the pixel from synchronous to asynchronous.
Loading the pixel asynchronously
To allow the page to load at the same time as the Convertize pixel, you must add the attribute “async” in the pixel between “
.js” and “
></script>” leaving a white space before “async” as shown below in “Example #2: asynchronous pixel”.
Loading the pixel after the page has loaded
Sometimes you may need to wait for the complete page to load before fetching the Convertize pixel. Both the original code and the asynchronous method mentioned previously will hide the page content as soon as the pixel is retrieved to apply your experiments, then show the content when the page is fully loaded.
However, please note with this method the user is likely to see the original content briefly before the scenario is applied.
Example #1: synchronous pixel (given by Convertize)
<script src="//pixel.convertize.io/1177.js" charset="UTF-8"></script>
Example #2: asynchronous pixel (modified by the user)
<script src="//pixel.convertize.io/1177.js" charset="UTF-8" async></script>
Example #3: long version asynchronous pixel (modified by the user)
If you want to use any of these examples, copy and paste the script given in this article but do not forget to change the number “1177” used in the examples. You should replace it with your personal project number found in the pixel code given to each of your projects.
The first browser versions that fully support the attribute are Firefox 3.6, Internet Explorer 10.0, and all versions of Google Chrome, Safari, and Opera.