Solved

Invalid JSON code

  • 28 March 2022
  • 1 reply
  • 102 views

Badge +2

Hi There

 

I’m trying to embed a Klaviyo sign up form onto my shopify webiste

 

This is the code needed..

 

"<div class=""klaviyo-form-YtaTma""></div>"

 

however shopify is saying the JSON code is invalid - help pls :) ! 

icon

Best answer by Dov 28 March 2022, 20:20

View original

1 reply

Userlevel 7
Badge +61

Hi @Natalie Perks,

Thanks for sharing this with the community.

It looks like you have two sets of double quotes around the klaviyo-form-YtaTma portion of your snippet. You should only have one set of double quotes around that portion of the snippet.

Here’s an example taken from our help documentation:

I hope that helps resolve the issue.

Reply