You have no favorites... yet!
Use the Library tree on the left to select a Choreo to call from your gateway device.
Use the Library tree on the left to select a Choreo to call from your edge device via the gateway.
Library . Google . Analytics . GetMetrics
Retrieves metrics such as visits, page views, bounces within a specified time frame.
/*
TembooTask class placeholder
*/
/*
TembooTask header placeholder
*/
Since you've changed your device configuration, you'll need to tell us about this new device.
This feature is in experimental mode - pricing coming soon.
Send your code straight to a GitHub repository.
Your code will be visible by others in your repos. Keep credentials private by saving a Profile or commit code with Placeholder inputs.
The following files will be added to this repo:
You'll be able to edit and share your code from TI's CCS Cloud IDE.
The following will be sent to CCS Cloud:
/*
Your auto-generated code will appear here once you've configured your device above.
*/
/*
A header file containing your Temboo account information will appear here once you've
configured your device above.
*/
/*
Please log in to generate proxy server code for use with the JavaScript SDK.
*/
This Choreo uses your Google analytics username and password to authenticate your account with Google, and retrieves metrics such as visits, page views, bounces within a specified time frame. This Choreo has some advanced optional inputs that may require you to reference the Google documentation, which you can find if you follow the link below. Also, make sure to reference the Choreo's variable descriptions for more info on the optional inputs. The Filters input is a good example of an input that has some special requirements. You need to specify a dimention or metric followed by an operator expression (i.e. ga:name operator expression). For example, a Filters input of "ga:timeOnPage==10" would return results where timeOnPage is exactly 10. Below is a list of acceptable expressions:
== |
Equals |
!= | Does not equal |
> | Greater than |
< | Less than |
>= | Greater than |
<= | Less than or equal to |
== |
Exact match |
!= | Does not match |
@ | Contains substring |
---|---|
!@ | Does not contain substring |
~ | Contains a match for the regular expression |
!~ | Does not match regular expression |
The documentation for this Analytics resource can be found here.
The Choreo parses PageViews, Visits, and Bounces from the XML response for you. The full XML response is returned as well.
The following is a sample of the XML information returned by this Choreo:
<?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:dxp='http://schemas.google.com/analytics/2009' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"D0ACR304fip7I2A9WhdaGEw."' gd:kind='analytics#data'> <id>http://www.google.com/analytics/feeds/data?ids=ga:34465561&metrics=ga:bounces,ga:pageviews,ga:visits&start-date=2011-10-20&end-date=2011-10-28</id> <updated>2011-10-28T08:29:26.336-07:00</updated> <title>Google Analytics Data for Profile 34465561</title> <link rel='self' type='application/atom+xml' href='https://www.google.com/analytics/feeds/data?start-index=1&max-results=1&end-date=2011-10-28&start-date=2011-10-20&metrics=ga%3Avisits%2Cga%3Abounces%2Cga%3Apageviews&ids=ga%3A34465561'/> <author> <name>Google Analytics</name> </author> <generator version='1.0'>Google Analytics</generator> <openSearch:totalResults>1</openSearch:totalResults> <openSearch:startIndex>1</openSearch:startIndex> <openSearch:itemsPerPage>1</openSearch:itemsPerPage> <dxp:aggregates> <dxp:metric confidenceInterval='0.0' name='ga:visits' type='integer' value='373'/> <dxp:metric confidenceInterval='0.0' name='ga:bounces' type='integer' value='195'/> <dxp:metric confidenceInterval='0.0' name='ga:pageviews' type='integer' value='1366'/> </dxp:aggregates> <dxp:containsSampledData>false</dxp:containsSampledData> <dxp:dataSource> <dxp:property name='ga:profileId' value='34465561'/> <dxp:property name='ga:webPropertyId' value='UA-17339105-1'/> <dxp:property name='ga:accountName' value='www.temboo.com'/> <dxp:tableId>ga:34465561</dxp:tableId> <dxp:tableName>www.temboo.com</dxp:tableName> </dxp:dataSource> <dxp:endDate>2011-10-28</dxp:endDate> <dxp:startDate>2011-10-20</dxp:startDate> <entry gd:etag='W/"CkcEQX47eSp7I2A9WhdaF0s."' gd:kind='analytics#datarow'> <id>http://www.google.com/analytics/feeds/data?ids=ga:34465561&&start-date=2011-10-20&end-date=2011-10-28</id> <updated>2011-10-27T17:00:00.001-07:00</updated> <title/> <link rel='alternate' type='text/html' href='http://www.google.com/analytics'/> <dxp:metric confidenceInterval='0.0' name='ga:visits' type='integer' value='373'/> <dxp:metric confidenceInterval='0.0' name='ga:bounces' type='integer' value='195'/> <dxp:metric confidenceInterval='0.0' name='ga:pageviews' type='integer' value='1366'/> </entry> </feed>
https://ACCOUNT_NAME.temboolive.com/callback/google
© 2025 Temboo, Inc Privacy Terms