[Resolved] Element hook stripping Google Analytics

Home Forums Support Element hook stripping Google Analytics

  • This topic has 4 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    #1015166
    David
    Staff
    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?

    #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 );

    #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.

    #1015533
    David
    Staff
    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.