Code Monkey home page Code Monkey logo

ls-v1-google-analytics-oauth2's Introduction

Lemonstand V1 Google Analytics oAuth2

Brings Lemonstand V1 Google Analytics signing method up to date with oAuth2

Google's Universal analytics support

This feature will be turned on by default, but can be turned off to use the legacy analytics.

Installation

  1. Login to your Google Developers Console. (https://console.developers.google.com)
  2. Create a project (if you haven't already got an active project)
  3. Navigate to 'APIs' under 'APIs & auth' , search and add the Analytics API to your project.
  4. Navigate to 'Credentials' under 'APIs & auth' and 'Create new Client ID' choose 'Web Application' as your option, add your domain name under 'Authorized JavaScript origins', if your domain name has not automatically been added to the 'Authorized redirect URIs' text area prepend your domain name leaving the Redirect URIs callback as 'oauth2callback' i.e (http://yourdomainname.com/oauth2callback).
  5. Logout of Lemonstand V1 admin area.
  6. Create a new folder called googleanalytics in the modules section of your Lemonstand V1 installtion.
  7. Add the content of this folder to the newly created googleanalytics folder.
  8. Login to Lemonstand V1, you will possibly see a large alert on the dashboard, ignore this.
  9. Navigate to System > Settings > Statistics and Dashboard
  10. Enter your Google Developer Console credentials NOTE Making sure your Redirect URI is identical to the one used in Google Developer Console and Save.
  11. Toggle your preference to use Universal or Legacy analytics.

On Save

1 of 2 options will occur when accepting and authorising the web app.

  1. You will either be redirected to Google Authorisation page to accept and authorise the web app.
  2. An alert will flash up on the stats page with a message along the lines of "MOVED TEMPORARILY" with an option to click a link which says 'here'.

If option 2 is the option click the 'here' link which will then take you through to option 1 where you can proceed to accept and authorise.

ls-v1-google-analytics-oauth2's People

Contributors

doginthehat avatar tuzbot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.