Home › Forums › Support › Element hook stripping Google Analytics This topic has 4 replies, 2 voices, and was last updated 3 years, 4 months ago by David. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts September 20, 2019 at 11:45 pm #1014984 Anonymous Hi there, When adding an element hook to embed Google Analytics, the code is stripped. Please see the screenshots. View post on imgur.com September 21, 2019 at 7:05 am #1015166 DavidStaff Customer Support Hi there, thats odd – do you have any plugins / custom functions that you can try disabling to see if there is a conflict? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ September 21, 2019 at 12:04 pm #1015448 Anonymous Hi David, The only plugins installed are those included with the Theme. Would sanitizing unfiltered HTML affect the inclusion of the code? For example; define( 'DISALLOW_UNFILTERED_HTML', true ); September 21, 2019 at 12:16 pm #1015450 Anonymous Hi David, The sanitization of unfiltered HTML does affect the code block. The directive define('DISALLOW_UNFILTERED_HTML', true ); has to be commented or removed prior to publishing the hook. It may be valuable to update the GeneratePress so that if others have similar questions, there is a reference. September 21, 2019 at 3:12 pm #1015533 DavidStaff Customer Support thats correct – in most managed WP environments unfiltered HTML is allowed for Admin/Super Admin roles. Hence why it probably has never shown up in the support forum. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In