Title: Quick question: Tracking
Last modified: August 30, 2016

---

# Quick question: Tracking

 *  Resolved [jasommoore](https://wordpress.org/support/users/jasommoore/)
 * (@jasommoore)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/quick-question-tracking/)
 * Hector,
 * Firstly, thank you for creating and continuing to support this helpful plugin.
 * I’m testing variations of popular posts on different pages of the blog and want
   to track which one is working best.
 * Question: How do I add the tracking parameter after the links?
 * Such as:
    Example.com/article?utm_source=popularposts1
 * – J
 * [https://wordpress.org/plugins/wordpress-popular-posts/](https://wordpress.org/plugins/wordpress-popular-posts/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/quick-question-tracking/#post-6437678)
 * Well, for that try the following:
    1. Enable the _Custom HTML markup_ option from the widget to modify the default
       output.
    2. Change the _Post HTML markup_ field to something like this: `<li>{thumb} <a 
       href="{url}?utm_source=popularposts1">{text_title}</a> {stats}</li>`
 *  Thread Starter [jasommoore](https://wordpress.org/support/users/jasommoore/)
 * (@jasommoore)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/quick-question-tracking/#post-6437701)
 * Hi Hector,
 * Thanks for replying.
 * However, that made my sidebar go blank.
 * This is how I’m currently doing it:
    [http://pastebin.com/heWi0QqH](http://pastebin.com/heWi0QqH)
 * Your help is truly appreciated.
 * – J
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/quick-question-tracking/#post-6437715)
 * Ah, you should have mentioned that before. I assumed you were using the widget.
   No, that won’t work.
 * Please undo those changes and share your original code here so I can take a look.
 * **Edit:** scratch that. I’m a bit tired now and didn’t really carefully look 
   at your code. Gimme a sec, I’ll edit this post again.
 * **Edit 2:** my guess is that you forgot to escape the double quotes from the 
   href attribute, something PHP didn’t like much. Here’s the revised version of
   your code: [http://pastebin.com/uRHPfzxH](http://pastebin.com/uRHPfzxH).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Quick question: Tracking’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [parameter](https://wordpress.org/support/topic-tag/parameter/)

 * 3 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/quick-question-tracking/#post-6437715)
 * Status: resolved