# Weird Gravity Forms Code Found Near Top of Page Source Code

**URL:** <https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695>\
**Category:** Get Help\
**Tags:** gf\_global, conflict\
**Created:** [October 21, 2022, 2:46pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695 "2022-10-21T14:46:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AeroStar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/aerostar/32/15243_2.png) [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Post date:** [October 21, 2022, 2:46pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695/1 "2022-10-21T14:46:57Z")

</div>

Good Day,

Just now, noticed Gravity Forms is adding the code provided below to the HMTL (Page Source) code of our website. In one instance ( **var gf\_global** ), the code is duplicated.

Any ideas what is triggering this? How can we address and/or fix this?

Thank you!

> **[Screenshot](https://prnt.sc/rIRlOVM31oKo)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 21, 2022, 6:35pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695/2 "2022-10-21T18:35:04Z")

</div>

Hi Jonathan. It should be there once, but if it’s appearing twice, there is likely a conflict with another plugin or your theme. Have you already checked for conflicts?

> **[Testing for a Theme/Plugin Conflict](http://docs.gravityforms.com/testing-theme-plugin-conflict/)**
>
> The following sections provide instructions for determining if an issue you are experiencing with Gravity Forms is caused by a theme or plugin conflict.

---

<div class="post-metadata">

**Author:** ![AeroStar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/aerostar/32/15243_2.png) [@AeroStar](https://community.gravityforms.com/u/AeroStar)\
**Post date:** [October 21, 2022, 8:37pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695/3 "2022-10-21T20:37:46Z")

</div>

Hi Chris,

Thanks for your help. Two things:

(1) So you’re saying the presence of the above Page Source code (minus the duplication) from Gravity Form is normal and expected?

(2) Yes, we performed a full plugin conflict check. No dice. However, we may have found the reason for the duplication. Our website has Gravity Forms installed on several pages. On the pages where we have two forms installed, **var gf\_global** appears twice. Where we only have one form installed, **var gf\_global** appears only once. The only question now is: Why do the other codes don’t appear duplicated on the pages where we have two forms installed?

Thank you,

Jonathan

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 24, 2022, 10:02pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695/4 "2022-10-24T22:02:20Z")

</div>

1. Yes
2. I’m not sure. I recommend opening a support ticket if you don’t figure that out:

[https://www.gravityforms.com/open-support-ticket/technical/#get-help](https://www.gravityforms.com/open-support-ticket/technical/#get-help)

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [November 23, 2022, 10:02pm UTC](https://community.gravityforms.com/t/weird-gravity-forms-code-found-near-top-of-page-source-code/13695/5 "2022-11-23T22:02:48Z")

</div>

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