soumavachakraborty / gaforflash

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

Setcookiepath does not create a new .sol file #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Also posted in the group page:

i tested the set cookie path just then and it doesn't seem to work?

this was what I saw with the component on stage

GATracker (AS3) v1.0.1.234
account: UA-XXXXX-XX
setCookiePath( /testGoogleA )
trackEvent( videos, Play, test video, 10 )
Gif Request #0 sent

I checked my SOL files and all I got was the alaytics.sol file?

I tried the same with the non component version

import com.google.analytics.AnalyticsTracker; 
import com.google.analytics.GATracker; 
var googleA:AnalyticsTracker = new GATracker( this, "UA-XXXXX-XX", "AS3",
true ); 
googleA.config.cookiePath = "/TESTGAGAGA";

I got the same problem. Althugh in the debug window there was no event
about the cookiepath. So this might also be a bug

I also tried
googleA.config.cookiePath = "TESTGAGAGA";
googleA.config.cookiePath = "/TESTGAGAGA/";
googleA.config.cookiePath = "TESTGAGAGA/";

with the same problem

Original issue reported on code.google.com by mrtruf...@gmail.com on 4 Dec 2008 at 1:18

GoogleCodeExporter commented 8 years ago
Yes, looks like the path is set in the Buffer constructor which gets created 
when
then tracking object is created. By the time setCookiePath is executed the
/analytics.sol file has already been created.

Possible solution:
- move Buffer object creation out of GATracker.as
- remove initData from Tracker.as object creation
- add Buffer.as creation into initData function

As long as cookie path data is defined before the first data transmission 
happens,
the transmission function should implicitly call the init function at which 
time the
proper config data will be set.

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

GoogleCodeExporter commented 8 years ago
Should work now.

The path can only be set before data requests are made to GA (pageview, event,
setvar, ...) Also per Adobe's docs, a Shared Object can only be set on a path 
that
the SWF resides on. 

Original comment by Nicksk...@gmail.com on 6 Dec 2008 at 8:54

GoogleCodeExporter commented 8 years ago
reopening issue...to implement fix in a better way

Original comment by Nicksk...@gmail.com on 10 Dec 2008 at 8:05

GoogleCodeExporter commented 8 years ago
Fixed...setCookiePath, sessionTimeout, campaignTimeout

Original comment by Nicksk...@gmail.com on 12 Dec 2008 at 9:05

GoogleCodeExporter commented 8 years ago

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