• Hello,

    I’m creating a function where i can save tracking code like Google Analytics and then output it into <head>.

    I wonder what validation it is clever to use when saving the code?

    Google Analytics code is inline: <script>GoogleAnalyticsCodeHere</script>

    I think i must save everything including the <script> tags.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What validation should i use for javascript?’ is closed to new replies.