Voyager: Google Analytics on Laravel Voyager Admin

Created on 12 Nov 2017  Â·  10Comments  Â·  Source: the-control-group/voyager

  • 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: @.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

documentation help wanted

Most helpful comment

I was having this problem previously, but not longer am thanks to this post. After enabling the API in the Google Library I also had to make sure to log in to google using the correct account (I have multiple google accounts and only one of them had access to the analytics data I was trying to access), but after that it works well for me.

All 10 comments

Same problem

Thank you for posting this

Still seems to be an issue?

I was having this problem previously, but not longer am thanks to this post. After enabling the API in the Google Library I also had to make sure to log in to google using the correct account (I have multiple google accounts and only one of them had access to the analytics data I was trying to access), but after that it works well for me.

this worked for me. thankyou

same problem

Guys, please stop commenting "Same problem". This issue isn't about a problem (at least not one within Voyager's control). It's about adding documentation to assist devs with getting past this step.

I think the problem happen because http must be https in xampp

On 18 June 2018 at 16:41, Eric Fletcher notifications@github.com wrote:

Guys, please stop commenting "Same problem". This issue isn't about a
problem (at least not one within Voyager's control). It's about adding
documentation to assist devs with getting past this step.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/the-control-group/voyager/issues/2216#issuecomment-398077701,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AeQu8wn5-pvYGG-sBIauuohGQ4lYf-1Lks5t97wEgaJpZM4Qa4MO
.

I guess you should install an analytics tool on your page.
go to https://analytics.google.com/analytics and register your website. then copy the code like


```

```**

and past it inside head tag as the first element.

If someone encountered a problem by following these steps. Delete the OAuth ID and create again after enabling the Analytics API.
I enabled the api after creating the OAuth ID and it didn't work, only after deleting and enabling it again that I managed to make it work

Was this page helpful?
0 / 5 - 0 ratings