Skip to main content
All CollectionsFAQ
How to integrate Miappi with Shopify
How to integrate Miappi with Shopify

Learn how to display user-generated content on your Shopify site using a code snippet.

Toby Britton avatar
Written by Toby Britton
Updated over 3 years ago

According to research by Adweek, websites featuring UGC benefit from a 29% higher conversion rate than those without it. So why not add your most impactful consumer content to your ecommerce web pages to increase traffic and conversions?

To display a user-generated image collected via Miappi Content on your Shopify site, all you need to do is add a code snippet to your site’s templates by implementing the following steps:

  1. Log in to your Miappi Content dashboard

  2. Click on the 'Embed' tab, which can be found on the left-hand side menu

  3. Create an element on the page with the available id 'miappi-frame' and set it to the width/height you'd like to display Miappi at. e.g.

<div id="miappi-frame" style="width: 300px; height: 600px;”></div>

  1. Copy the Miappi body embed code. The code will look something like the following, you should add it just before closing the </body> tag:

<script type="text/javascript">

var _mpi_user = 'YourMiappiUsername';

(function(){

var miappi = document.createElement('script');

miappi.type = 'text/javascript';

miappi.async = true;

var script = document.getElementsByTagName('script')[0];

script.parentNode.insertBefore(miappi,script);

})();

</script>

  1. Log in to your Shopify admin and click 'Online Store'.

  2. Click 'Actions' and then 'Edit code'.

  3. Open your theme.liquid file.

  4. Include the miappi.js script on your page. Paste the Miappi body embed code in the <head> element:

<head>

<script type="text/javascript">

var _mpi_user = 'YourMiappiUsername';

(function(){

var miappi = document.createElement('script');

miappi.type = 'text/javascript';

miappi.async = true;

var script = document.getElementsByTagName('script')[0];

script.parentNode.insertBefore(miappi,script);

})();

</script>

</head>

  1. Click ‘Save’

That’s all there is to it. Get in touch with your account manager if you need help or want to know more.

Did this answer your question?