Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
How i can extract the report using the google analystic reporting module at a particular date range
Note: Need the calender to select the date range
How i can acheive that , is this required any knid of code modificaion?
Thanks,
KumarE
Comments
Comment #1
grendzy CreditAttribution: grendzy commentedComment #2
kumarE CreditAttribution: kumarE commentedAny idea how to proceed on this?
Thanks,
Srinil
Comment #3
mmenavas CreditAttribution: mmenavas commentedIn case anyone is still trying to implement this feature, this is how I did it.
0. Install and enable the Better Formats module (https://drupal.org/project/better_formats).
1. Add 'Google Analytics: Start/End' filter, expose filter, select 'Is Between' as the operator, and select 'A date in any machine...' as the value type.
2. Under Advanced > Exposed Form, change the 'Exposed form style' from 'Basic' to 'Better Exposed Filters'. Then on 'BEF Settings' look for the option 'Display "start_end" exposed filter as' and select JQuery UI Datepicker.
3. Modify the code on google_analytics_views/handlers/google_analytics_handler_filter_startend.inc
from
to
That should be it.
Comment #3.0
mmenavas CreditAttribution: mmenavas commentedupdated text
Comment #4
cthshabel CreditAttribution: cthshabel commentedmmenavas,
thanks for sharing your solution. this seemed simple enough but digging in it seems things have changed a lot in this module since this version.
i notice there are more options available now for the start and end date filters.
can someone explain or direct me to more information on how to allow users to select the dates via a calendar?
thanks everyone