The above modules allow you to get Google Analytics report data related to your website.
To use any of these modules, you need to have a Google account which you can create for free.
To connect your Google account to Integromat, follow the general instructions for Connecting to services. Integromat will redirect you to the Google website where you will be prompted to grant Integromat access to your account:
Here, allow access by clicking the Allow button. Afterwards, you will be redirected back to the Integromat administration page. Now, you can continue creating your scenario.
You have at your disposal a number of setting options that influence a final report. Like the Google Analytics web administration, you start by choosing a GA account, a group, and a particular profile (website). Based on this selection, Integromat allows you to choose other parameters: metrics, dimensions, segments, and sorting order.
Metrics are data (statistics) returned by the Create a report action. In the Google Analytics settings, metrics are divided into categories. You can choose more than one metric but a maximum of 10.
For example, suppose, you want to get the total number of sessions and the total number of users during a selected date range. When you are in the Metrics settings, select the Sessions option (in the Session Group) and the Users option (in the User group). After you run the scenario, the action will return one bundle with the requested data.
Dimensions make it possible to divide metrics into groups according to a specific key. Similarly, as with metrics, dimensions are also divided into categories. You can choose more than one dimension but a maximum of 7. Not all metrics and dimensions can be combined together. If the combination you have chosen does not exist, your scenario will terminate with an error.
For example, assume you want to get the total number of sessions segmented by browser for a specified time period. First, in the Metrics settings, choose the Sessions option (in the Session group). Next, when you are in the Dimension settings select the Browser option (Platform and Device group). After you run your scenario, several bundles will be returned, each of them showing the browser and the related number of sessions.
A segment is a group of users that comply with certain characteristics (e.g. users who accessed your website from their mobiles).
You can select predefined segments or you can define new ones in the Google Analytics administration.
For example, suppose, you want to get the total number of pageviews from mobiles or tablets. In the Metrics settings, choose Pageviews (Page Tracking group) and select the Mobile and Tablet segment. After you run your scenario, one bundle with the requested value will be returned.
If you select only metrics, the Create a report action will always return only one bundle. If you select both metrics and dimensions, you have the option to determine the sorting order and direction (ascending or descending) for the returned bundles. In addition, you can also specify the maximum number of returned bundles.
For example, suppose, you want to get a list of three cities from which the most sessions originated, including the total number of users per each of those cities for a specified time period. Select the Sessions metric (in the Session group) and choose City as the dimension (Geo Network group). Next, sort returned bundles by total users (Users), choose the descending sorting order and limit the maximum number of bundles to 3.
Filtering is intended for advanced users who only need to get a specific data subset. Using filters (rules), you can restrict the data that gets included in the results. You may, for example, want to only include data for one or more specific browsers, operating systems or cities.
To create a rule, you need to use the Google Analytics syntax. Every rule contains a column name, an operator and a value to compare.
For example, suppose, you want to only get results for users who used the Chrome browser to reach your site. The rule looks like ga:browser==Chrome, where ga:browser is the column name, == is the comparative operator and Chrome represents the value to be tested.
The column names for the Google Analytics language are indicated in parentheses in the selected metrics and dimensions.
The filter operators differ depending on whether the rule is used for metrics or dimensions. All operators are stated in the table below.
|==||Equals||Metrics, dimensions||ga:timeOnPage==30 (returns only visitors who spent exactly 30 seconds on the website)|
|!=||Does not equal||Metrics, dimensions||ga:timeOnPage!=30 (returns only visitors who did not spend exactly 30 seconds on the website)|
|>||Greater than||Metrics||ga:timeOnPage>30 (returns only visitors who spent more than 30 seconds on the website)|
|>=||Greater than or equal to||Metrics||ga:timeOnPage>=30 (returns only visitors who spent 30 seconds or more on the website)|
|<||Less than||Metrics||ga:timeOnPage<30 (returns only visitors who spent less than 30 seconds on the website)|
|<=||Less than or equal to||Metrics||ga:timeOnPage<=30 (returns only visitors who spent 30 seconds or less on the website)|
|=@||Contains substring||Dimension||ga:city=@York (returns only visitors who accessed the website from a city that does contain the string York in its name)|
|!@||Does not contain substring||Dimension||ga:city!@York (returns only visitors who accessed the website from a city that does not contain the string York in its name)|
|=~||Contains a match for the regular expression||Dimension||ga:city=~^New.*k (returns only visitors who accessed the website from a city, the name of which starts with New and ends in k)|
|!~||Does not match regular expression||Dimension||ga:city!~^New.*k (returns only visitors who accessed the website from a city, the name of which does not start with New and does not end in k)|
The individual rules can be grouped together. They can be separated either by a comma (,) to be interpreted as “or“ (OR), or a semicolon (;) to be interpreted as "and“ (AND).
For example, suppose, you want to choose only visitors from Bratislava or Brno. The appropriate filter looks like: ga:city==Bratislava,ga:city==Brno.
It is always necessary to specify the start and end date for the date range for which you want to get data from. There are 4 options available (a specific date, number of days before the scenario run date, today and yesterday).
For example, suppose, you want to get the number of sessions from the previous calendar day. In this case, select the yesterday value as both the start and end date.
Another example, suppose you want to get data from the previous week. First, select the Number of days before the scenario run date option and in the box that follows, enter 7. Next, choose yesterday as the end date.