M.Shetty
M.Shetty

Reputation: 61

Achieve personalization on AMP pages

How can I achieve personalization on AMP pages? e.g., how to render recommended items (based on personalized content), buyers who bought X also bought Y.

Upvotes: 1

Views: 242

Answers (1)

M.Shetty
M.Shetty

Reputation: 61

We have two options to achieve personalization on AMP :

  1. For small parts of the page, consider using amp-list which is often the best solution. This component makes a call to the server at load time for data to slot into a template. Since this is a call made on load, this is not ideal for large parts of the page, but recommended items are the classic use case for this. Please read amp-list documentation, and credential parameter for more details.
  2. For more deeply personalized content such as the number of items in a cart, shopping cart, "recommended for you", commenting, "like"ing etc, you could combine with amp-access to have a notion of authentication. Please check amp-access component for more details.

AMP By Example's product page sample contains a related products section using amp-list. Here is a link to the source.

Furthermore, to render product list related to user’s past purchases, CLIENT_ID parameter implementation and a careful reading of the Managing non-authenticated user state with AMP document should help.

Upvotes: 3

Related Questions