jeremy-wischusen / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

Manual Tags Not Working in AS3 Mode #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a SWF very similar to the example given in the example for Using
the AnalyticsLibrary Component:

http://code.google.com/apis/analytics/docs/flashTrackingSetupFlash.html#useAnaly
ticsLibrary

I used the following actionscript

import com.google.analytics.AnalyticsTracker;
import com.google.analytics.GATracker;
var tracker:AnalyticsTracker = new GATracker( this, "UA-111-222",
"AS3", false );
mybutton_btn.addEventListener(MouseEvent.CLICK, buttonClicked);
function buttonClicked(event:MouseEvent):void
{
        tracker.trackPageview();
}
stop();

though this can be made even simpler:

import com.google.analytics.AnalyticsTracker;
import com.google.analytics.GATracker;
var tracker:AnalyticsTracker = new GATracker( this, "UA-111-222",
"AS3", false );
tracker.trackPageview();

with the same result.

2. Embed swf into a page and upload the page and the swf to a live server. 
3. Visit the page with utm parameters. For example:

http://www.example.com/mytestpage.html?utm_source=test1&utm_medium=test2&utm_cam
paign=test3

What is the expected output? What do you see instead?

I'm expected to see a gif hit similar to the following:

GET /__utm.gif
?utmwv=4.3as
&utmn=1590912768
&utmhn=www.example.com
&utmcs=UTF-8&utmsr=1280x1024
&utmsc=32-bit&utmul=en-us
&utmje=0&utmfl=10.0%20r12
&utmdt=Untitled%20Document
&utmhid=482509063
&utmr=-
&utmp=/mytestpage.html?utm_source=test1&utm_medium=test2&utm_campaign=test3
&utmac=UA-111-222
&utmcc=__utma%3D64144556.784831324379115500.1227653843.1227733079.1228489765.103
3%3B%2B
__utmz%3D64144556.1227653843.1.1
.utmcsr%3Dtest1
%7Cutmccn%3Dtest3
%7Cutmcmd%3Dtest2
%3B HTTP/1.1

Instead I'm seeing the following:

GET /__utm.gif
?utmwv=4.3as
&utmn=1590912768
&utmhn=www.example.com
&utmcs=UTF-8&utmsr=1280x1024
&utmsc=32-bit&utmul=en-us
&utmje=0&utmfl=10.0%20r12
&utmdt=Untitled%20Document
&utmhid=482509063
&utmr=-
&utmp=/mytestpage.html?utm_source=test1&utm_medium=test2&utm_campaign=test3
&utmac=UA-111-222
&utmcc=__utma%3D64144556.784831324379115500.1227653843.1227733079.1228489765.103
3%3B%2B
__utmz%3D64144556.1227653843.1.1
.utmcsr%3D(direct)
%7Cutmccn%3D(direct)
%7Cutmcmd%3D(none)
%3B HTTP/1.1

In my Google Analytics reports, this is showing up as a direct visit,
instead of a visit from test1/test2 for the campaign test3.

What version of the product are you using? On what operating system?

I'm using Flash Player WIN 10,0,12,36 on Windows XP and FF 3.0.4

Please provide any additional information below.

Referrals show up correctly. I can provide link to live page if necessary.

Original issue reported on code.google.com by ja...@roirevolution.com on 5 Dec 2008 at 3:21

GoogleCodeExporter commented 9 years ago
Do you mind providing a link to the live page, I'd like to check the status of a
couple of other parameters.

Original comment by Nicksk...@gmail.com on 5 Dec 2008 at 5:53

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
http://roirevolution.com/internal/jeremy/flash3/flashtrack.html

Original comment by ja...@roirevolution.com on 5 Dec 2008 at 7:24

GoogleCodeExporter commented 9 years ago
Yes. They aren't working, glicd doesn't work either...

Moving priority to High...not sure if we can wait till v1.2

Original comment by Nicksk...@gmail.com on 5 Dec 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Fixed. Consequently adding a query parameter between the URL and manual 
tracking tags
should "fix" the problem if you can't wait till the next release:

http://roirevolution.com/internal/jeremy/flash3/flashtrack.html?a=b&utm_source=x
xx&utm_medium=yyy&utm_campaign=zzz

Original comment by Nicksk...@gmail.com on 9 Dec 2008 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by Nicksk...@gmail.com on 23 Dec 2008 at 6:37