Home › Forums › Support › Google analytics code in hook / wp_head This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by David. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts September 16, 2019 at 6:52 am #1010550 Kristian i would like to use hook instead of installing a plugin to add the Google Analtyics code on my site: https://vpnservice.dk/ Will it work to add the analytics code in hook / wp_head and then display on entire_site? September 16, 2019 at 6:59 am #1010553 DavidStaff Customer Support Hi there, yes, thats correct, the WP_head hook is within the <head> element of the site. Then set Display Rules for the Entire Site. Extra bonus, on the Display Rules set User > Logged Out – this will stop the script from running for Authority ( Logged in ) users. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In