• Resolved jasommoore

    (@jasommoore)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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

    (@jasommoore)

    Hi Hector,

    Thanks for replying.

    However, that made my sidebar go blank.

    This is how I’m currently doing it:
    http://pastebin.com/heWi0QqH

    Your help is truly appreciated.

    – J

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

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

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