WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google Analyticator] Feature Request (Add hook to add extra code) (1 post)

  1. Lee Willis
    Member
    Posted 4 years ago #

    I notice from the code that the plugin can have "extra" Google Analytics code added (Presumably via the config page of the plugin?).

    E.g.

    # Add any tracking code before the trackPageview
        if ( '' != $extra )
            echo "  $extra\n";

    However, what I'd like to be able to do is add extra code via a plugin. Would it be possible to add a hook in here that other plugins can use to insert additional Google Analytics code (For example segmentation data via _setVar).

    Something like
    do_action('google_analyticator_extra_js');

    http://wordpress.org/extend/plugins/google-analyticator/

Topic Closed

This topic has been closed to new replies.

About this Topic