Testing TrustedSite on your site is a great way to see the full value of the service. Many sites have seen significant conversion rate increases by implementing TrustedSite trustmarks.
Check out our comprehensive guide on testing TrustedSite as well as our best practices for placing trustmarks on your site.
When implementing via your preferred A/B testing software, the following can be used to load the TrustedSite main code for the selected audience:
var t = document.createElement('script');
t.setAttribute("type", "text/javascript");
t.setAttribute("id", "trustedsite-code"); //optional
t.setAttribute("src", "https://cdn.ywxi.net/js/1.js");
document.getElementsByTagName("head")[0].appendChild(t);
Tips for specific tools
Optimizely
Optimizely
If you’ve decided to test TrustedSite in-house with Optimizely, here are a few tips.
Ensure that Optimizely is correctly implemented
Optimizely recommends adding installing the JavaScript directly rather than via a Tag Manager
Google Optimize
Google Optimize
If you’ve decided to test TrustedSite in-house with Google Optimize, here’s how to get started.
Learn how to get started here
We recommend installing the anti-flicker snippet as well
VWO
VWO
If you’ve decided to test TrustedSite with VWO, start by following the VWO installation guide.