'Page paths' settings (admin/config/system/google_tag) do not appear to be honored. The default configuration is as follows:

  • Add snippet on specific paths
    • All paths except the listed paths
  • Listed paths
    • admin*
    • batch*
    • node/add*
    • node/*/*
    • user/*/*

The GTM snippet appears on pages regardless of the paths settings.

Steps to Reproduce

  • Enable Google Tag Manager module
  • Navigate to module's configuration page (admin/config/system/google_tag)
  • View page source to verify GTM snippet is loading
    • GTM snippet should not load per page paths rule

User role settings are honored.

Comments

solotandem’s picture

Can not reproduce. Retested with user 1, regular authenticated user, and anonymous user. In all cases, the path (and response status) conditions work as intended.

Please provide more detail.

Addendum: The path condition works. It is the status condition that fails when not activated. My tests above had the status condition enabled.

See #2206989: 'Response statuses' settings are not honored.

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Closed (works as designed)
chris burge’s picture

This issue was resolved by #2206989: 'Response statuses' settings are not honored patch #1, which was committed here: http://drupalcode.org/project/google_tag.git/commit/59966513ad4eb2dc7188...

Prior to this fix, it was necessary to check the 'Override path condition for listed response statuses' checkbox under 'Response Statues' vertical tab in order for path settings to be honored.