on
09-04-2025
11:46 AM
- edited on
12-04-2025
03:07 PM
by
CommunityMod_WM
This article discusses how to implement the In Real Life (IRL) Gallery and the Shop All Page for Social Essential. To learn more about the IRL Gallery and the Shop All Page, click here.
The IRL Gallery is a JavaScript Snippet designed to pull in image and video content that has been collected from Instagram through a PowerSocial collection campaign. This code can be added to your homepage or any other section of your website where visual content is being featured. The recommended implementations of the IRL Snippet are as follows:
To add the IRL Snippet:
1. Ensure this feature has been enabled for your account. If you are unsure, contact your Implementation Team or Account Team.
2. Identify where on your website you want this code snippet to appear.
3. Install the IRL Snippet container:
<div id="pr-irlsnippet"></div>4. Install the IRL Snippet:
<script src="https://ui.powerreviews.com/stable/4.1/ui.js" async></script>
<div id="pr-irlsnippet"></div>
<script>
window.pwr = window.pwr || function () {
(pwr.q = pwr.q || []).push(arguments);
};
pwr("render", {
api_key: '<API KEY>',
locale: '<locale>',
merchant_id: '<Merchant ID>',
components: {
IRLSnippet: 'pr-irlsnippet',
}
});
</script>
5. Replace the following values with your specific information. Ensure that when you update the values, you remove the carats.
en_US)The IRL Gallery provides you with different options on how to display your image content.
To enable or change your global gallery style:
1. Log in to the PowerReviews Portal.
2. Click Setup in the left navigation menu.
3. Click Display under Custom Features.
Under In Real Life Gallery, select the gallery style you'd like to use and save your selection. Selections made in the Portal impact the global gallery settings, so if you've made specific customizations or overrides on any galleries, they will not be impacted. Changes will be reflected the next time your content refreshes.
Alternatively, you can add a config variable to your PowerReviews JavaScript code to change the gallery style. You will need to add the CD4_IRL_IMAGE_GALLERY_STYLE config variable and provide the gallery style value. These are the available options:
<script src="https://ui.powerreviews.com/stable/4.1/ui.js" async></script>
<div id="pr-irlsnippet"></div>
<script>
window.pwr = window.pwr || function () {
(pwr.q = pwr.q || []).push(arguments);
};
pwr("render", {
api_key: '<API KEY>',
locale: '<LOCALE>',
merchant_id: '<MERCHANT ID>',
CD4_IRL_IMAGE_GALLERY_STYLE: 'GRID_LARGE',
components: {
IRLSnippet: 'pr-irlsnippet',
}
});
</script>
The IRL Snippet can display both Social images (Instagram) and Native images (collected via the Write-a-Review form). To enable Native images, add IRL_SHOWNATIVE: TRUE to your configuration.
Through IRL, you can display shoppable, socially curated image content for specific hashtags and/or category pages. This allows you to create custom galleries anywhere on your website to add very specific social proof and increase engagement.
To enable the IRL Gallery for a specific category or hashtag, add the following data attributes to your page's HTML element:
<div id="irlsnippet" data-pr-category="clothing > tops > jacket" data-pr-hashtags="rivnopowerrevieysjacket,yes"></div>
Enable your customers to submit imagery directly on your website, from their desktop, mobile device, or social media accounts. The content uploaded via this widget will go through the same moderation process as the content collected via Instagram.
Users will have the ability to upload content via:
To enable the Add Your Photo feature, contact your Implementation Team or Account Team.
1. Ensure this feature has been enabled for your account. If you are unsure, contact your Implementation Team or Account Team.
2. Identify where on your website you want this standalone landing page to appear.
3. Install the content container:
<div id="pr-irlsnippet"></div>4. Install the IRL Snippet:
<script src="https://ui.powerreviews.com/stable/4.1/ui.js" async></script>
<script>
window.pwr = window.pwr || function () {
(pwr.q = pwr.q || []).push(arguments);
};
pwr("render", {
api_key: '<API KEY>',
locale: '<locale>',
merchant_id: '<Merchant ID>',
components: {
IRLSnippet: 'pr-irlsnippet',
}
});
</script>
5. Replace the following values with your specific information. Ensure that when you update the values, you remove the carats.
en_US)