Google Analytics - Set campaign via gaq_push?

I’m having a folder on my site that’s going to be the host of a iPhone-application, I can’t send the URL variables to this page. I want to track the visitors from the iPhone Application to it’s own campaign and I believe the only way is to push it.

I’ve tried adding the push code like this, but no campaign tracking are showing up in Analytics, could someone please help me point out what I’ve done wrong?

<script type=“text/javascript”>
base_url= ‘’;
devMode = false;
var _gaq = _gaq || ;
_gaq.push([‘_setAccount’, ‘UA-XXXXXXXXX-X’]);

_gaq.push([‘_setCampSourceKey’, ‘iPhone’]);
_gaq.push([‘_setCampMediumKey’, ‘App’]);
_gaq.push([‘_setCampNameKey’, ‘iPhoneApp’]);

(function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);

I really appreciate your help, thank you in advance!



GATC Campaign Tracking Methods simply define the URL Get Parameters to look for data.

It just changes the utm_— parameters in the url to what ever you define.
so to get these values to show up you’d have to create a link like this:

or not using custom variable names as you are setting up in your code, the regular link would be: