Integrate Magento 2.X with Google Contacts

Appy Pie Connect allows you to automate multiple workflows between Magento 2.X and Google Contacts

  • No code
  • No Credit Card
  • Lightning Fast Setup
20 Million man hours saved

Award Winning App Integration Platform

About Magento 2.X

Magento 2.x is an open-source e-commerce platform written in PHP. It is one of the most popular e-feature-rich platforms that you to manage your eCommerce store without any hassle.

About Google Contacts

Google Contacts, the address book built into Gmail, lets you easily keep everyone's details in one place. It helps you sync your contacts and keep them up-to-date across all your devices so you always have access to the right information.

Google Contacts Integrations

Best Magento 2.X and Google Contacts Integrations

  • Magento 2.X Integration Google Contacts Integration

    Magento 2.X + Google Contacts

    Create or Update Contacts to Google Contacts from New Sales Order Shipment in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Google Contacts Integration Create or Update Contacts
  • Magento 2.X Integration Google Contacts Integration

    Magento 2.X + Google Contacts

    Add Contact to Group in Google Contacts when New Sales Order Shipment is created in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Sales Order Shipment
     
    Then do this...
    Google Contacts Integration Add Contact to Group
  • Magento 2.X Integration Google Contacts Integration

    Magento 2.X + Google Contacts

    Create or Update Contacts to Google Contacts from New Product in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Product
     
    Then do this...
    Google Contacts Integration Create or Update Contacts
  • Magento 2.X Integration Google Contacts Integration

    Magento 2.X + Google Contacts

    Add Contact to Group in Google Contacts when New Product is created in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Product
     
    Then do this...
    Google Contacts Integration Add Contact to Group
  • Magento 2.X Integration Google Contacts Integration

    Magento 2.X + Google Contacts

    Create or Update Contacts to Google Contacts from New Customer in Magento 2.X Read More...
    Close
    When this happens...
    Magento 2.X Integration New Customer
     
    Then do this...
    Google Contacts Integration Create or Update Contacts
  • Magento 2.X Integration {{item.actionAppName}} Integration

    Magento 2.X + {{item.actionAppName}}

    {{item.message}} Read More...
    Close
    When this happens...
    {{item.triggerAppName}} Integration {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppName}} Integration {{item.actionTitle}}
Connect Magento 2.X + Google Contacts in easier way

It's easy to connect Magento 2.X + Google Contacts without coding knowledge. Start creating your own business flow.

    Triggers
  • New Customer

    Triggers when Magento gets a new customer.

  • New Order

    Triggers when a new order is created (with line item support).

  • New Product

    Triggers when a new product is created in Magento.

  • New Sales Order Credit Memo

    Triggers when a new sales order creditmemo is created.

  • New Sales Order Invoice

    Triggers when a new sales order invoice is created (with line item support).

  • New Sales Order Shipment

    Triggers when Magento gets a new sales order shipment (with line item support).

  • Updated Customer

    Triggers when Magento gets a updated customer.

  • New Group

    Triggers whenever a group is created.

  • New or Updated Contact

    Triggers when a contact is created or updated.

    Actions
  • Create Category

    Create a new category

  • Create Customer

    Create a new customer

  • Create Order

    Create a new catalog order

  • Create Product

    Create a new catalog product

  • Create Sales Order Comment

    Create a new sales order comment

  • Create Sales Order Invoice

    Create a new sales order invoice

  • Create/Update Product

    Create/update a new catalog product

  • Update Product

    Update a catalog product

  • Add Contact to Group

    Adds an existing contact to a group.

  • Create or Update Contacts

    Creates a new contact.

Compliance Certifications and Memberships

Highly rated by thousands of customers all over the world

We’ve been featured on

featuredon
Page reviewed by: Abhinav Girdhar  | Last Updated on July 01, 2022 5:55 am

How Magento 2.X & Google Contacts Integrations Work

  1. Step 1: Choose Magento 2.X as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Google Contacts as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Magento 2.X to Google Contacts.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Magento 2.X and Google Contacts

Magento 2.X is the latest version of the Magento platform which focuses on being a more robust and scalable spution for e-commerce.Magento 2.X has new features that help merchants reach an ever-increasing mobile audience, expand their footprint internationally and capture more sales from social channels.Magento 2.X is built with a progressive architecture that scales as your business grows.Google Contacts is a free online address book service that lets you share your contact information across Google products and services.Google Contacts is automatically available to users when they use any Google product, such as Gmail and Google+.

Integration of Magento 2.X and Google Contacts

To integrate Magento 2.X with Google Contact, we need to register in Google as a developer, then create a project in the Google API Conspe, after which we can enable the required APIs.After registering in the Google API Conspe, we will receive a client_id and client_secret . They look something like this:client_id=18780631401-vfcnkxnpggibmvmfjdbl3e8j4h5e5o7.apps.googleusercontent.com client_secret=w+W6Qb7y1DpWwX9KrkUv3jN0Lg==We can use these client_id and client_secret to initialize the Authentication class in our application, which will enable us to make authenticated requests to the Google API Conspe.The Authentication class will look something like this. addonsgoogleapiAuth.php namespace AppModelEntity; use GoogleAuth; class Auth extends GoogleAuth { protected $clientId = '<YOUR_CLIENT_ID>'; protected $clientSecret = '<YOUR_CLIENT_SECRET>'; public function __construct(. { parent::__construct('v2', $this->clientId, $this->clientSecret); } }With that done, we can move on to creating another class called ContactManager , which will handle all the operations related to working with contacts.This class will have two methods. saveContact(. and getContacts(. . The implementation of these methods looks something like this:namespace AppModelTable; use AppModelEntityContact; use PimcoreTableAbstractTable; use PimcoreTableDataTypeEmailAddressType; use PimcoreTableDataTypeLocaleType; use PimcoreTableFieldsTextField; use PimcoreTableFieldsTextFieldArray; use PimcoreTableFieldsTextFieldTranslationArray; class ContactManager extends AbstractTable { /** * */ protected $_name = 'contact'; protected $_dataType = 'Contact'; protected $_fields = [ TextField::create()->setName('id')->setLabel('ID')->setDescription('Unique identifier of the contact.'), EmailAddressType::create()->setName('email')->setLabel('Email')->setDescription('Contact's email address.'), TextField::create()->setName('first_name')->setLabel('First Name')->setDescription('Contact's first name.'), TextField::create()->setName('last_name')->setLabel('Last Name')->setDescription('Contact's last name.'), TextField::create()->setName('phone')->setLabel('Phone')->setDescription('Contact's phone number.'), TextFieldArray::create()->addItem(TextField::create()->setName('country_code')->setLabel('Country Code')->setDescription('Contact's country code.'. ->addItem(TextField::create()->setName('region')->setLabel('Region')->setDescription('Contact's region.'. ->addItem(TextField::create()->setName('region_code')->setLabel('Region Code')->setDescription('Contact's region code.'. ->addItem(TextField::create()->setName('postal_code')->setLabel('Postal Code')->setDescription('Contact's postal code.')), TextFieldTranslationArray::create()->addItem(TextField::create()->setName('phone_number'. ->setLabel('Phone Number'. ->addItem(TextField::create()->setName('country_code'. ->setLabel('Country Code'. ->addItem(TextField::create()->setName('region'. ->setLabel('Region'. ->addItem(TextField::create()->setName('region_code'. ->setLabel('Region Code'. ->addItem(TextField::create()->setName('postal_code'. ->setLabel('Postal Code'), array( 'en' => 'USA', 'ar' => 'الولايات المتحدة', 'de' => 'Deutschland', 'fr' => 'France', 'it' => 'Italia', . ); } public function saveContact(array $contacts. { return parent::save($contacts); } public function getContacts(. { return parent::get(); } }

We now have a simple Magento 2.X application which can be used to manage contacts in Google Contacts and enable users to sync their contacts with Google Contacts.

The process to integrate Magento 2.X and Google Contacts may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.