okgrow / analytics

UNMAINTAINED! - Complete Google Analytics, Mixpanel, KISSmetrics (and more) integration for Meteor
https://atmospherejs.com/okgrow/analytics
MIT License
213 stars 61 forks source link

autorun: false not disabling - still logging page views as events #175

Closed lifeofjer closed 7 years ago

lifeofjer commented 7 years ago

I have elected to set autorun: false to manually control Google Analytics Behaviors and Events. Objective is to log page views via Behaviors and clicks, form submissions, payments via Events. Manual triggers are working as expected.

But, even with autorun: false set in settings.json, the system still logs page views as Events. Cannot determine how to disable.

Example GA Events

screen shot 2017-05-07 at 8 32 40 pm screen shot 2017-05-07 at 8 33 04 pm

App settings.json file:

"public": {
    "analyticsSettings": {
      "autorun": false,
      "Google Analytics": {
        "trackingId": "UA-xxxxxxx-10"
      }
    }
  }

Manual Page View => Router {logPageView}:

const logPageView = (nextState, replace) => {
      setTimeout( () => {
        analytics.page(document.title, {
          path: nextState.location.pathname
        });
      }, 200);
    }

Manual Event Example => Payment Submission:

analytics.track(event, {
     label: this.props.description,
     item: this.props.item,
    value: this.props.amount,
});

Versions Meteor 1.4.4.2 okgrow:analytics 2.1.3

ghost commented 7 years ago

I have not been able re-produce this issue. But I want to be sure I understand it correctly.

When you set "autorun": false automatic page tracking is still happening?

cfnelson commented 7 years ago

@jeremyccrane We are going to close the issue as we have not been able to reproduce. Please let us know if you are still having problems.