Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Script
- id="trustpilot2"
- strategy="afterInteractive"
- dangerouslySetInnerHTML={{
- __html: `
- (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.getElementsByTagName(s)[0];
- f.parentNode.insertBefore(a,f)})(window,document,'script', 'https://invitejs.trustpilot.com/tp.min.js', 'tp');
- tp('register', 'c3STgx2ccx0hlxGf');
- function sendTpInvitation(){
- var trustpilot_invitation = {
- recipientEmail: '${orderInfo.order.email}',
- recipientName: '${orderInfo.order.first_name + " " + orderInfo.order.last_name}',
- referenceId: '${orderInfo.order.id}',
- source: 'InvitationScript',
- };
- tp("createInvitation", trustpilot_invitation);
- }
- if (tp) {
- sendTpInvitation();
- } else {
- document.addEventListener("DOMContentLoaded", function () {
- sendTpInvitation();
- })
- }`,
- }}
- />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement