function googleAnalytics(pluginConfig = {}) {
  const client = initialize(pluginConfig)
  var customDimensions = pluginConfig.customDimensions || {};
  return {
    name: 'google-analytics-v3',
    config: pluginConfig,
    // page view
    page: ({ payload, config }) => {
      const { properties } = payload
      const { path, href, title } = properties
      pageView({ path, href, title }, client)
    },
    // track event
    track: ({ payload, config }) => {
      const { event, properties } = payload
      const category = properties.category || 'All'
      const label = properties.label || 'NA'
      const value = properties.value
      trackEvent({
        category,
        event,
        label,
        value,
        properties
      }, client, customDimensions)
    },
    /* identify user */
    identify: ({ payload }) => identifyVisitor(payload.userId, client)
  }
}
Serverside Google Analytics plugin
@param {object} pluginConfig - Plugin settings
@param {string} pluginConfig.trackingId - Google Analytics site tracking Id
@return {*}
@example

googleAnalytics({
  trackingId: '123-xyz'
})