Skip to main content

 I would like to setup a flow so Klaviyo triggers when Trustpilot should send out a service or product invitation to our customers. I have tried to go trough Trustpilots guide but I’m not so sure on how to test it and if its setup correctly. https://help.trustpilot.com/s/article/Use-Automatic-Feedback-Service-with-Klaviyo?language=en_US

Do any of you have experiences setting the Automatic Feedback Service with Klaviyo (AFS) up? 

This should be the code to insert customers information and the product SKUs the customer bought.

<!-- <script type="application/json+trustpilot"> { 
"recipientEmail": "{{ email|default:"" }}",
"referenceId": "{% today "%Y-%m-%d" as today %} {{ today }}",
"recipientName": "{{ first_name|default:"" }}",
"productSkus": ["{{ event.extra.line_items.0.product.variant.sku|default:'' }}"] }
</script> -->

 

Hi ​@Legeakademiet,

Good question! One issue I notice with the code is that it uses <script> tags inside email templates. Our email templates don’t support script tags, because Javascript in emails can often get flagged as suspicious in inboxes. Since Trustpilot created this integration, I’d recommend reaching out to Trustpilot to ask if they have an alternate way of accomplishing this, or if they accounted for the fact that Klaviyo strips script tags from emails.

Let me know if I can answer any other questions about this.


  • Yes, this is a known behavior in Magento where system URLs get passed to Klaviyo instead of the proper SEO-friendly URLs.

  • Magento by default generates both system paths and rewritten SEO URLs, but sometimes integrations only pull the system path.

  • The support is partly correct—many Magento users do face this, especially when using email marketing tools like Klaviyo.

  • The SEO issue here is that system URLs (e.g., /catalog/category/id/6) are not optimized for search engines or user experience.

  • Manually editing the URL in the Klaviyo email template is one workaround, but it’s not scalable for large catalogs.

  • A common solution is customizing the integration so Klaviyo pulls the URL rewrite table (which stores Tow URLs).

  • You can check Magento’s URL Rewrite Management in admin to confirm the correct SEO-optimized links exist.

  • Developers often use Magento’s getProductUrl() function instead of system paths to ensure SEO links are retrieved.

  • This matters because emails with poor URLs can reduce click-through rates and negatively impact SEO performance when shared.

  • If you’re serious about SEO optimization, ensuring that all marketing channels use clean, human-readable URLs is essential.

  • Some Magento-Klaviyo users add middleware or extensions to automatically replace system URLs with SEO-friendly product links.

  • In short: yes, others have encountered this, but with the right SEO customization, you can make Klaviyo pull the proper rewritten URLs instead of editing them manually.