Advertisement
vallec

Untitled

Jun 11th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <Script
  2. id="trustpilot2"
  3. strategy="afterInteractive"
  4. dangerouslySetInnerHTML={{
  5. __html: `
  6. (function(w,d,s,r,n){w.TrustpilotObject=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)};
  7.  
  8. a=d.createElement(s);a.async=1;a.src=r;a.type='text/java'+s;f=d.getElementsByTagName(s)[0];
  9. f.parentNode.insertBefore(a,f)})(window,document,'script', 'https://invitejs.trustpilot.com/tp.min.js', 'tp');
  10. tp('register', 'c3STgx2ccx0hlxGf');
  11.  
  12. function sendTpInvitation(){
  13. var trustpilot_invitation = {
  14. recipientEmail: '${orderInfo.order.email}',
  15. recipientName: '${orderInfo.order.first_name + " " + orderInfo.order.last_name}',
  16. referenceId: '${orderInfo.order.id}',
  17. source: 'InvitationScript',
  18. };
  19.  
  20. tp("createInvitation", trustpilot_invitation);
  21. }
  22.  
  23. if (tp) {
  24. sendTpInvitation();
  25. } else {
  26. document.addEventListener("DOMContentLoaded", function () {
  27. sendTpInvitation();
  28. })
  29. }`,
  30. }}
  31. />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement