# Code injection (json-ld script) doesn't save

**URL:** <https://forum.ghost.org/t/code-injection-json-ld-script-doesnt-save/2388>\
**Category:** Developer help\
**Created:** [August 11, 2018, 10:45pm UTC](https://forum.ghost.org/t/code-injection-json-ld-script-doesnt-save/2388 "2018-08-11T22:45:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meneame](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@meneame](https://forum.ghost.org/u/meneame)\
**Post date:** [August 11, 2018, 10:45pm UTC](https://forum.ghost.org/t/code-injection-json-ld-script-doesnt-save/2388/1 "2018-08-11T22:45:56Z")

</div>

Hi Ghost team!

Hoping someone can point me in the right direction. We’re trying to integrate a as a code injection to some articles in our blog.

Some of these articles are reviews, so we want them to appear with the stars in Google search, thus, we’re hoping to use rating snippets on our blog.

When we enter the code, it will simply say “Saving failed: Unknown Error”. Doesn’t seem to throw anything else anywhere.

We tried the different methods we found here: [https://daodecode.com/2017/10/12/review-with-rating-snippets-on-ghost-blog/](https://daodecode.com/2017/10/12/review-with-rating-snippets-on-ghost-blog/) - but neither worked.

Hoping someone can point me in the right direction?

We just updated to the latest version 1.25.4 - casper theme with some CSS modifications. It didn’t work either on the previous version 1.19.0

---

<div class="post-metadata">

**Author:** ![meneame](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@meneame](https://forum.ghost.org/u/meneame)\
**Post date:** [August 11, 2018, 11:19pm UTC](https://forum.ghost.org/t/code-injection-json-ld-script-doesnt-save/2388/2 "2018-08-11T23:19:33Z")

</div>

Ok, I figured out the problem, after 10 hours I realised the error I was getting was due to Cloudflare blocking the PUT

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [August 25, 2018, 11:19pm UTC](https://forum.ghost.org/t/code-injection-json-ld-script-doesnt-save/2388/3 "2018-08-25T23:19:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
