WordPress.org

Ready to get started?Download WordPress

Forums

Adding Google Analytics event tracking with custom fields (1 post)

  1. cgriffis
    Member
    Posted 1 year ago #

    I have a page on my website that is built dynamically with custom fields. I would like to be able to put in event tracking code from Google Analytics

    onclick="_gaq.push(['_trackEvent', 'Button Clicks', 'RSW Library', 'Name of Page']);"

    But I am not familiar enough with PHP to add this to the PHP.

    Does someone know how I could add this tracking to be able to recognize the link that is being clicked?

    The page is am referring to is at: http://www.rswcreative.com/our-work

Topic Closed

This topic has been closed to new replies.

About this Topic