Sorry Guys, Been crazy busy.
As far as the script landing on the banner tracking page and not redirecting you... There is a php header redirect at the bottom of the snippet that is commented out.
Banner name: Not sure why that is not showing up for you. The banner name comes from this code:
$name = $row[adname];
echo "Banner Name: ".$name."<br>";
It is pulling the from the adname column in the banner table. I will need more information. When your creating a banner are you filling in all the fields? Have you checked the database to see if those fields are getting saved to the database?
The impression tracker needs the following to work:
<script src="impressiontracker?id=1"></script>
<a href="bannertracker?id=1&code=mcrm-001&motiv=mcrm-001"><img src="assets/banners/ministrycrmbanner1.jpg" border="0" alt="mcrm" /></a>
The first line is what triggers the impressions. Not sure if that is the best way to trigger an impression but it has been working for me. Make sure you set up a page (impressiontracker) as stated in the instructions:
8. Create new modx page called impressiontracker (alias) and include the impression tracker snippet call [!impressiontracker!]