ReCharge Code Snippet
  • 22 Oct 2020
  • 1 Minute To Read
  • Contributors
  • Print
  • Share
  • Dark

ReCharge Code Snippet

  • Print
  • Share
  • Dark

Installing the RetentionEngine Code Snippet

The final step to integrating the RetentionEngine with a ReCharge based app is to paste the RetentionEngine Code Snippet onto your website.

Step 1: Locating the Code Snippet

You can find the Code Snippet in the RetentionEngine dashboard under the "Settings" tab. You have the option to either install either the Default Experience or the Embed Experience (available on Premium or as an add-on) to your site.

Once you've copied the Code Snippet you'll be using, you'll be able to paste it into your application using the next set of instructions. 

Step 2: Paste the Code Snippet

Need extra help?
If you're having trouble and use Shopify, we can take care of this last step for you! Add a Bellwethr team member as a Shopify partner that has only permission to edit the theme, which will allow us to safely edit your Shopify site without revealing any sensitive information about your business.

Team Member to Add: Tapiwa Mapfundematsva,

Log into your Shopify admin panel. Once there, you should click on the "Online Store" tab in the left menu. 

Go to your Shopify admin panel and do the following:

  1. Click on "Themes"
  2. Click on "Actions > Edit Code" for your Live Theme.

  3. Click on "theme.liquid" under "Layout".  Paste the snippet above the `</body>` and the`</html>` tag.
If you are switching between the Default and iFrame Experience: 
Make sure you've only pasted one RetentionEngine Code Snippet in your code. If you're switching between experience types, you can simply replace the existing code with the new one.


If you're on Recharge Pro:
Send a message to or reach out to us via chat. We need to make a slight adjustment to the code snippet to ensure that it works for your storefront.

Check Your ReCharge Settings

If you're not using ReCharge Pro or the Novum theme, then you'll need to make sure the customer portal is set to "Legacy storefront" and the customer portal location is set to "Embedded in platform storefront". 

  1. Go to your Recharge app.
  2. Click on the tool icon and choose "Customer portal".
  3. Select "Legacy Storefront" under customer portal and select "Embedded in platform storefront" under customer portal location. 
  4. Scroll down and click "Save".
Was This Article Helpful?