This code is the root of the problem.
Due to the way this redirect works, no other code on the page has a change to get executed. When a visitor go to /go/party.php the server responds with a message saying that the page has been moved without even sending the tracking code to the visitor.
If you replace the current redirect code with something else fx. a meta refresh or a javascript redirect everything should start working. If you want to keep using the current redirect code, you can use javascript to create virtual pageviews like GregW suggested.
My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.
That sounds way to complicated for me, being a total dummy when it comes to coding (actually I felt like a coding god after creating all those php files, with the help of someone here in the forum)
Well I need some help on this side anyway and was going to hire someone for that, as soon as I have found that guy I'll let him take care of it. No big issue anyway. Thanks to you all for helping!
Maybe this solution is not as simple as it seems but could you not just put the GA code above the redirect? I use a js redirect and it (goals) would not work forever, then just one day I was like well duh, just put the GA code above the redirect code even though G says to put it at the bottom of the page.
Good luck!
So your go/pokersite.php file would be:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2239559-6']);
_gaq.push(['_trackPageview']);
(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>
<?php
header("Location: http://www.partypoker.com/td/new_table/de105368_eu_PP_NewTable_LP.htm?wm=3103016");
?>
I'll def give that a try and see whether it works, thanks for the advice
after pasting that into the php file, the links do not work any more
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks