Shopify
Documentation for adding Emplifi's Pixlee TurnTo Social UGC to your Shopify store
Browser Compatibility Notice
Firefox currently has compatibility issues with the installation of the plugin. For the purpose of the below instructions, we recommend Chrome or Safari instead. Also make sure your browser settings allow cross site scripting and third party cookies in order to access the app (this situation usually only occurs for Safari).
Prerequisites for Safari
- Make sure that cross site tracking is enabled:
- Open Safari preferences.
- Navigate to the Privacy tab.
- Make sure “Prevent cross-site tracking” is not selected.
- Make sure to disable cross origin restriction:
- First make sure the develop option appears on your menu bar.
- Open Safari Preferences.
- Go to the Advanced tab and select “Show Develop menu in menu bar”.
- Go to the Develop tab in your menu bar and select “Disable Cross-Origin Restrictions”.
Install Emplifi's Pixlee TurnTo Social UGC app to your Shopify Store
In order to add order to add UGC content and analytics to your Shopify store, you will need to install the Pixlee TurnTo Social UGC Application in your Shopify store.
- Log into the Shopify admin panel for your Shopify store
- Search for the Pixlee TurnTo Social UGC Shopify app
- Click install in the app listing and then install the app in your store admin
- Click Install app in your store admin
Configuring your Pixlee TurnTo Social UGC app
Once the app is installed, you will need to enter your credentials in the app configurations in order to connect to your Pixlee account.
-
Open the Pixlee TurnTo Social UGC app in your Shopify store which should open to the app configurations page
-
Enter your *Base websites URL** in the format https://yoursite.com
-
Enter your Pixlee API Shopify Token. See Get your API Keys for help accessing your token
-
Click Save
After successfully saving your URL and Shopify Token, you will be able to access your app's Dashboard page. The app will automatically begin exporting your store's product data to Pixlee. Once this process is complete, you will see a green checkmark next to Products in sync in your Dashboard's Setup section. The rest of the checkmarks will appear within 24 hours of fully implementing widgets and analytics in your store. In case they don't or in the future if they become red for any reason, contact support here.

Analytics
Javascript Analytics
In order to add the required analytics javascript to the store frontend, you must Enable App Embed.
Conversion Analytics
The updated Shopify checkout does not allow script tags or app embed added javascript. In order to capture conversion analytics after upgrading the store checkout, follow the steps below to install the new app web pixel.
The app uses Shopify's web pixel to capture conversion data on order completion. For new installations of the TurnTo Social UGC app, the web pixel is installed when the app is installed. Additional app permissions in Shopify are required to install the pixel and view customer checkout data.
For stores that already have the app installed, the additional app permissions must be approved to install the web pixel.
Steps:
- Open the Pixlee TurnTo Social UGC app in Shopify. For additional instructions, see Shopify's documentation for how to open apps.
The page redirects to the Update data access screen. - Click Update to approve the new permissions.

- From the navigational sidebar, open the Configuration page for the Pixlee TurnTo Social UGC app.
- Click Save in the General section to install the pixel. This process will also update the pixel configuration if necessary in the future.

To disable conversion analytics, contact your customer success manager or support to add the conversion disable flag to the account. After the flag is added, follow the above steps to update the pixel configuration by clicking Save in the app Configuration page.
Enable App Embed
In order to add the javascript required for UGC analytics, you must enable the App Embed in your store's theme.
- In your Shopify store admin, open Sales channels > Online Store in the left navigation panel and select Themes
- In the theme editor, click the App Embed button in the far left nav panel
- Switch on the toggle for Emplifi Analytics/Widget to enable the app embed
Setup Widgets in Pixlee
Once all of your products have been exported to Pixlee, you will be able to set up widgets in your Pixlee account to add to your site.
- Log in to http://pixlee.com
- Navigate to the Publish Center in the top navigation bar
- Customize the widget as desired and save the widget.
Note: We recommend that you leave the "Load Priority" setting to "Low priority" when customizing.
Embedding a PDP, CDP, and Simple Widgets on your site
Steps for Shopify's Theme 2.0 themes
NOTE: Only one widget block of any type can be added to a single page. To add more than one widget to a page, the custom javascript must be added manually.
-
In your Shopify store admin, open Sales channels > Online Store in the left navigation panel and select Themes
-
On the Themes page, click the Customize button for the theme
-
In the theme editor, open the page selector dropdown in the center of the top navigation bar and select the page you want to add the widget to
-
For the PDP widget, select Products > Default Product
-
For the CDP widget, select Collections > Default Collection
-
For Simple widgets, you can select any page
-
-
In the Template section of the editor, click Add Block in section you want the widget to or click Add Section to create a new section with the widget block
-
Once the block is added, click the block to open the block settings
- PDP Widget
- Widget ID - The ID from Publish Center
- CDP Widget
- Widget ID - The ID from Publish Center
- Simple Widget
- Widget ID - The ID from Publish Center
- Fallback Album ID (optional) - Album ID to use if fallback threshold is not met
- Fallback Threshold (optional) - Number of media items in album to use fallback album
- PDP Widget
-
Change widget per market - If your store has multiple markets and you want to have a different widget displayed for each market, you can set a different Widget ID for each market in the theme editor. By default, the Widget ID for the default market will be used for all markets until the value is overridden at the
- On the page where the widget is added, select the appropriate market from the site's frontend market selector
- In the selected market, you should be able to add the Widget ID for that market
- Repeat the steps for each market
- NOTE: Shopify has limitations on block settings that may prevent the settings from showing if the default language is not available for that market. Ex. If the default language is English but the market does not have English as an option.
Steps for vintage themes
After you Setup Widgets in Pixlee, press the "Generate Embed Code" button and you will be presented with an embed code. This script needs to be customized to work on Shopify product pages.
PDP Widget for Product Page
Copy the embed code from above and replace the skuId:"<= ENTER YOUR SKU ID CODE >"
property with ecomm_platform:"shopify"
in the Pixlee.addProductWidget()
function. The resulting code should look like
<div id="pixlee_container"></div>
<script type="text/javascript">
window.PixleeAsyncInit = function() {
Pixlee.init({apiKey:"<ACCOUNT API KEY>"});
Pixlee.addProductWidget({
accountId:<ACCOUNT ID>,
widgetId:<WIDGET_ID>,
ecomm_platform:"shopify"
});
}
</script>
<script src="https://assets.pxlecdn.com/assets/pixlee_widget_1_0_0.js"></script>
CDP Widget for Collection Page
Copy the embed code from above. Replace addProductWidget
with addCategoryWidget
, remove the skuId
and accountId
and replace them with nativeCategoryId:{{ collection.id }},
and ecomm_platform:"shopify"
. The resulting code should look like
<div id="pixlee_container"></div>
<script type="text/javascript">
window.PixleeAsyncInit = function() {
Pixlee.init({apiKey:"<ACCOUNT API KEY>"});
Pixlee.addCategoryWidget({
widgetId:<WIDGET_ID>,
nativeCategoryId:{{ collection.id }},
ecomm_platform:"shopify"
});
};
</script>
<script src="https://assets.pxlecdn.com/assets/pixlee_widget_1_0_0.js"></script>
For Both Widgets
-
Log in to your Shopify store
-
Open Online Store on the left navigation panel and click Themes
-
In Themes, click the ... button next to Customize and select Edit Code from the dropdown.
-
In the editor, scroll down to the appropriate liquid file for where you want to add the widget. Paste the appropriate code snippet created above into the page where you want the widget to show.
-
For PDP Widget, edit
product.liquid
-
For CPD Widget, edit
collection.liquid
-
Adding Comments Widgets
Checkout comment capture is an add-on feature that requires additional account configuration. Contact your customer success manager or support to discuss enabling this feature.
Adding Comment Capture to Checkout
Shopify has removed additional scripts from checkout settings. The legacy comment capture setup using additional scripts will not longer work. Please use instructions below to enable the Comment Capture checkout ui-extension.
-
Open Checkout Thank Your or Order Status page in the Shopify store theme editor by either:
- Going to Settings > Checkout and clicking Customize button under Configurations
- Going Themes under Sales channels > Online Store selecting Checkout and then selecting Thank You or Order Status
-
Click the Apps icon in the far left nav menu
-
Click the + next to Checkout Comment Capture to add the widget to the page
Adding Comments Display to Theme 2.0 PDP
Comments captured during checkout can be displayed on the PDP using the Comment Display widget. The app provides a block that can be easily added to the PDP page.
-
Customize the theme
-
In your Shopify store admin, open Sales channels > Online Store in the left navigation panel and select Themes
-
On the Themes page, click the Customize button for the theme
-
-
Edit the Products page
-
In the theme editor, open the page selector dropdown in the center of the top navigation bar and select Products > Default Product
-
-
Add Emplifi Comments Display app block to desired location
-
In the Template section of the editor, click Add Block in section you want the widget to or click Add Section to create a new section with the widget block. Select the Apps tab and choose the Emplifi Comments Display app block to add it to the page.
-
-
Edit the theme block settings
- Click on the Emplifi Comments Display block to display the default settings
- If necessary, update the Widget Locale and Display Locales. Display Locales should be separated by commas ex:
en_CA, fr_CA
. - onFinish is a javascript function that will be called after the widget loads.
Updated 1 day ago