WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
How to use API Filters yoast-ga-push-before-pageview ? (1 post)

  1. mdlepage
    Member
    Posted 1 year ago #

    Hi,
    Can someone explain how / if I can use the API filters to add some custom code to the tracking javascript via functions.php?

    I'd like to add some custom code that includes some php but when I input into the Custom Code form in the admin, the php is never executed.

    Can I add a filter in functions.php and use the yoast-ga-push-before-pageview hook? Can someone post some sample code where this might work?

    Thanks.
    m

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic