trackPage(url = this.getPage(), setPage = true, trackPage = true) {
    if (this.initialized) {
      // Indicate what page subsequent events are associated with.
      // https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications?hl=en
      if (setPage) ReactGA.set({page: url});
      // Track the current page load (required in addition to the previous line).
      if (trackPage) ReactGA.pageview(url);
    }
  }
/**
   * Track the current page. This will both track a page view
   * and set the current page so that any other event tracking
   * is associated with the current page.
   *
   * @param {object} [url] - The url to track as the current page.
   *   If you don't pass this, then `getPage()` will be called
   *   to generate it for you using `window.location`.
   * @param {boolean} [setPage] - Allows you to disable saving the
   *   current page state to this location. Use this if you need to
   *   track the page but maintain the previously set page as the source
   *   of future event tracking.
   * @param {boolean} [trackPage] - Allows you to disable tracking a page view
   *   and instead just sets the current page for future event tracking.
   *   Use this if you want to set the page but you don't want to track
   *   a pageview.
   */
Track the current page. This will both track a page view
and set the current page so that any other event tracking
is associated with the current page.

@param {object} [url] - The url to track as the current page.
If you don't pass this, then `getPage()` will be called
to generate it for you using `window.location`.
@param {boolean} [setPage] - Allows you to disable saving the
current page state to this location. Use this if you need to
track the page but maintain the previously set page as the source
of future event tracking.
@param {boolean} [trackPage] - Allows you to disable tracking a page view
and instead just sets the current page for future event tracking.
Use this if you want to set the page but you don't want to track
a pageview.
Track the current page . This will both track a page view and set the current page so that any other event tracking is associated with the current page . @param { object } [ url ] - The url to track as the current page . If you don ' t pass this then ` getPage () ` will be called to generate it for you using ` window . location ` . @param { boolean } [ setPage ] - Allows you to disable saving the current page state to this location . Use this if you need to track the page but maintain the previously set page as the source of future event tracking . @param { boolean } [ trackPage ] - Allows you to disable tracking a page view and instead just sets the current page for future event tracking . Use this if you want to set the page but you don ' t want to track a pageview .
trackPage(url = this.getPage(), setPage = true, trackPage = true) {
    if (this.initialized) {
      if (setPage) ReactGA.set({page: url});
      if (trackPage) ReactGA.pageview(url);
    }
  }
trackPage ( url = this . getPage ( ) , setPage = true , trackPage = true ) { if ( this . initialized ) { if ( setPage ) ReactGA . set ( { page : url } ) ; if ( trackPage ) ReactGA . pageview ( url ) ; } }
Track the current page.
Track the current page .
// Indicate what page subsequent events are associated with. // https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications?hl=en // Track the current page load (required in addition to the previous line).