Great idea for the randomizer, but I don't think tracking the number of referrals is possible. What you're tracking is either the number of times any particular referral link is displayed (increments one with each new page load), or with a little more code, the number of times a referral link is clicked. Neither of those will really reflect the actual number of referrals.
I would like to see the total number of referral links currently being chosen from, though.
- - - Updated - - -
Also, I know it's a manual process now, but I'd add code to make sure that any submitted referral link is a real Tesla referral link, and not a link to someone's Tesla Referral webpage or custom domain.
- - - Updated - - -
If I add values after the domain of the referral link won't it prevent the page from hyperlinking properly?
You would need to break out the counters, like this:
PHP:
$randPhrase = explode('|',$textArray[$randArrayIndexNum]);
$url=$randPhrase[0];
$counter=$randPhrase[1];
Code:
<a href="<?php echo $url; ?>">YOUR RANDOM REFERRAL LINK</a> Counter: <? echo $counter; ?>