[Plugin: Google Analyticator] Feature Request (Add hook to add extra code)
-
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');
https://www.ads-software.com/extend/plugins/google-analyticator/
- The topic ‘[Plugin: Google Analyticator] Feature Request (Add hook to add extra code)’ is closed to new replies.