Templates
Template Setup Guides

Google Analytics with Webhooks Plugin

Link to plugin page: https://zeroqode.com/plugin/complete-google-analytics-with-webhooks-1528977756665x631973219328327700

Please note that his plugin will work only when Bubble's "Google Analytics" plugin is also installed and the GA tracking code is entered

Google Analytics With Webhooks - Quick Setup Guide

Example POST GA Object:

{
"pbAnalytics": {
"results": [
{
":name": "***",
":trackingId": "***",
":cookieDomain": "***",
":apiVersion": "***",
":clientVersion": "***",
":referrer": "***",
":location": "***",
":screenResolution": "***",
":screenColors": "***",
":viewportSize": "***",
":flashVersion": "***",
":encoding": "***",
":javaEnabled": "***",
":language": "***",
":_gclid": "***",
":_gclsrc": "***",
":_gt": "***",
":_gcn": "***",
":storedClientId": "***",
":clientId": "***",
":_gid": "***",
":adSenseId": "***"
}
],
"Event": {
"Category": "***",
"Action": "***",
"Label": "***"
}
}
}

First you need to setup your API Endpoint.

  1. In your app, go to the settings tab, then the API tab, Check the "This app exposes a Workflow API".

  2. Now drop down the menu in the top left of the editor (next to the bubble symbol) & click API Workflows.

  3. Create a new API Endpoint & name it 'analytics' without the quotes.

  4. Replicate the setup you see in the below image.

5.Navigate back to a page, place a button down and setup the "Analytics Action" "Setup Endpoint".

  1. Preview your app so that you have another window open & in the editor go back to the API Workflow and click Detect Data.

  2. Now click the button in the other window and your endpoint will be setup to receive the full GA Data Objects from the plugin.

  3. Remember to setup an action to create a new thing if thats your intended us or use the other Analytics Actions to create events

To have many Input, Div & Button Clicks AutoTracked - Use place the Auto Analytics Element on your page.

There is also a Campaign Builder Element, this will format your custom URL's and parameters for your campaign.

Drop the element on your page then use the Element Action "Get Campaign URL".

https://myapp.bubbleapps.io/?utm_source=myCampaign&utm_medium=cpc&utm_campaign=spring_sale&utm_term=bubble%20plugins%20discounts&utm_content=my_spring_sale

Demo to preview the settings