Hi,
you can use the word “resource” for the URL, and “content_id” for PAGE ID. “post_link” cannot be used in filters, but only as a value in the “w” parameter of the shortcode. In other words you can have
[slimstat f='count' w='post_link']....
but not
[slimstat f='count' w='id']post_link contains flowers[/slimstat]
This last shortcode needs to be written as
[slimstat f='count' w='id']resource contains flowers[/slimstat]
I could give you the long explanation on why this is the case, but just accept it for what it is 🙂
Best,
Jason
Okay, so I have:
[slimstat f="count" w="id"]content_id equals $post_id[/slimstat] which successfully returns the stats for a single page,
but I’m trying to get the count for a outbound link, and my best guess is:
[slimstat f="count" w="outbound_resource"]contains $outbound_url[/slimstat]
Both variables have values, so I think I’m screwing up the syntax somewhere.
Is there a way to get the count for the number of times an outbound_link has been clicked?
-
This reply was modified 9 years, 9 months ago by
chenryahts. Reason: syntax
-
This reply was modified 9 years, 9 months ago by
chenryahts. Reason: syntax
Nevermind! Got it:
[slimstat f="count" w="id"]outbound_resource contains $url[/slimstat]