• yochi

    (@yochi)


    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)
  • esmi

    (@esmi)

    Start by reviewing Data_Validation.

    Thread Starter yochi

    (@yochi)

    I have been reading that article. But i must say i’m not sure if i should look at the input or output validation, and which one is the best for me.

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