• Resolved dragolcho

    (@dragolcho)


    Hi there!

    First of all, I would like to thank you for the wonderful plugin. It is no wonder that so many websites are using it!

    I have a small issue that lies in the integration of Slimstat and (I think) Shareaholic.

    • I am using the following shortcode to display a list of most popular posts:
    • [slimstat f='top-all' w='post_link']content_type equals post &&& limit_results equals 5[/slimstat]

    • This is fine for most of the pages, when I publish a post and share it with its correct URL
    • But when someone (or even I myself) shares the new post with Shareaholic a bunch of parameters is added to the URL
    • ?utm_campaign=shareaholic&utm_medium=facebook&utm_source=socialnetwork

    • Slimstat interprets that as a different URL and as a result I can have several entries of the same post in my top 10 list
    • As a side note: I get the two results combined with my “Top Web Pages” report, but separated in my “Top Exit Pages” report
    • You can see an example on my blog http://www.fromgnometogoliath.com/. There are two pages called “Emotional Intelligence – 10 Ways to Improve Your Self Awareness” – number 1 and number 4.

    I would appreciate any help. Ideally I would like Slimstat to ignore the parameters after the URL and I would like some advises on how to fix the current database entries (in the worst case I am thinking about an UPDATE SELECT statement directly in the database).

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jason Crouse

    (@coolmann)

    Hi @dragolcho,

    You make a very good point, indeed. I will forward your request to the developer, to see if we can do something to ignore the query strings attached to permalinks, when creating the shortcode.

    Stay tuned,
    Jason

    PS: thank you for your kind words and review!

    Thread Starter dragolcho

    (@dragolcho)

    Hi @coolmann,

    Thank you for your reply!

    I will appreciate if you keep me updated on the issue. If you do not wish to fix it at the moment, I will try it myself. 🙂

    BR,
    Valentin

    PS: My positive review was well deserved!

    Plugin Contributor Jason Crouse

    (@coolmann)

    Hi Valentin,

    version 4.6.5 contains an updated shortcode syntax that allows you to ignore query strings. Simply use the following code:

    [slimstat f='top-all' w='post_link_no_qs']content_type equals post &&& limit_results equals 5[/slimstat]

    Let me know if this solves your problem!

    Best,
    Jason

    Thread Starter dragolcho

    (@dragolcho)

    Hi Jason,

    Works like a charm! Thanks!

    Plugin Contributor Jason Crouse

    (@coolmann)

    Great!

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

The topic ‘Problem with short code’ is closed to new replies.