How To Use WebHooks With Google Analytics

Updated on December 31, 2018
Download PDF

Brief Overview

WebHooks (AKA callbacks) allow you to build WalkMe directly into your workflows by triggering 3rd party APIs and/or adding WalkMe Event data into your analytics platform.

This article explains how to define WebHooks for Google Analytics.

Steps for Using WebHooks With Google Analytics

NOTE: Steps 1-6 are optional, and only need to be completed if you have not yet set up a Google Analytics account.

Step 1: Open an account or log into Google Analytics

Step 2: Click Admin

Step 3: Click Create Account

Step 4: Fill in account details

  • Enter the account name and website details.

Step 5: Click Get Tracking ID

  • Scroll down and click Get Tracking ID:

Step 6: Accept Google’s terms of service

Step 7: Copy Tracking ID

Step 8: Review ‘How to Set Up a WebHook’ article

Step 9: Set up your WebHook in Insights using the Wizard

Wizard Step 1: Define event

Steps
  1. Select a WalkMe Event that will trigger your WebHook.
  2. Select the Event Properties you would like to send to Google Analytics in the Advanced section.
  3. You can select from the pre-defined properties on the top and rename them (make sure to mark the event as selected), or click ADD PROPERTY to send a property with specific value.
    For example, we’ve sent the wm.euId as uid and the env.url as ‘dl’:
    And configured the following additional properties to match Google Analytics’ mandatory properties:

    1. tid – paste the tracking id value from step 6;
    2. v = 1;
    3. t = the type of hit type you want to map the event to (choose one from: ‘pageview’, ‘screenview’, ‘event’, ‘transaction’, ‘item’, ‘social’, ‘exception’ or ‘timing’);
      • Notice that if you’re using an ‘event’ type, you also need to configure the event category (ec) and action (ea), like we’ve added in our example.

Pro-Tip: See the Google Analytics Parameters Documentation for more information.

Wizard Step 2: Set destination

Steps
  1. Write in the Destination Platform Name. This name identifies the destination system (In this case Google Analytics):
  2. Set Request Type to POST:

  3. Paste the URL according to your use case (in the following picture the URL is for creating tracker objects). The URL will always begin with “https://www.google-analytics.com/“:
  4. Add Headers:
    • Content-Type : text/plain:
  5. Click TEST
    • This will send the event that you defined in Wizard Step 1 to your destination platform to ensure that a connection was successfully made.
    • You should see the message: “Tested Successfully!”

Step 10: Return to Google Analytics and click the Home icon

Step 11: Click Real-Time > EVENTS

  • An event mark will appear with details:

Required Values

Pro-TipSome parameters may only be sent with specific hit types. For example, the pageview hit type requires the Page Path parameter (“dp”).

 

Was this article helpful?

Related Articles