Actually I want to know how to use GA tracking code to count how many times my affiliate links have been clicked...
I ma using wordpress site and php redirection...
my php redirection code is,
PHP Code:
<?php
header( 'Location: [url]http://myaffiliatelink.com');[/url]
?>
As we know analytics code would be,
HTML Code:
<script type=”text/javascript”>
<--- code --->
</script>
If I place code before the php redirects, it gives an error like... " Cannot modify header information"
If I will put it after the redirection, tracking code will not be triggered....
I have search the web but as I am not any programmer, I can't get all those things because they are not giving clear points ans samples...
And to trigger the tracking, I need to give delay to redirect according to some articles....
Now what exactly I need to put in my php file ???
What exactly I need to put on links ?? (means simple html link or any javascript function)
If you suggest me javascript function or codes then please give me sample because I am not good with codes and programs...
Thank you vary much your help would be highly appreciated...
Nirav Dave