KML and Fusion Tables - google-maps-api-3

What is the different between KML and Fusion Tables ?
When it is possible to use them ?
what are the benefit and disadvantage of them ?
Regards,
Yossi

As per the Google developer pages
https://developers.google.com/kml/documentation/kml_tut
KML is a file format used to display geographic data in an Earth
browser such as Google Earth, Google Maps, and Google Maps for mobile.
It is basically an XML representation of geographic/spatial/location data.
Fusion Tables, on the other hand, are cloud based data tables that you can add/import data into. You can then query these these tables in a number of different ways. Google will also allow you to visualize the data in a number of different ways including in charts etc, as well as on a map.
How is KML and Fusion Tables linked? You can store KML data in a column in a Fusion Table and Google will map the rows in the table against a Google Map.
Simples ;)

Related

How to scrape a large amount (>800) Google My Maps location data ("Details from Google Maps") using Web Scraper or other alternatives?

I tried to use Web Scraper, but it only works for a few data entries not for hundreds of data points. Is there a way to scrape a large amount of data solely using Web Scraper or is there a better alternative like python? I intend to scrape information of the location name, address, rating number, and website. Thanks for any inputs!
Sitemap:
{"_id":"mymaps","startUrl":["https://www.google.com/maps/d/u/0/edit?....."],"selectors":[{"id":"activityelement","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div.i4ewOd-TaUzNb-haAclf","multiple":true,"delay":"1000","clickElementSelector":"div.un1lmc-pbTTYe-ibnC6b","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueText"},{"id":"activityname","type":"SelectorText","parentSelectors":["activityelement"],"selector":"div.i4ewOd-TaUzNb-r4nke","multiple":false,"regex":"","delay":0},{"id":"activityrating","type":"SelectorText","parentSelectors":["activityelement"],"selector":"span.fO2voc-jRmmHf-LJTIlf-wcwwM-H6j5tf","multiple":false,"regex":"","delay":0},{"id":"activityaddress","type":"SelectorText","parentSelectors":["activityelement"],"selector":".OzwZjf-jRmmHf-MZArnb-KDwhZb div:nth-of-type(3)","multiple":false,"regex":"","delay":0},{"id":"activitywebsite","type":"SelectorLink","parentSelectors":["activityelement"],"selector":"div:nth-of-type(4) a","multiple":false,"delay":0}]}
Have you tried Octoparse?
for hundreds of data points
It does allow 10'000s of input URLs...
Try downloading the KML file from the three vertical dots at the top of the My Map, and use the 'Export as KML instead of KMZ' checkbox option...then you'll get all the geocoordinates in a human readable XML file.

Is it possible to make a pivot table in Google Spreadsheets using data from Google Analytics?

Is it Is it possible to make a pivot table in Google Spreadsheets using data from Google Analytics?
Example:
Row: ga:channelGrouping
Column: ga:month
Metric: ga:sessions
you may use Google Analytics Sheets Add-on to fetch data from Analytics and then build a pivot table over it. Check it here: https://developers.google.com/analytics/solutions/google-analytics-spreadsheet-add-on
Also you may use Apps script available in sheets to make an API request to Analytics and get the pivoted data directly from Analytics. Here is an example https://developers.google.com/analytics/devguides/reporting/core/v4/advanced#pivots
Yes it is possible.
Here are the following requirements and steps you must follow to create a pivot table in Google Spreadsheets using data from Google Analytics.
Google Spreadsheets Google Analytics Add-On already plugged in
Basic familiarity with Regular Expressions aka. RegEx (helpful but not necessary)
Basic familiarity with Pivot Tables in Google Spreadsheets
Blog URLs with dates as subdirectories eg “/2015/08” (or collect post date as Custom Dimension)
Here are also the filter operators you can use:
ga:medium==organic; Only organic traffic ( == means equals)
ga:landingPagePath=#20; Only landing page URLs that contain 20 (#= means contains)
ga:landingPagePath!#? Only landing page URLs that do not contain a query string because that’s mostly garbage. (!# means does not
contain)
For more information, you can visit the following links:
How to use pivot table in spreadsheet
Exploring Google Analytics Pivot Tables
Pivot Google Analytics Data to Create User-Facing Views using Excel

How to merge two custom reports in different properties together in Google Analytics

I have two different properties, one property is for historical data (e.g. from 01/01/2016 - 09/25/2016), while another one includes data from 09/26/2016-present. I want to create a custom report, which includes the data from 01/01/2016 - present.
I have tried to use Views option -> 2 views selected when I am building the custom report. However, it creates one view in each property, which has data for separate date ranges. Is it possible to merge these two views in different properties together to get data from 01/01/2016 - present?
In GA UI its not Possible, but there is good workaround.
Using GA API via Google Sheets aka Google Analytics automation script
You can use the Google Analytics API and Google Apps Script to access your Google Analytics data from Google Sheets. This is powerful because it allows you to utilize all the great features of Google Sheets with your analytics data, such as easy sharing, collaboration, charting and visualization tools. (Study here)
Create a sheet, pull data from property 1.
In sheet 2 pull data from property 2.
Merge the data in Sheet 3.
Fairly easy and manageable.
Big Query
If you have access to Big Query account for each property, then just write a query taking data from two different data sets for the desired range using TABLE_DATE_RANGE. (Study Here)

Google Analytics: How to display traffic data of all my sites as one graf?

As a webmaster I support N different client sites. How to display all their traffic data at one joint graph conveniently?
If "n" is something in the hundreds or thousands you can use the recently announced APIs for Large Companies.
If your needs are somewhat smaller you can pull the data into a Google spreadsheet (via Google apps script) and use the Chart functions (or Google Charts) to create a combined graph.

Mapping markers on Google Maps

I am looking to map about 800 markers on a Google map. I have a csv file with addresses, including latitude and longitude coordinates. I would like to be able to somehow upload this file to Google Maps resulting in a map displaying all of my markers. This process will be automated, where a windows service (or via Sql Server Integration Services) will upload the address data to some url, effectively updating the markers on a map, which is embeded on an Asp.Net page on my site.
Does anyone know of a simple way this can be accomplished? Are there any tools out there that can already do this? I've looked at batchgeo.com and there file upload feature, but I don't think their tool can be automated.
Why not just to use google maps api v3 to display the markers? With 800 markers you probably would like to use marker clustering e.g. using markerclusterer
800 markers is a lot for one map, especially without marker clustering. Do you think maybe something like Google Fusion Tables would work? It's pretty easy, doesn't require much in terms of coding, and I'm fairly certain you can update records via URLs. You can upload your initial CSV file to it, too, and then display the points on a Google Map.

Resources