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

Pageview support #130

Open
aletorrado opened this issue May 20, 2019 · 1 comment
Open

Pageview support #130

aletorrado opened this issue May 20, 2019 · 1 comment

Comments

@aletorrado
Copy link

Hi, I was wondering why the pageview (intended for Analytics web properties) isn't included.

I understand that GA app properties or Firebase Analytics may be a better fit for app insights, but for website-first properties (such as newspapers) keeping centralized analytics is a must.

Btw, I'm trying to implement usage on Flutter.

@SnekInDisguise
Copy link

SnekInDisguise commented Aug 8, 2019

You can implement PageView using the method sendRaw of AnalyticsIO (used when initializing analytics)

Future<dynamic> sendPageView(String viewName) {
  print('sendPageView { viewName: $viewName }');

  final args = {
    'dp': viewName, // Name of pageview
    'dt': 'My page title' // Title of pageview
  };
  return _ga.sendRaw('pageview', args);
}

where _ga is the variable I'm using to store the instance of AnalyticsIO when I first initialized my application.

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

No branches or pull requests

2 participants