I want to add google analytics code to all pages in my website. Can I place google analytics code in a JS file and mention the JS file in the header?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
in simple html pages there is no standard way to render script on each page , you can put ur GA code into separate .js file , and then include it on each Html page in header like
That’s the only solution i can suggest 🙁