seperate google analytics for mobile and desktop - javascript

I want to have 2 separate google analytic accounts for a website one for mobile and one for desktop.
I have separate code for both but the URL is same.
I would like to know if i can create 2 google analytic account from same URL.
If google allows that, then I can paste js code for 2 accounts in separate codes.

Related

How to embed live Google Sheets data into Google Sites

I need to embed Google Sheet data into a Google site. This is easy to do for static data, but not for live, changing, dynamic data in the Sheet. I need the Google site to automatically refresh in realtime for any change made on the Google Sheet.
I have tried using the automatic refresh/publish checkbox on Google Sheets. This will make the data available to the Google site, but the Google site does not automatically update unless the page is refreshed.
I expect one user to add information to a cell in Google Sheets, and in realtime the embedded sheet data on the Google site would reflect that change. However, what actually happens is the cell is changed in Google Sheets, then the Google site has to be refreshed manually in order to display the changed cell.
There is a way, but automatically updating content every 5 minutes (I ignore if the frequency can be changed).
You have to go to Gsheet > File > Publish to Web.
From there you grab the link and publish.
Then, you go to Google sites > Insert > Embed. Choose URL, paste link grabbed before.
Hope that helps!
That's actually not an issue from Google Sheet. It depends on how often does your site clears its cache for the updates. You should set that up within your admin panel if you have. Example, for wordpress users we tend to have a caching plugin to do the job.

Placing Google Analytics JavaScript tracking snippet code in www.example.com/gitplaypen/ Vs. www.example.com

Google Analytics is already working correctly on my website. I am not using the Enhanced Ecommerce plugin yet and I want to use it but first test it from www.example.com/gitplaypen/ before I move it to www.example.com. I placed the Google Analytics JavaScript tracking snippet code in www.example.com/gitplaypen/ for my tests but I am not receiving data yet after almost 48 hours since I placed the snippet code.
Is it possible to test Google Analytics in www.example.com/gitplaypen/ first, or is it required to do it from the root domain www.example.com only? Thank you.
I was able to upgrade from Google Analytics Ecommerce to Google Analytics Enhanced Ecommerce and I just used the same code for both www.example.com and www.example.com/gitplaypen/.

How to display a webpage in a html page from an url?

I want to display 2 webpages in single aspx webpage is it possible ?
for example
user -- open link for www.mywebsite.com
In my homepage i want to display both www.google.com and www.bing.com.
In the background i call two different url's and they should display on my same aspx page.
To integrate websites in other websites use an iframe like this:
<iframe src="http://www.bing.com"></iframe>
More information: w3schools
Google
This will not work for google because of their therms and services:
1.3 Your Obligations. You shall receive a Query from the End User and shall forward that Query to Google. You maynot in any way frame, cache or modify the Results produced by Google, except as otherwise agreed to between You and Google.
So if you want to integrate Google search to your website, you can read more about the API here Google Api
Bing
To embend searchresults from bing take a look at the Bing api. 5000 queries per day are free.

How to use google talk gadget in website

I want to embed gtalk chat gadget so that users would be able to chat within my website.
FAQ here - http://support.google.com/talk/answer/2722317?hl=en says that Google discontinued Google Talk Gadget.
But as I can see from http://google.com/ig, the chat gadget works fine in iGoogle.
Is it possible somehow to extract the javascript/html code from there and use it in your own website? Or any other alternative ideas?
I want something like http://karoolark.com/#gtalk

Google Analytics for third-party embedded widget

I've been able to test this to a certain extent within our application, however I'm still testing the waters with google analytics to see if it is the best choice for app analytics; for externally embedded javascript.
I'm able to fire custom events, and custom page views. However I'd like to see all online users across all sites that have the widget embedded on. It currently shows online users, but it uses a relative URL path, instead of the domain or full path.
The type of data points I'm hoping to gather are specific interactions the user makes with the application, as well as live statistics which can be drilled down to the publisher of the embed.
Has anyone had experience using google analytics for third party embeds? or is there another service out there that is better suited for app analytics of this nature?

Categories