I am trying to extend the functionality of the module to record links of nodes shown in a view.

The actual example is that I have a image gallery created with views, from nodes that have several images linked to an external site.

The purpose of the image gallery is for advertising and it's block will be on all the pages of the site.

I would like to know if this is possible and if there are suggestions.

Thanks for this module and any support.

Comments

nkschaefer’s picture

Status: Active » Fixed

Hi,

The Drupal 7 version of the module already works with Views. In order to get this working, you have to first set the module to track clicks on nodes of the right type (in your case, image gallery nodes) via the admin menu. Once this is done, you should output any external links by choosing "Rewrite the output of this field" in the Views UI, then "output this field as a link" and make sure the "external server URL" box is checked. I'm not 100% sure if this works with images - it will depend on whether the Image module Views integration allows you to output image fields as links. If you're able to do that, though, clicks on those links should be tracked and the click data should be associated with the node that "owns" the images.

Let me know if you have any other questions or you can't get this to work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

george.plescan’s picture

Ok thank you for the reply.

I was rewriting the image link as absolute. Now it is external.

On my dev version of the site I can't seem to make the module record anything, with all roles put in the settings.

I still have one more question: how to delete the test records ? This should be put in a different issue I think.

Anyway one more info: I am using Click Points Lifetime 30 min and Statistics Lifetime indefinite hoping that every 30 mins someone clicking on the image will record a new click. With indefinite statistics this should allow me to number the clicks on the images.

george.plescan’s picture

Status: Closed (fixed) » Closed (works as designed)
george.plescan’s picture

I deleted the tracking history from the database directly and tried to see if the image clicks are counted or not.

Seems no, only nodes opened in the url are tracked. So my options are
A. open the content from which the image is coming from and redirect from there to the external link and hope it is going to be tracked

or

B. modify the module ?

george.plescan’s picture

Status: Closed (works as designed) » Active

I forgot to reopen the issue.

I tried point A but that didn't work.

From what I saw in the code the modules adds some js for nodes opened in the URL, which are allowed for tracking.

The only solution I think it would be to add a function for a displayed view and do the same thing.

This is the actual function : function pop_links_node_view($node).

I'll try to find some hook for this ...

george.plescan’s picture

Status: Active » Fixed

I modified the link of the node by adding the processed class and the module to get results.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.