tighten / nova-google-analytics

Google Analytics integration with Laravel Nova
MIT License
165 stars 30 forks source link

Does the Referrers List card work? #17

Closed dmyers closed 3 years ago

dmyers commented 4 years ago

I noticed that the class the card extends had the wrong casing and made PR #16 for it.

I then still had an issue I haven't yet solved with the card being blank when I have referrals in Google Analytics so I don't think it's the data source.

In my cards array:

use Tightenco\NovaGoogleAnalytics\PageViewsMetric as AnalyticsPageViews;
use Tightenco\NovaGoogleAnalytics\VisitorsMetric as AnalyticsVisitors;
use Tightenco\NovaGoogleAnalytics\MostVisitedPagesCard as AnalyticsTopPages;
use Tightenco\NovaGoogleAnalytics\ReferrersList as AnalyticsTopReferrers;

    protected function cards()
    {
        return [
            new AnalyticsPageViews,
            new AnalyticsVisitors,
            new AnalyticsTopPages,
            new AnalyticsTopReferrers,
            new ProductClicks,
        ];
    }
mattstauffer commented 4 years ago

Hm. Let me take a look at whether I wrote that or whether someone else wrote it.

mattstauffer commented 4 years ago

https://github.com/tightenco/nova-google-analytics/pull/10

Yah, this is a PR, so I was only relying on the PR author saying it worked for her. Any thoughts on what's wrong? I don't even have a great GA account to test it on right now.