Comments

4 comments

  • Logan Mcbride

    Hi Veronica,

    DY does not officially support AMP.

    AMP puts so many restrictions on what can be done, that interacting with any third-party service becomes much more difficult. We do have several clients who have attempted to implemented DY on their AMP sites. One way was to implement the DY scripts inside of an iframe. Another solution was using a proxy to call DY's Personalization APIs and transform the response into something that can be accepted by amp-list.

    I would suggest speaking to your CSM about if either of these approaches makes sense for you.

    Comment actions Permalink
  • Lior Delouya

    Hi Veronica,

    The appropriate way to use DY with AMP, is to use our "pure" Server-Side integration - AKA personalization APIs. You can learn about it here - https://dy.dev/

     

     

    Comment actions Permalink
  • Alexander Mikhaylov

    Logan Mcbride hi, can can you share the details about proxy calls method?

    Comment actions Permalink
  • Logan Mcbride

    Hi Alexander Mikhaylov,

    amp-list allows you to make an XMLHttpRequest, but it expects a very specific format for the response. The idea is that you would build a proxy that calls the DY Personalization APIs outlined here: https://dy.dev/ with all necessary data. For example calling dy-api.com/v2/serve/user/choose to get information about the variation of a test to run on this page. When you get the response back from the DY API, you transform it into something readable by amp-list and send it along. You also need to be able to send the user interaction data to the DY API as well, such as if the user clicked on the tested variation. 

    DY doesn't officially support amp integrations so this proxy would be something you would need to build, or have built for you. I would also highly recommend speaking with your CSM and Technical Account Manager before starting such a project. 

    I hope this is helpful!

    Comment actions Permalink

Please sign in to leave a comment.