I would like to check which subscribers are regularly opening the newsletter and whichones never do (so I can delete them after time).

Is it possible to create a custom view (Views) to gather such data? (as far as I can see now in the statistics tab there is only the percentage and no individual subscribers).

Comments

ParisLiakos’s picture

Component: User interface » Code
Category: support » feature

Well the functionality is there, all that needed to be done for this feature to work is actually make database aware of individual subscriber statistics..
it would be pretty easy to add, i intend to add this when i find some time:)
till then any help/patch is appreciated

dreamingX’s picture

Any pointers on where to start would be very appreciated ;)
I guess that for the percentage to work there needs to be some checking of the individual subscriber (ie if the person already opened the newsletter in question - and then setting to true if it is the first time.. )

Anyway, looks like I will have to byte in to this, so again: hints, pointers etc.
(can I use Views to generate a list of subscribers?)

ParisLiakos’s picture

http://drupalcode.org/project/newsletter.git/blob/630f33c:/includes/news...

this function triggers when a subscriber opens the newsletter..and subscriber data are already there
So what we need here

  1. A new seperate table i guess that gather opens per subscriber:
    Something like this:

    Subscriber id (INT)
    Newsletter id (INT)

  2. when this function triggers insert to this new table the newsletter id and the subscriber id..both of them are available in this function
  3. register this tables in to views and voila! you can now know whether a subscriber open specific newsletter

thats it.. would take me just a few hours, but i am very busy latest days and use my free time to actually rest

ParisLiakos’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » Statistics