Announcement

Collapse
No announcement yet.

Integration of trustpilot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Integration of trustpilot

    I have (so far) very good trustpilot reviews and now claimed the account, however as you might guess sellerdeck unsurprisingly is not supported by their widgets.

    Anyone got an easy solution?

    Thanks Ed
    https://www.harrisontelescopes.co.uk/

    Ed Harrison - Menmuir Scotland

    #2
    Add to Head

    Code:
    <script>
    (function(w,d,s,r,n){w.TrustpilotObject=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[])
    .push(arguments)};a=d.createElement(s);a.async=1;a.src=r;a.type='text/java'+s;f=d.g
    etElementsByTagName(s)[0];f.parentNode.insertBefore(a,f)})(window,document,'script'
    ,'https://invitejs.trustpilot.com/tp.min.js ', 'tp');
    tp('register', '#KEY#');
    </script>
    The #KEY# should be replaced by the integration key found provided in Trustpilot Business
    → Integrations → JavaScript Integration (or click here - https://businessapp.b2b.trustpilot.c...rce/javascript)



    Add to Receipt Page Layout (before closing </body> tag)

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsNotPreviewMode%22%20%2f%3e" >
    
    <!-- Create named containers to hold the SellerDeck variable's content -->
    <div id="sdName" style="display: none;"><actinic:variable name="InvoiceName" /></div>
    <div id="sdEmail" style="display: none;"><Actinic:Variable Name="InvoiceEmail"/></div>
    
    <!-- Trustpilot conversion script -->
    <script>
    document.addEventListener('DOMContentLoaded', function() {
    
    // Remove spurious character from SellerDeck variables
    var tpEmail = $("#sdEmail").text()
    tpEmail = tpEmail.replace('Email:','');
    tpEmail = tpEmail.trim();
    var tpName = $("#sdName").text()
    
    const trustpilot_invitation = {
    recipientEmail: tpEmail,
    recipientName: tpName,
    referenceId: '<Actinic:Variable Name="TheOrderNumber"/>',
    source: 'InvitationScript',
    };
    tp('createInvitation', trustpilot_invitation);
    });
    </script>
    <!-- End Trustpilot conversion script -->
    
    </actinic:block>
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment


      #3
      Thanks again Jonathan I'll be in touch regarding this as I will need to I assume remove soapbox.
      https://www.harrisontelescopes.co.uk/

      Ed Harrison - Menmuir Scotland

      Comment


        #4
        You need to be logged in to see this page but there are more widgets than you can shake a stick at and they can all be added to Sellerdeck as you wish

        https://businessapp.b2b.trustpilot.com/trustbox

        If you are on a free account you only get access to two:
        Micro Review Count
        and
        Review Collector
        Jonathan Chappell
        Website Designer
        SellerDeck Website Designer
        Actinic to SellerDeck upgrades
        Graphicz Limited - www.graphicz.co.uk

        Comment


          #5
          Thanks Jonathan, I'll probably upgrade to a paid account to get more options.

          Ed
          https://www.harrisontelescopes.co.uk/

          Ed Harrison - Menmuir Scotland

          Comment

          Working...
          X