kidker / gaforflash

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

Analytics not registering campaign info but is for all events and pages - debug mode works #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
======================================
1.AS3 mode to track page view
2.Set campaign keys for Name, Source, Medium, Content and Term
3.Track Page View

What is the expected output? What do you see instead?
=====================================================
Analytics does not receive any campaign information but the page view is 
logged. Debug mode shows that the campaigns are set before the page view is 
recorded. However this information does not make into into Google Analytics. 

What version of the product are you using? On what operating system?
====================================================================
Adobe Flash CS5 with gaforflash 1.0.1.319 running in AS3 mode.

Please provide any additional information below:
================================================
The following events are set on a frame. When the timeline is directed to the 
that frame, the events below are triggered. "tracker" is the instance name of 
the gaforflash component. The campaign strings are shown in the debug mode as 
being set "example debug output: setCampNameKey( Test Campaign Name 1 )". 

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");
tracker.trackEvent("Test Event Category", "Hover or Click Action");
tracker.trackPageview( "/test/index.php"); 

Any help, direction or assistance is greatly appreciated. 

Thanks,

Original issue reported on code.google.com by SummitEl...@gmail.com on 16 Sep 2010 at 1:57

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Were you ever able to solve this? It seems like Campaign tracking does not work 
at all, I can not make it work.

Original comment by rewb...@googlemail.com on 14 Aug 2015 at 10:25