Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

DispatchAnalyticsJob events not appearing in GA #13

Open
timstl opened this issue Dec 13, 2022 · 0 comments
Open

DispatchAnalyticsJob events not appearing in GA #13

timstl opened this issue Dec 13, 2022 · 0 comments

Comments

@timstl
Copy link

timstl commented Dec 13, 2022

Hello,

I've been trying to implement DispatchAnalyticsJob in the Registered event, but am having trouble getting the event to show up in analytics.

    protected $listen = array(
        Registered::class => array(
            SendEmailVerificationNotification::class,
            DispatchAnalyticsJob::class,
        ),
    );

Here's a little background:

  • This is a GA4 property.
  • The project is using Laravel Jetstream with Inertia + Vue.
  • Pageviews and other events sent from gtag() are working as expected.
  • While debugging, I determined the Registered event is being sent to GA and the response code is 200.
  • In Laravel Horizon, I can see the "SendEventToAnalytics" job is completed successfully.

I reviewed Issue #2, which isn't entirely applicable in this case, but I was wondering if DispatchAnalyticsJob would handle setting the eventValue correctly on its own?

The other possibility I was considering is that Google is filtering the event as a bot. With GA4 properties, there's no way to disable bot filtering as of now. Has anyone experienced this being an issue?

Thanks for the work on this package and any advice you can provide!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant