• Resolved DaanvandenBergh

    (@daanvandenbergh)


    Hi guys,

    I’m the developer of CAOS. Recently I received a support request to add a compatibility mode for SEOPress.

    I reviewed your code and the only thing that’d be needed would be to apply a filter to the gtag-source.

    This would mean the following.

    on inc/functions/options-google-analytics,js:311 could be rewritten to something of this nature:

    $seopress_google_analytics_source = apply_filter('seopress_google_analytics_script_src', 'https://www.googletagmanager.com/gtag/js?id=');
    $seopress_google_analytics_html .=
    "<script async src='" . $seopress_google_analytics_source . seopress_google_analytics_ua_option() . "'></script>

    Is this something that you guys would be interested in doing? This way I could hook into this filter and overwrite the source with CAOS’ locally hosted version.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow other plugins to alter gtag.js source’ is closed to new replies.