Title: Custom Javascript not allowed with Google AMP
Last modified: December 2, 2019

---

# Custom Javascript not allowed with Google AMP

 *  Resolved [TableauxAdmin](https://wordpress.org/support/users/tableauxadmin/)
 * (@tableauxadmin)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/custom-javascript-not-allowed-with-google-amp/)
 * Custom javascript does not work with Google AMP. This is happening on three pages
   where Email Encoder is used…
 * <script type=”text/javascript”>(function(){var ml=”4ilbcuxntf%a0.moe”,mi=”179?:
   0<8;32@;56=4?>”,o=””;for(var j=0,l=mi.length;j<l;j++){o+=ml.charAt(mi.charCodeAt(
   j)-48);}document.getElementById(“eeb-608628-801947”).innerHTML = decodeURIComponent(
   o);}());</script><noscript>*protected email*</noscript><br>**Phone:** +1 512 
   926 6346<br>**Fax:** +1 512 926 6347</p>
 * Any way to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/custom-javascript-not-allowed-with-google-amp/#post-12200594)
 * Hey [@tableauxadmin](https://wordpress.org/support/users/tableauxadmin/) – thank
   you a lot for your message!
    Can you tell me if you use a shortcode for encoding
   this content? Within the settings of our plugin at Settings -> Email Encoder –
   you can choose the option to protect your emails without javascript. In that 
   case, we use certain CSS protections, as well as HTML entity encoding, so your
   emails will still be protected. Hope this helps. In case that does not solve 
   the issue feel free to let me know and we will find another solution.
 *  Thread Starter [TableauxAdmin](https://wordpress.org/support/users/tableauxadmin/)
 * (@tableauxadmin)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/custom-javascript-not-allowed-with-google-amp/#post-12201360)
 * No shortcode. We use Page Builder by SiteOrigin to build pages in wordpress if
   that makes a difference. I will try “automatically the best method (excluding
   javascript)” and see what happens.
 * Thanks!
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/custom-javascript-not-allowed-with-google-amp/#post-12201365)
 * sure, just let me know if you have further questions [@tableauxadmin](https://wordpress.org/support/users/tableauxadmin/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Javascript not allowed with Google AMP’ is closed to new replies.

 * ![](https://ps.w.org/email-encoder-bundle/assets/icon-256x256.png?rev=2056506)
 * [Email Encoder - Protect Email Addresses and Phone Numbers](https://wordpress.org/plugins/email-encoder-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-encoder-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-encoder-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/email-encoder-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-encoder-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-encoder-bundle/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ironikus](https://wordpress.org/support/users/ironikus/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/custom-javascript-not-allowed-with-google-amp/#post-12201365)
 * Status: resolved