thedevdojo/voyager

Google Analytics on Laravel Voyager Admin

Open

#2 216 ouverte le 12 nov. 2017

Voir sur GitHub
 (16 commentaires) (5 réactions) (0 assignés)PHP (11 817 stars) (2 652 forks)batch import
help wantedtype:documentation

Description

  • 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

Guide contributeur