Can you point out the location where the Google Analytics field is rendered? I would like to build an option (checkbox) into my child themes that gives the option to disable writing GA code to the page is the user is logged in. I don’t always want to log page views when I am logged in tweaking a page or post. It can mess with my GA reports on low traffic sites. Also, I see that it captures page views while I am in the editor previewing a new page or post (/?page_id=425&preview=true).
Controlling the GA code a bit more would be really helpful. Is there an action or filter that I can use to alter when the code is written?
- You must be logged in to reply to this topic.