Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dashboard don't receive any track events #542

Open
YassinELhadedy opened this issue Oct 30, 2024 · 0 comments
Open

dashboard don't receive any track events #542

YassinELhadedy opened this issue Oct 30, 2024 · 0 comments

Comments

@YassinELhadedy
Copy link

code:MyApplication


@HiltAndroidApp
public class MyApplication extends MatomoApplication implements OrigoKeysApiFactory {
    private static final String MATOMO_URL = "http://35.209.3.16/matomo.php";

    @Override
    public TrackerBuilder onCreateTrackerConfig() {
        return TrackerBuilder.createDefault(MATOMO_URL, 2);
    }
}

in my fragment

    protected val tracker: Tracker
        get() = (this.activity?.application as MatomoApplication).tracker


    TrackHelper.track()
        .screen(screenPath)
        .title(screenTitle)
        .with(tracker)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant