• Is there a way to view if user are clicking? Does this plugin integrate with Google Analytics or is there another way to see data relating to interaction? Thanks

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

    (@ajay)

    It doesn’t out of the box. you’d need to manually put in the utm_source e.g. in this line currently: https://github.com/WebberZone/contextual-related-posts/blob/master/includes/output-generator.php#L274

    In the next version, I’ll create a function to get the permalink which can then be filtered to add custom utm_source etc.

    Thread Starter anefarious1

    (@anefarious1)

    Sorry – I’m not clear on this. Does this mean I can add that exact line of code and tracking will work? If so, what file? Or do I need to wait for a future update? Thanks

    Plugin Author Ajay

    (@ajay)

    It’s the file above which you’d need to edit for the current version with the line above – that’s the github repo version but the same one that exists in your plugin folder.

    Please backup before making changes.

    Referring to this: https://support.google.com/analytics/answer/1033867?hl=en
    You can add parameters as given there to ensure you get the special URLs

    That line would need to change to something like this:

    	$output .= '<a href="' . get_permalink( $result->ID ) . '?utm_source=crp'  . '" ' . $link_attributes . '>';
    

    You should then in theory be able to check your stats to see which links have the crp referrers.

    I haven’t personally used these features of GA. The next version won’t be very soon so if it is urgent, I suggest implementing this by editing the code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Track User Clicks?’ is closed to new replies.