How do I customize the post-purchase review email code?

To properly implement the TrustedSite Reviews post-purchase emails, you will need to customize the javascript code. We offer apps for some of the most popular e-commerce platforms which can greatly simplify this step. Click here to learn more about our apps and integrations.

If you're directly adding the code to your site, you'll need to identify the highlighted parts of the code below. Please note that this is the same code used for the McAfee SECURE Identity Protection service. It can be accessed on the ID Protection page of your account.

While the exact procedure may vary depending on your site's infrastructure, you can use the two examples below as a general guidance for how to customize the code: 

Ruby
<script src="https://cdn.ywxi.net/js/conversion.js"
  class="mcafeesecure-track-conversion"
  data-type="purchase"
  data-orderid=“<%= current_user.last_order_id %>”
  data-email="<%= current_user.email %>"
  data-firstname="<%= current_user.first_name %>"
  data-lastname="<%= current_user.last_name %>"
  data-country="US"
  ></script>

PHP:
<script src="https://cdn.ywxi.net/js/conversion.js"
  class="mcafeesecure-track-conversion"
  data-type="purchase"
  data-orderid=“<?php current_user.last_order_id ?>”
  data-email="<?php current_user.email ?>”
  data-firstname="<?php current_user.first_name ?>”
  data-lastname=“<?php current_user.last_name ?>”
  data-country="US"
  ></script>


Have more questions? Submit a request
Powered by Zendesk