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.
The mandatory question: Do you know of much that prevents a D6 backport of this?
Comment | File | Size | Author |
---|---|---|---|
#31 | ga_stats_d6port_1197744_31.patch | 3.84 KB | brunodbo |
#25 | ga_stats_d6port_1197744_25.patch | 21.11 KB | scothiam |
#21 | ga_stats_d6port_1197744_21.patch | 8.52 KB | scothiam |
#20 | d6_port.patch | 8.52 KB | scothiam |
#13 | d6_port-1197744-13.patch | 6.43 KB | Balbo |
Comments
Comment #1
Balbo CreditAttribution: Balbo commented+1
(Can't find something similar in Drupal 6)
Comment #2
vlooivlerke CreditAttribution: vlooivlerke commentedsubscribe
Comment #3
jec006 CreditAttribution: jec006 commentedI think it should definitely be doable - just need to basically backport the views integration to views 2
Comment #4
Ken Hawkins CreditAttribution: Ken Hawkins commentedHappened upon this new module, Nice Dash.
It provides Google Analytics integration along with a dashboard for 6.x ... so there's feature bloat compared to this module. Still it may be of interest to some
http://drupal.org/project/nice_dash
Comment #5
Balbo CreditAttribution: Balbo commentedKen, I just need a way to display the "most viewed" page on my site, once disabled the core "Statistics" module. The module you linked gives a google analytics panel inside my site?
Comment #6
baff CreditAttribution: baff commentedsubscribe
Comment #7
GreenReaperSubscribe, definitely!
Comment #8
tancHere's a very quick and untested D6 backport. I should get a chance to test it later today.
Comment #9
zzzp CreditAttribution: zzzp commentedThanks, tanc!
I'd been working with a similar idea myself, but you beat me to it with this patch ;-)
Have tested it against a site I'm building and it works fine.
Comment #10
jec006 CreditAttribution: jec006 commentedHey Guys,
Let me know how this patch works and we'll get it committed.
Comment #11
Balbo CreditAttribution: Balbo commentedThe
patch does not apply
nor to dev-version, nor to beta.I applied it "by hand" and I'm trying the module on a Drupal 6.20, it seems to work.
edit: the module patched seems to work, as I can configure it via
admin/settings/ga_stats
and can add several Statistics fields inside my Views BUT those fields aren't showing any values ("label:" followed by nothing).Comment #12
Balbo CreditAttribution: Balbo commentedHere is why:
the site I was using to test the module was like http://xxx.xxx.xxx.xxx/drupal6test
And in the
ga_stats.module
the functionga_stats_get_data
is usingand
while (in my case) it should use:
and
I'm not sure wether is an error in my configuration or it is better to modify somehow the regular expression.
Comment #13
Balbo CreditAttribution: Balbo commentedUpdated patch.
Can you please commit it to a 6version's module?
Comment #14
twohlix CreditAttribution: twohlix commentedThe preg_match stuff should be in a different issue, but thank you for bringing that up.
Im testing the 6.x patch right now.
Comment #15
karljohann CreditAttribution: karljohann commentedAwesome
Comment #16
karljohann CreditAttribution: karljohann commentedI'm not getting any results to show. I'm using Views 3, could that be a problem?
Edit: The problems seems to be that the data from GA is very little still.
Comment #17
scothiam CreditAttribution: scothiam commentedSubscribing. Patch in #13 worked for me using Views 3, thanks! I did need to manually edit the info file after patching, I'll attempt to edit the patch to reflect that, test, and upload.
Comment #18
twohlix CreditAttribution: twohlix commentedkarljohann, is it working now that you've got some data populating your site?
Comment #19
twohlix CreditAttribution: twohlix commentedScothiam, would you mind uploading your patch so we can close this out?
Comment #20
scothiam CreditAttribution: scothiam commentedSorry for the delay. First patch, don't shoot me.
Comment #21
scothiam CreditAttribution: scothiam commentedapologies, again, first patch, getting up to speed on the patching standards. I am currently testing this patch, stay tuned.
Update: works fine for me.
Comment #22
karljohann CreditAttribution: karljohann commented@twohlix I'm not quite sure how to get the data to update more regularly, we have a site with a few hudred thousand pageviews per day and at the end of the day the most popular posts still have 0 views, which is a bit off ... aside from that it seems to work fine.
Comment #23
twohlix CreditAttribution: twohlix commented@scothiam your patch was done from the directory above ga_stats (which isnt right). I did a quick regex to replace the of /ga_stats/ with just / but that didnt work. Would you mind remaking the patch from the ga_stats directory? Thanks for your help with this port.
@karljohann cron controls how often ga_stats is pulling data from google analytics.
Comment #24
scothiam CreditAttribution: scothiam commentedsorry about that twohlix, I'll try to get a few minutes this weekend to recreate the patch correctly. Thanks, I appreciate the feedback, I'd rather learn and get it right.
Comment #25
scothiam CreditAttribution: scothiam commentedTry this again, sorry for the delay. I followed the steps here, http://drupal.org/node/707484
Let me know if I missed anything, again, I appreciate the feedback.
Thanks again to everyone that actually worked on this module (jec006, twohlix, ?) and the port (Balbo, tanc). Glad I can help even if only a little.
Cheers,
Comment #26
twohlix CreditAttribution: twohlix commentedScothiam, awesome. Patch is made against an older version and includes stuff like:
which is already in dev's latest. Would you mind rerolling the patch against latest version?
git pull before you git diff. :) Thanks a ton for the work you've been doing.
Comment #27
scothiam CreditAttribution: scothiam commentedoops! I'll try to get that out after 5pm today. Cheers, (sorry for the delay, putting out other fires, will get the latest dev version to create a patch against when I can get back to this)
Comment #28
aze2010 CreditAttribution: aze2010 commentedsubscribing :-)
Comment #29
Balbo CreditAttribution: Balbo commentedHey guys, any news on this issue? Will we have a backport (d6) of the module? Thanks :)
Comment #30
frankie CreditAttribution: frankie commentedI'm interested in backport for D6. Any news?
Comment #31
brunodboRerolled patch against the 7.x-1.x branch, since that branch seemed to have the latest.
Successfully tested it on a D6 install, with a hosted Google account, and requesting 2000 results for a given timeframe.
Comment #32
brunodboComment #33
nicholas.alipaz CreditAttribution: nicholas.alipaz commentedThe permission used in this version is 'administer site config' and it should be 'administer site configuration' in hook_menu().