• Resolved hwuser

    (@hwuser)


    Hello, I have to add several
    <script src=”xxxx> </script>
    Like analytics and others.
    What do I have to select in fragment type?
    html?
    either
    javascript?

    And the location of these scripts, which should be, in the header or in the footer?

    Thanks a lot!!

Viewing 1 replies (of 1 total)
  • Plugin Author DraftPress Team

    (@draftpress)

    This is an old thread. Sorry for missing it. Unfortunately, it’s a rather vague question because can be answered in many ways.

    I’m sure you’ve figured this out. But if not, here’s the response:

    What is the code type? Select the appropriate one.
    If it begins with “<script src=”, then select Javascript.

    As for location, that depends on where the third party script provider says to put the script. In most cases, it’ll be the footer so that it loads towards the end of the page. However, certain types of snippets (like Google Analytics) recommend placing it in the header. It’s case-by-case depending on the recommendation of the third party provider of the script.

Viewing 1 replies (of 1 total)
  • The topic ‘Fragment type’ is closed to new replies.