MediaRon/gravity-forms-google-analytics-event-tracking

Script sometimes placed outside document root

Opened this issue · 0 comments

Not sure what specifically causes this yet, but in one of the websites we run this plugin on, script is placed before the doctype. It appears the script inside the GFGAET::is_ga_only() check is echoed at run-time, and not put inside an object or variable. This causes the markup of the page to render like this:

<script>
...
</script>
<!doctype html>

Moreover, this way the script doesn’t actually work.