Title: google analytics event post title
Last modified: August 30, 2016

---

# google analytics event post title

 *  [wolfy_](https://wordpress.org/support/users/wolfy_/)
 * (@wolfy_)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-event-post-title/)
 * Hi,
 * I’m trying to do a google analytics event for every time someone click in the
   YARPP suggestion with the following code:
 * `__gaTracker('send', 'event', 'YARPP', '" . the_title_attribute('echo=0') . "');\"`
 * I would like the `the_title_attribute('echo=0')` returned the post title of the
   page where the suggestion is made, but instead it returns the post title of the
   suggestion.
 * How should I resolve this?
 * [https://wordpress.org/plugins/yet-another-related-posts-plugin/](https://wordpress.org/plugins/yet-another-related-posts-plugin/)

The topic ‘google analytics event post title’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [wolfy_](https://wordpress.org/support/users/wolfy_/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-event-post-title/)
 * Status: not resolved