thedevdojo/voyager

Google Analytics on Laravel Voyager Admin

开放

#2,216 创建于 2017年11月12日

 (16 条评论) (5 个反应) (0 位负责人)PHP (2,652 个派生)batch import
help wantedtype:documentation

仓库指标

星标
 (11,817 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

  • Laravel Version: 5.4.36
  • Voyager Version: v1.0.7
  • PHP Version: 5.6.30
  • Database Driver & Version:

Description:

After adding google analytics client ID in Voyager, sometimes you may not get the analytics report right away in the voyager dashboard page; Instead it will show the below text.

You are logged in as: @.com

Steps To Reproduce:

  1. Create a google analytics client ID under https://console.developers.google.com
  2. Return to Voyager admin -> Settings -> Add the client ID under admin section and save.
  3. Go to Voyager dashboard where you may only see the text "You are logged in as: xxxx@email.com"

Solution: Enable google analytics API after creating your client ID.

  1. Go to https://console.developers.google.com
  2. Select Library
  3. Search for the keyword 'analytics'
  4. Click on 'Analytics API'
  5. Click on Enable

screen shot 2017-11-11 at 11 26 21 am screen shot 2017-11-11 at 11 26 36 am screen shot 2017-11-11 at 11 28 32 am

贡献者指南