Skip to main content
Solved

Invalid JSON code

  • March 28, 2022
  • 1 reply
  • 158 views

Forum|alt.badge.img+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 :) ! 

Best answer by Dov

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.

1 reply

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • March 28, 2022

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.