Data tracking with Google Analytics
Hi
Can I use Google Analytics with iweb?
Yes. You can add it to each page using iWeb SEO which requires it to be reapplied each time you edit a page.
You can also add it an HTML snippet which is a one time application. However, the snippet requires a bit more effort up front. Wyodor posted detailed instructions on how: IWEB : ADDING GOOGLE ANALYTICS WITHOUT EDITING THE WEBPAGE.
Have you looked at the information that you can get about visitors by using a counter from StatCounter.com. It's quite comprehensive and much easier to add to each page.
Click to view full size
Old Toad's Tutorial #13 - Adding a StatCounter as an HTML Snippet describes how to add the counter.
I've used both and find the info from StatCounter more complete regarding visitors.
OT
Similar Messages
-
Tracking with google analytics
We have a desktop app we have built with air, and the client
has requested usage statistics to see how much people are using
it... What I'm wondering is what is the best way to monitor the
usage? We already use google analytics on their website... I'm
wondering if we can use it from inside the AIR app as well. If so
how would you go about doing that?
I thought about loading an external web page off the web
server that had the analytics tracking on it and displaying that on
the app somewhere... What would that show up like in google
analytics?Hi p-dog
I am Paul Sanderson - the creator of Air Analytics: http://www.airanalytics.net/
Air Analytics is a native Air Flex/Flash solution built from the ground up that gives you rich insights into your applications, use, installs, versions ect.
I would love for you to try out and use Air Analytics.
If you go over to Air Analytics and register I will activate you and you can start trying it out.
This also goes for everyone else in this forum who would like to give it a go.
Thanks Paul -
How to send datas properly to Google Analytics (ANE-Google-Analytics)
Hello,
I meet a problem when I'm using the native extension created by Alessandro Bianco : ANE-Google-Analytics. I tested this code many times, in the context of AIR mobile application, but I tested it without any success to add new datas to Google Analytic history. I'm really connected to internet properly.
Moreover I think that I've made my functions as required by the author : Can you look at my code below to detect some errors to communicate with Google Analytics ?
<s:TabbedViewNavigatorApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="creationCompleteHandler(event)"
>
import eu.alebianco.air.extensions.analytics.Analytics;
import eu.alebianco.air.extensions.analytics.api.ITracker;
import flash.utils.clearInterval;
import flash.utils.setInterval;
import flash.utils.setTimeout;
public var ganalytics:Analytics;
public var gtracker:ITracker;
protected var i:int = 1; // Debug
protected static const ANALYTICS_ID = "My UA code is here";
protected function creationCompleteHandler(event:Event):void
// I launch the tracker :
ganalytics = Analytics.getInstance();
ganalytics.dispatchInterval = 5; // Interval for connecting : 5 seconds
// I begin to use the tracker :
GtrackerSessionUsing("RecordingView","HomeView",true);
* GtrackerConnecting
* @description : Open connection to Google Analytics, and create instance for a tracker
* @argument : actionName = "RecordView" or "RecordEvent"
* @argument : valueName = Name of the view or name of the event to record
public function GtrackerSessionUsing(actionName:String, valueName:String, createConnection:Boolean=false):void
gtracker = ganalytics.getTracker(ANALYTICS_ID);
gtracker.startNewSession();
if(etablirConnexion==true)
// Tracking des views :
var compteur:int = 0;
var intervalGtrackerCnxOuvrir:uint = setInterval(function():void{
counter++;
trace("gtracker ="+gtracker);
if(counter==50){ // Try to connect - only - 50 times
trace("GoogleTracker fails to connect !");
clearInterval(intervalGtrackerCnxOuvrir);
else if(gtracker!=null){
trace("GoogleTracker success to connect !");
GTrackerRecordAction("EnregistrerView","HomeView");
clearInterval(intervalGtrackerCnxOuvrir);
else{
trace("Trying to connect to GoogleTracker... (itérate #"+counter+")");
gtracker = ganalytics.getTracker(ANALYTICS_ID);
gtracker.startNewSession();
},5000); // All 10 seconds : iterate a new connection test
protected function GTrackerRecordAction(actionName:String, valueName:String)
* @description : Use the tracker of the Google Analytics connected account, all of Views can call this function with this model of code: parentApplication.GTrackerRecordAction(...)
* @argument : actionName = "RecordView" or "RecordEvent"
* @argument : valueName = Name of the view or name of the event to record
if(gtracker!=null)
switch(actionName){
case "RecordView":
trace("GoogleTracker : gtracker.buildView("+valueName+").track()");
gtracker.buildView(valueName).track();
break;
case "RecordEvent":
switch(valueName){
case "event1":
gtracker.buildEvent("click", "button").withLabel("play").withValue(10).track();
break;
case "event2":
gtracker.buildEvent("click", "button").withLabel("stop").track();
break;
case "event3":
gtracker.buildEvent("app", "quit").track();
break;
break;
Best regards.Youtch,
I'm not sure exactly what your issue is, but I was unable to connect and looked at your code, modifying it for my purposes and it fixed my code. Hopefully it can help fix yours.
I did notice one thing as I went through, however:
You use
var compteur:int = 0;
var intervalGtrackerCnxOuvrir:uint = setInterval(function():void{
counter++;
The compteur does not match the counter variable. It appears a problem with Franglais is the issue here.
In the event it may help, here is the code I used:
In my creationComplete function:
GoogleAnalytics.initialize("UA-47303719-1");
Here is the code in my app.xml
<extensions>
<extensionID>eu.alebianco.air.extensions.analytics.NativeGATracker</extensionID>
</extensions>
And here is the class I created to use the ANE:
package ANE.NativeGATracker{
import flash.utils.clearInterval;
import flash.utils.setInterval;
import eu.alebianco.air.extensions.analytics.Analytics;
import eu.alebianco.air.extensions.analytics.api.ITracker;
public class GoogleAnalytics{
static private var _analytics:Analytics;
static private var _tracker:ITracker;
static private var _supported:Boolean;
* There is no need to instantiate this class
public function GoogleAnalytics(){
* Initialize the GoogleAnalytics object.. or return false, if Analytics isn't supported
static public function initialize(ANALYTICS_ID:String):Boolean{
if(Analytics.isSupported()){
_analytics = Analytics.getInstance();
_analytics.dispatchInterval = 5;
establishTracker(ANALYTICS_ID);
_supported = true;
}else{
_supported = false;
return _supported;
* Establish the tracker connection
* @description: establishes the tracker connection... reattempt every 10 seconds, up to 50 times
static private function establishTracker(ANALYTICS_ID:String):void{
_tracker = _analytics.getTracker(ANALYTICS_ID);
_tracker.startNewSession();
var counter:int = 0;
var establishInterval:uint = setInterval(function():void{
counter++;
trace("Google Analytics tracker = " + _tracker);
if(_tracker != null){
trace("GoogleAnalytics tracker connected!");
_tracker.buildView("Launch").track();
_tracker.buildView("Home").track();
clearInterval(establishInterval);
}else if(counter == 50){
trace("GoogleAnalytics failed to connect.");
clearInterval(establishInterval);
}else{
trace("Trying to connect to Google Analytics... attempt #" + counter);
_tracker = _analytics.getTracker(ANALYTICS_ID);
_tracker.startNewSession();
}, 5000);
* Analytics object
static public function get analytics():Analytics{
return GoogleAnalytics._analytics;
* Tracker object
static public function get tracker():ITracker{
return GoogleAnalytics._tracker;
* Returns true if analytics are supported, but false if they are not. Check this before any use of the tracker or analytics objects
static public function get supported():Boolean{
return GoogleAnalytics._supported; -
I spent all morning setting up Google Analytics. Looked at dozens of posts here with loads of misinformation. iWeb 09 does work with Google Analytics. Here's what worked for me. They key was to make sure my URL ended with a /. That is, it didn't work when I pointed to www.testsite.com but it did with www.testsite.com/
Go to Google Analytics to set up your site and get your code
(something like this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = gat.getTracker("UA-xxxxx-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Add an HTML snippet (Show Media, click on Widgets). I dragged the HTML widget to the footer (as you drag, the bottom inch illuminates so you know you're in the footer.) Paste in the code you got from Google. Re-size as desired and then post the same HTML snippet into each page in your web. Just click on each page and paste. It will go to the same place on each page.
Oh, one other odd thing: in the Google Analytics display, the current day is not shown. Click on the date range to choose today and you should see results fairly quickly.Hello ruralart,
After saving the automator workflow as a Finder Plugin,
mount you iDisk in the finder (ex. click on the iDisk icon in the left pane of a Finder window),
goto the folder iDisk / Web / Sites , select this folder "sites",
control-click on the folder to run the “Add Google Analytics” workflow.
Note : when you have iDisk Sync = ON, you'll see that the folder "web" is an alias so Automator will not work in this situation. You'll have to turn iDisk Sync OFF.
Kind regards,
Leo -
Query parameters in BC and setting up Site Search tracking in Google Analytics
I would like to enable site search tracking in Google Analytics for a non-eCommerce BC site but I do not know what query parameters I need to use to enable site search tracking - can anyone help?!
I can turn Site search tracking 'on' in Analytics but it requires the query parameters to be entered e.g. 's' or 'q'. I have the option of selecting 'strip query parameters out of URL' but I'm not sure what this does and what needs to be done in the backend of BC?
Usually, when an internal search is done within a website (and in this case it is www.newcastleairport.com.au), the URL will indicate the parameters by adding a 'en&q' in the URL. To test what metric would be used for the Airport, I did a search on 'annual report' and the following URL came up (not containing an en&q)
http://www.newcastleairport.com.au/Default.aspx?SiteSearchID=1012&ID=/travellers-search-re sult#.U3A3HmQ-JU0
Any help would be appreciated. There was a previous discussion re this subject but it remained unanswered but there was a suggestion around using javascript within a web app?
CheersHi Sebastian and Manas,
I am trying to set up a hybrid environment and followed the blog posts. Everything was set up as per the guidelines mentioned but still I am not able to fetch any results from SharePoint Online inside my on-premise environment.
There are no errors coming as such. Its just that my on-premise is showing no results from SPO. However if the same user logs on into the Office 365 SPO site he is able to see SPO search results. That means there is no permission related issue specific to
test user.
I am totally out of ideas now. In case you have faced similar issues while setting up the same then any pointers to troubleshoot would be very helpful.
The link to my query that I have asked on the forums is
https://social.msdn.microsoft.com/Forums/office/en-US/540d2629-ec6b-4905-b8e2-f6ba4e770d26/configure-one-way-outbound-hybrid-search?forum=sharepointgeneral
Thanks,
Geetanjali
Geetanjali Arora | My blogs | -
Tracking captivate lesson hits with google analytics
Has anyone tried using Google Analytics to track hits to Captivate-generated lessons?
Thanks.Without hijacking the thread...
Will the CP5 PHP program provided also allow the trackiing of assessment scores to the webserver?
(I am asking because we do not have an LMS)
Thanks
Terry -
Styling Links Tracked by Google Analytics
Hi everyone --
I'm tracking a site using Google Analytics. I'm taking
advantage of one of
GA's tools by tracking a 3rd party shopping cart. So far so
good. But
here's where I need help with 2 things.
First, how do I make the links in the code (around line 30)
for users
with/without JavaScript enabled follow my CSS styles; and
how do I do I make the rest of the line display --"or learn
more about the
race."?
Here's a link to the page:
http://www.hyde5.com/index.htm
Thanks,
JohnHi David
did you ever sort this?
many thanks
LJ -
Data Tracking with Scheduled Webis
Using XI R3
Is this a true statement: "Data tracking will not work with scheduled webi documents or webi documents in scheduled publications because the scheduling process does not 'save' a document that it can then use as a reference for the next iteration"?
If I refresh the documents manually daily with tracking on and save them, then schedule the publication after that with the 'refresh on open' property turned off in the publication, that seems to be the only way to accomplish it.
My publication, by the way, produces pdf versions of the webis distributed vai email.
This requirement to manually run the webi documents every day really defeats the whole advantage of scheduling.Hi Stephen.
Lets understand why data tracking requires a "save report".
When data tracking is enabled. current version of report output is compared with immediate previous version of report output. Also data tracking requires report to run and saved as HTML format. It does not work in PDF format.
In case of scheduled report, it will not work as report instance is not saved. However if you enable "Automatic Data Tracking" it seems to be possible.
I would suggest reading "Data tracking modes" Part from webi user guide. You shall get all your ans.
--Kuldeep -
Tracking via google analytics & Flash Video Player Component
Hi,
I'm trying to track when a user plays a video on our home
page. I'm using the standard Flash Video Player component and
Dreamweaver to hook it up. In order to get the player to call
Google analytics on play I think that I need the FLA for this
player but I can't seem to figure out how to access it. Any
suggestions?
Thanks
Tony LopezHi,
I'm trying to track when a user plays a video on our home
page. I'm using the standard Flash Video Player component and
Dreamweaver to hook it up. In order to get the player to call
Google analytics on play I think that I need the FLA for this
player but I can't seem to figure out how to access it. Any
suggestions?
Thanks
Tony Lopez -
Issue with Google Analytics Character Encoding (Contribute changes the code)
I am wondering if there are any admin settings to work around this issue. This is an issue with Contribute CS3/CS4.
Editing a page in Contribute turns encoded characters into unencoded characters. For example, turning "%3C" into "<". Encoded version has no errors.
Un-encoded characters in Google Analytics code causes Scripting Errors on each page you open in Contribute, make loading slower, and make it difficult just to browse the site using Contribute.
Specifically changing this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
to this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>"));
</script>
(I believe it is the double </script></script> that might be causing the error to pop up.)Set the link encoding option as "Insert Links As Is", under Administer website dialog.
-
Source tracking on Google Analytics or StatCounter
I have tried Wyodor's method of insertion of GA and have also installed Statcounter. Both of these were successful in the sense that I can see the city, and which pages were looked at, BUT all of my Source is listed at 'Direct'
To get referrals to my site, I like to embedded by link 'http://www.e2photo.net' onto facebook ads or craigslists ads and etc. I am suspecting that when I do that, a page on my site is hit and then referred to my welcome page. This will appear as a "Direct' hit is my guess.
So my question is simple. How do I embedded the GA or Statcounter code into that initial landing page when people click my link?How did you put the GA and Statcounter codes in iWeb?
This video shows you the proper way of adding these codes to your website
http://apptorial.com/how-to-use-iweb-seo-tool-1-8/ -
Problems with Blog Comments after running Google Analytics Automator
I upgraded to IWeb 09 today and was hoping that there would be not too many compatibility issues. Well, here is one.
I noticed that the comment function on my blog page kept disappearing after I published the website to MobileMe. After some hours of trial and error I found out that the comment function is there right after publishing but disappears straight after running the Google Analytics Automator on the Idisk website folder.
I don't think I had this problem with IWeb 08 (I only used it briefly), so that might be a compatibility issue with IWeb 09.
Anybody else had this problem? Any suggestions?After some hours of trial and error I found out that the comment function is there right after publishing but disappears straight after running the Google Analytics Automator on the Idisk website folder.
this is a known problem since from iweb1, any time you post edit your pages (with google analytics automator or what not) you potentially cripple MMe server side functions.
search iweb1 and iweb2 forum for more details. -
Use SSIS to Load SQL Historical Tables into Google Analytics
Is there a way to load data from a SQL data warehouse into Google Analytics?
Thanks
Francis, MCTS: BI 2008, MCITP: BI 2008 Stay Thirsty My FriendsYou need to register with Google to get the API Predictions token https://cloud.google.com/prediction/.
Then you must be able to upload the data.
Google Analytics AFAIK does not predict, but can do historical analysis. The recommendations are harder to do.
To do both for free you can use Julia and/or R (<cite class="_Rm">www.r-project.org)</cite>.
Azure has Mahout and soon R, or Apache has it exposed standalone or via Amazon Cloud.
Much depends what kind of recommendations or predictions you need.
Arthur
MyBlog
Twitter -
Proper setup for Google Analytics within BC?
I've done a good bit of research and searching, and so far I've found:
Kiyuco: http://kiyuco.com/tutorials/tracking-cross-domain-traffic-with-google-analytics-on-busines s-catalyst
Adobe Forums: http://forums.adobe.com/message/4737785#4737785
and: http://www.itbusiness.com.au/_blog/Blog/post/Business_Catalyst_vs_Google_Analytics_Cross_D omain_Tracking/
These resources are fairly dated, so it's difficult to know if you're following along correctly. I've even read a good bit of Google's documentation on how Analytics works, but I'm still unsure as to whether or not my setup is working properly.
Everything seems to be tracking, but under "Real-Time" view in Google Analytics, one user will become two as soon as they click the checkout button... Is that normal? I guess I'm asking for others to share their "base" setup is for Analytics on BC e-commerce sites. Or even just tips and resources... Anything! Thanks.
-AddisonHi again Angela
This is RoboHelp HTML, no?
If so, you should be able to do the following:
* Click View > Pods > Project Setup
* Right-click the Templates pseudo-folder and choose "New
Topic Template"
* Name the Template and click OK
* Click View > Footer (Or View > Header - But Footer is
probably more clean for this)
* Click Insert > HTML > Advanced > Script
* Paste your snippet of code and click OK (You should see red
boxes in your footer)
* Click Window > Close all
* Click View > Pods > Topic List
* Press Ctrl+A to select all topics
* Right-click the selection and choose Properties
* Click the General tab
* Click the drop-down and choose your template, then click
OK. It should then apply the footer to all the topics in your
project.
That should get you pretty near to what you are seeking.
Cheers... Rick -
Adobe Muse site and Google Analytics/Webmaster Tools
Ok, so this is my first time attempting to utilize Google Analytics/Webmaster Tools, etc. onto a Muse website. It gives me an html code that I am supposed to add to my website. Without using the Edit > Insert Custom HTML, I need to actually go into the site Code and add it manually. For example, the Google Webmaster basically wants me to add a "google1234567890.html" page to my site, so I need to actually be able to upload a .html to act as a page on my muse site so that it can verify the "www.domain.google1234567890.html if one were to visit it like a page. Additionally, with Google Analytics, it requests you add a custom html code to each page you want to "track". The Edit > Insert HTML does not work with these tools. So ultimately, how can I access my actual HTML code in order to add these manually to each web page, AND have it Publish?
http://www.j-26.com/google-webmaster.html
http://www.j-26.com/google-analytics.html
those are updated version of Dr Juan's links.
Maybe you are looking for
-
You want ideas for skype? Alright, here are some.
According to "Claudius", in http://community.skype.com/t5/Windows-desktop-client/Wanted-Your-Skype-for-Windows-Desktop-ideas/td-.... We should be giving our ideas. Well, I have a few, after updating to 6.22, even more so. Idea 1. Stop taking advic
-
Using Oracle Text to Data Mine
Can someone provide me with an idea of how to Data Mine with just using Oracle Text and not the data mining option. I need to search a column of customer complaints and then put it in a category based on that. It would be best if the categories were
-
I want to install BI content for QM module. Can anybody tell me which is the infoarea for the same. Regards, Mahendra
-
i lost my itunes dat my system is updated.now wen i conncted iphone to my pc i did backup from "on this phone"tab i lost music wen i syncd how can i get my music back.ive nt dne back up to ny othr extrnl devices.
-
Improve image quality of VI when published on Internet
I'm using LabVIEW 6.02 and are publishing VI on the Internet. When I do that and are viewing them with the browser Explorer the grafichs details is bad. I have set the quality to be 100 and tried both png and jpeg format!Is there other things that I