Hi,
I have setup Google Analytics with hardcoded goals and I use a
function like below (some of the stuff in the function just strips out
parts of the URL so we just have the name of the site visited - this
works fine and is recorded in our GA account.
The only thing here is that most of the URL's all open in a new
window. I have not done this with _self.
function getURLTracked(url:String, window:String) {
getURL(url, window);
var idx = url.indexOf(://);
if(-1 != idx) {
url = url.substring(idx + 3);
}
idx = url.indexOf(www.);
if(-1 != idx) {
url = url.substring(4);
}
idx = url.indexOf(./);
if(-1 != idx) {
url = url.substring(idx + 2);
}
//getURL(javascript:alert('/sas/urls/ + url +'););
getURL(javascript:urchinTracker('/sas/urls/ + url +'););
}
Which I call with...
getURLTracked(http://www.ripcurl.com/;, _blank);
HTH.
Glen
Paul Freedman wrote:
The landing-page of our website is comprised of, say, 15 swfs inside one big
swf. We need to track the hits on each of the 'sub' swfs and then navigate
wherever they go.
I am a simple soul with simple needs and desires. All I really wanted to do
was:
public function trakNgo(tag,theUrl){
// tag=tracking data theUrl=a url
getURL(javascript:trackLink('+tag+'););
getURL(theUrl);
}
But the second getURL bumped the first. The user navigated, but the client
didn't get his tracking.
All the data, tracking and navigation, is fed into the swfs via xml. The
same xml contains content ids, paths, etc. It's all very dynamic and can't
be hard-coded.
I've just spent four days on this. The last six hours I've been trying to
use ExternalInterface, with no success. My boss is cranky and I'm half mad.
Surely, someone has faced this problem before. How do you track something
and navigate somewhere at (almost) the same time?
Any help will be greatly appreciated.
- Paul
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com