Skip to content

Script sometimes placed outside document root #34

@acjbizar

Description

@acjbizar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions