All Collections
General Settings
How to use AMP code on your website
How to use AMP code on your website

Learn how to use AMP on your website for a better user experience on slow connections

Gabriel Carvalho avatar
Written by Gabriel Carvalho
Updated over a week ago

First of all, it is important to understand what AMP is and what it is for:

What is AMP?

AMP is an open-source HTML framework developed by the AMP Open Source Project. It was originally created by Google as a competitor to Facebook Instant Articles and Apple News. AMP is optimized for mobile web browsing and intends to help web pages load faster.

What is the benefit of AMP on your website?

Using AMP, it is possible to create simple mobile websites that load almost instantly.

How to use Live Blog or Live Chat AMP code on your website?

We currently recommend you to use the 2 codes on your website:

  • Embed (Javascript)

  • AMP


  • Iframe

  • AMP

By doing that, the widget will be displayed normally in medium connections and, in case the device is mobile and the connection is slower, the AMP will be activated.

For example, when embedding a Live Chat, you need to insert both codes on your page for it to work perfectly:

Embed (Javascript)

<div class="arena-chat" data-publisher="testjs" data-chatroom="test-global" data-position="bottom"></div><script async src=""></script>

and AMP

<amp-iframe src="" height="600" layout="fixed-height" frameborder="0" sandbox="allow-scripts allow-same-origin allow-popups allow-forms allow-modals"><amp-img src="" layout="fixed-height" height="600" placeholder></amp-img></amp-iframe>

Other ways to use AMP:

How to use AMP in WordPress Classic Editor

WordPress editor itself offers a second field to insert your page's AMP code. So, you can add a Live Blog or a Live Chat.

If your WordPress version doesn't offer this field, just insert the Javascript/Iframe code and AMP in the HTML option of the editor.

We also offer the AMP option in our WordPress plugin, install it now on your website.

Click here to see the other types of embed code you will find at Arena.

Arena Team πŸ™‚

Did this answer your question?