Open GoogleCodeExporter opened 9 years ago
here one way to debug it further
do you see in debug mode "campaignInfo:" when you do a tracking ?
if not, let me explain
the last zip we released v1.0.1.319 have all the code setup for campaign
but with a little catch (that we fixed in the mean time but not released yet)
the catch is about how the tracker is initialized and configured
so give a look at
http://code.google.com/p/gaforflash/source/browse/trunk/src/GA_AS3.as
and try to setup your configuration like that
----
GATracker.autobuild = false;
tracker = new GATracker( this, "UA-111-222" );
tracker.mode = "AS3";
tracker.visualDebug = true;
tracker.setCampaignTrack(true);
tracker.setCampNameKey("Test Campaign Name 1");
tracker.setCampSourceKey("Test Campaign Source 1");
tracker.setCampMediumKey("Test Campaign Medium 1");
tracker.setCampContentKey("Test Campaign Content 1");
tracker.setCampTermKey("Test Campaign Term 1");
//then initialize it
GATracker(tracker).build();
----
once this code is initialized (let's say on the 1st frame of your SWF)
in any other frame you should be able to track
----
tracker.trackEvent("Test Event Category", "Hover or Click Action");
tracker.trackPageview( "/test/index.php");
----
and the way to know it worked is to see "campaignInfo:" in the debug.
If it's still not working, then it's a problem with the code in the SWC,
and so the workaround would be to download the most recent source code from the
repository,
or wait for a next release.
We'll try to come up with more examples specific to campaign tracking.
Original comment by zwetan
on 14 Oct 2010 at 8:26
I do not see the "campaignInfo:" in the debug. Below I listed the dubug info. I
have also updated to 1.0.1.319 but the debug still shows 1.0.1.234. I even
installed it on a new machine and recreated the script but still shows this
version.
--------
GATracker (AS3) v1.0.1.234
account: UA-xxx-xxx
setCampaignTrack( true )
setCampNameKey( Test Campaign Name 1 )
setCampSourceKey( Test Campaign Source 1 )
setCampMediumKey( Test Campaign Medium 1 )
setCampContentKey( Test Campaign Content 1 )
setCampTermKey( Test Campaign Term 1 )
trackPageview( /test-page/index.html )
Gif Request #0 sent
--------
I am not using the AS3 bridge mode so I get errors trying your suggestions. I
don't mind waiting until the next release rather than building a work around.
Do you know if there is also any support coming for tracking within projector
files?
Thanks for you help,
Original comment by SummitEl...@gmail.com
on 10 Nov 2010 at 9:07
So I've checked out latest trunk rev. #406 and used as you advise. This is my
debug output:
GATracker (AS3) v1.0.1.319
account: UA-xxxxxxx-y
setCampaignTrack( true )
setCampNameKey( Test Campaign Name 1 )
setCampSourceKey( Test Campaign Source 1 )
setCampMediumKey( Test Campaign Medium 1 )
setCampContentKey( Test Campaign Content 1 )
setCampTermKey( Test Campaign Term 1 )
setDomainName( .ageofdefenders.com )
trackPageview( /menu )
Search:
CampaignTrackig: utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Gif Request #0 sent
source snippet:
GATracker.autobuild = false;
m_tracker.mode = "AS3";
m_tracker.setCampaignTrack(true);
m_tracker.setCampNameKey("Test Campaign Name 1");
m_tracker.setCampSourceKey("Test Campaign Source 1");
m_tracker.setCampMediumKey("Test Campaign Medium 1");
m_tracker.setCampContentKey("Test Campaign Content 1");
m_tracker.setCampTermKey("Test Campaign Term 1");
GATracker(m_tracker).build();
I have a problem, that no campaign is showed in Google Analytics.
Are there any updates on this?
Original comment by tomas.mi...@gmail.com
on 15 Oct 2011 at 1:52
Update: I have cleared SharedObject, but still no "campaignInfo:" is traced...
GATracker (AS3) v1.0.1.319
account: UA-15220292-1
setCampaignTrack( true )
setCampNameKey( Test Campaign Name 1 )
setCampSourceKey( Test Campaign Source 1 )
setCampMediumKey( Test Campaign Medium 1 )
setCampContentKey( Test Campaign Content 1 )
setCampTermKey( Test Campaign Term 1 )
setDomainName( .ageofdefenders.com )
trackPageview( /menu )
Search:
CampaignTrackig:
Gif Request #0 sent
Original comment by tomas.mi...@gmail.com
on 15 Oct 2011 at 4:33
Original issue reported on code.google.com by
SummitEl...@gmail.com
on 16 Sep 2010 at 1:57