Google Login Plugin

How to integrate the Google login plugin into your Justuno promotions

At a Glance

1. Overview

2. Adding the Plugin

3. Creating a Google Client ID

 

Overview

Note: this is an advanced integration and requires a developer to setup a customized endpoint to accept the Google data for integration with your backend systems.

 

The Justuno Canvas Editor Google Login Plugin allows Google login to be integrated into promotions allowing sharing of information which is easy for both customers and vendors. A customer can click the login with Google button on a promotion which will share various information from their Google Account Profile without them having to manually fill out any forms which can potentially increase customer engagement.

 

Many of the more advanced usage for this integration also require a Google oAuth Application Key that has passed Google’s approval process. Most or all of this integration can also be provided as part of our managed services package.

 

Steps

1: Add the Google Login Plugin to your Design Layer

In the Promotion Designer, choose the Google Login Plugin from the Add Layer>Plugins menu on the left side:

Google Login Plugin

2: Configure the Google Login Plugin

Once you have added the plugin to your page from the Add Layer menu in the Canvas editor you will need to select the layer and fill out all the appropriate options listed on the right hand side menus. There is no need to click Edit Plugin Code as everything there is already setup for your convenience.

 

Google Client ID:

You can use your Google Account and the API Manager to create a Client ID or use an existing one. You can find a guide on how to register for this at this link here.

 

Once you have logged in, click “Credentials” on the left and select “Create Credentials” > “OAuth Client ID”

 

choose 0Auth Client ID


Select “Web Application” and be sure to fill out the URLs listed under Restrictions.

choose web application

Google Login Button:

You can customize the button users to click to login to Google so it best matches your brand and particular promotion. You can upload this image in the Canvas Editor and it will be hosted on our CDN for fast delivery.

google button

 

 

Google Data Scopes: Google needs a list of scopes from the plugin which are a way to ask for permission for certain data stored about an individual's Google account. A complete list with more information can be found at this link here. As mentioned previously only certain scopes are allowed without an approved Google Developer App ID.

 

 

Callback URL:

This is the most difficult part of this process and is what requires the assistance of a developer. As soon as the Justuno iFrame receives the data you requested back from Google we post this data as JSON to the URL you list here. You will then need to take this information and match it to some internal account within your own customer database or lead capture system. An example response looks as seen below.

 

Ex: {name: "Justuno Doe", email: "j.doe@gmail.com", id: "38834857347362"}