Why we change the Piio Script?

In terms of keep improving and updating Piio, we announce a new Integration Script. This would improve the implementation times, add JS failover to code, and it includes a simple but robust solution in case of infrastructure failure.

What do I need to change?

Please replace the script that includes Piio with the following. Remember to change the Domain Key section for your specific domain key, which is an alphanumeric string of six characters.

<script>(function(i,m,a,g,e) {
    e = i.getElementsByTagName(m)[0], (g = i.createElement(m)).src = "//pcdn.piiojs.com/"+a+"/image.min.js",
    g.onerror = function() {
        (g = i.createElement(m)).src = "https://fs.piio.co/image-failover.min.js",
        e.parentNode.insertBefore(g, e);
    }, e.parentNode.insertBefore(g, e);
}(document, "script", "domain key"));</script>

Please go to your Domain Settings on Piio Dashboard to update the script.      

No action is required if you have any of these integrations:

Remember that the old script had two parts. Delete both, and paste the new script.

Old scripts:

<script>var piioData = …. </script>
<script src="…piio.min.js"> </script>

Support Team

If you have questions or issues, please contact us: [email protected]

Let's build a better Internet together.

Did this answer your question?