{"id":414,"date":"2024-10-02T11:09:07","date_gmt":"2024-10-02T09:09:07","guid":{"rendered":"https:\/\/help.pushloop.io\/how-to-install-pushloop-for-amp\/"},"modified":"2024-10-16T12:42:31","modified_gmt":"2024-10-16T10:42:31","slug":"how-to-install-pushloop-for-amp","status":"publish","type":"post","link":"https:\/\/help.pushloop.io\/en\/how-to-install-pushloop-for-amp\/","title":{"rendered":"How to Install Pushloop for AMP"},"content":{"rendered":"\n<p><strong>What is AMP?<\/strong>  AMP (Accelerated Mobile Pages) is a framework created by Google to make websites faster and lighter on mobile devices. It is optimized for performance by limiting the use of custom JavaScript and promoting a simplified site structure. If your site is created entirely with AMP, Pushloop integration requires a specific configuration, different from the standard one.  <\/p>\n\n<p>Here are the steps to install Pushloop on your AMP site.<\/p>\n\n<h2 class=\"wp-block-heading\">1. Registration and Site Creation<\/h2>\n\n<p>Follow the official guide <a href=\"https:\/\/help.pushloop.io\/en\/?p=403\">here<\/a> to create an account and set up your site on Pushloop.<\/p>\n\n<h2 class=\"wp-block-heading\">2. Access to the AMP Integration Section.<\/h2>\n\n<p>After creating the site, instead of using the classic code shown in the &#8220;Manual Integration&#8221; guide, you must follow a specific path for AMP:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>&#8220;Manage Site<\/strong>.&#8221;<\/li>\n\n\n\n<li>Click on the <strong>&#8220;Install&#8221;<\/strong> button corresponding to your site;<\/li>\n\n\n\n<li>On the new page, select <strong>&#8220;AMP Integration.&#8221;<\/strong><\/li>\n<\/ul>\n\n<p>AMP integration is divided into three basic steps:<\/p>\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Adding the Code in the Head<\/strong><\/h3>\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"915\" height=\"159\" src=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step1.png\" alt=\"\" class=\"wp-image-309\" srcset=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step1.png 915w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step1-300x52.png 300w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step1-768x133.png 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/figure>\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<p>At this stage, paste the provided script into the <code>&lt;head&gt;<\/code> section of your AMP site. This code is essential to connect your site to Pushloop and enable notification management. <\/p>\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Configure the AMP Web Push Extension<\/strong><\/h3>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"911\" height=\"381\" src=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step2.png\" alt=\"\" class=\"wp-image-310\" srcset=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step2.png 911w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step2-300x125.png 300w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step2-768x321.png 768w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/figure>\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<ol class=\"wp-block-list\">\n<li>Download the three items needed via the yellow buttons provided in the panel:\n<ul class=\"wp-block-list\">\n<li><strong>AMP Script<\/strong>: This file handles push notifications in the AMP context.<\/li>\n\n\n\n<li><strong>Notification consent page<\/strong>: It will help you manage users&#8217; consent to receive notifications.<\/li>\n\n\n\n<li><strong>Service Worker<\/strong>: This is needed to enable push notifications in the browser.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Once downloaded, upload these files to the root of your site.<\/li>\n\n\n\n<li>After completing these steps, paste the code provided into the <code>&lt;body&gt;<\/code> tag on your site. This code will cause the notification system to start working. <\/li>\n<\/ol>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-vivid-red-color has-text-color has-link-color has-small-font-size wp-elements-262a2d3a647bd252031a146ea72a1aca\"><strong>Note<\/strong>: To accept notifications, since AMP does not allow pop-ups, you must have a non-AMP page open. This requires step 3 <\/p>\n<\/blockquote>\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Add the Enrollment Widget<\/strong><\/h3>\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"910\" height=\"725\" src=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step3.png\" alt=\"\" class=\"wp-image-312\" srcset=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step3.png 910w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step3-300x239.png 300w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/integrazione-amp-step3-768x612.png 768w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/figure>\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n<p>Now you need to add subscribe and unsubscribe buttons, which allow users to subscribe to notifications by opening a non-AMP page:<\/p>\n\n<ol class=\"wp-block-list\">\n<li><strong>Button style:<\/strong> you can customize the appearance of buttons that will otherwise have a standard AMP format. To do this, insert the customization code provided by Pushloop into the <code>&lt;head&gt;<\/code> tag on your site. <\/li>\n<\/ol>\n\n<div class=\"wp-block-columns are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-2a5e97b7 wp-block-columns-is-layout-flex\" style=\"margin-top:var(--wp--preset--spacing--20);margin-bottom:var(--wp--preset--spacing--20);padding-top:0;padding-right:var(--wp--preset--spacing--60);padding-bottom:0;padding-left:var(--wp--preset--spacing--60)\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full has-custom-border is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"342\" height=\"54\" src=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-standard.png\" alt=\"\" class=\"wp-image-313\" style=\"border-radius:10px\" srcset=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-standard.png 342w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-standard-300x47.png 300w\" sizes=\"(max-width: 342px) 100vw, 342px\" \/><figcaption class=\"wp-element-caption\"><em>Standard AMP button<\/em><\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"466\" height=\"112\" src=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-personalizzato-pushloop.png\" alt=\"\" class=\"wp-image-315\" style=\"border-radius:10px;width:249px;height:auto\" srcset=\"https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-personalizzato-pushloop.png 466w, https:\/\/help.pushloop.io\/wp-content\/uploads\/2024\/10\/pulsante-amp-personalizzato-pushloop-300x72.png 300w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><figcaption class=\"wp-element-caption\"><em>Custom Button<\/em><\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\"><\/div>\n<\/div>\n\n<ol class=\"wp-block-list\">\n<li><strong>Subscription button<\/strong>: Visible when the user is not subscribed. Clicking on this button will open a special non-AMP page to allow the user to accept notifications.   <\/li>\n\n\n\n<li><strong>Unsubscribe button<\/strong>: Visible when the user is already subscribed, and is used to turn off notifications.<\/li>\n<\/ol>\n\n<p>The code for the two subscribe and unsubscribe buttons should be inserted at the end of the tag <code>&lt;body&gt;<\/code>, so that they appear at the bottom left when you scroll down the page.<\/p>\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n<p>By following these steps, the Pushloop system for AMP will be properly installed and functioning, allowing your users to sign up and receive push notifications on your AMP site.<\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is AMP? AMP (Accelerated Mobile Pages) is a framework created by Google to make websites faster and lighter on mobile devices. It is optimized for performance by limiting the use of custom JavaScript and promoting a simplified site structure. If your site is created entirely with AMP, Pushloop integration requires a specific configuration, different [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[20],"tags":[],"class_list":["post-414","post","type-post","status-publish","format-standard","hentry","category-settings-and-customizations"],"_links":{"self":[{"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/posts\/414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/comments?post=414"}],"version-history":[{"count":2,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/posts\/414\/revisions"}],"predecessor-version":[{"id":422,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/posts\/414\/revisions\/422"}],"wp:attachment":[{"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/media?parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/categories?post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.pushloop.io\/en\/wp-json\/wp\/v2\/tags?post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}