Cratejoy Code Snippet
  • 22 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Cratejoy Code Snippet

  • Dark
    Light
  • PDF

Article summary

Installing the RetentionEngine Code Snippet

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

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

Go to your Cratejoy admin panel at my.cratejoy.com and do the following:

  1. Click on "Design"
  2. Click on "Code"
  3. Choose "Edit Live Store"
  4. Click on "html" > "base.html"
  5. Scroll to the bottom of the "base.html" code. You will paste the snippet that you copied from the Retention Engine above "</body>". (Do not worry if your indentation does not look the same as below. It will still work.)
  6. Make sure to click "Save"


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.



Was this article helpful?