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= ‘http://www.WEBSITE.se/’;
devMode = false;
var _gaq = _gaq || ;
_gaq.push([‘_setAccount’, ‘UA-XXXXXXXXX-X’]);
_gaq.push([‘_trackPageview’]);
_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’) + ‘.google-analytics.com/ga.js’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
I really appreciate your help, thank you in advance!