<script id="pap_x2s6df8d" src="URL_TO_PAP/scripts/clickjs.php" type="text/javascript"></script>
<script type="text/javascript">
papTrack();
</script>
<?php$clickTracker->saveCookies(); will output javascript code that saves all necessary cookies. This function outputs javascript code because it needs to save also flash cookies.
require_once 'PapApi.class.php';
// init session for PAP
$session = new Gpf_Api_Session("URL_TO_PAP/scripts/server.php");
// register click
$clickTracker = new Pap_Api_ClickTracker($session);
try {
$clickTracker->track();
$clickTracker->saveCookies();
} catch (Exception $e) {
}
?>
// save cookiesThis code will save normal cookies only. Optional parameter for the save3rdPartyCookiesOnly() is cookie domain validity.
$clickTracker->save3rdPartyCookiesOnly();
if ($clickTracker->getAffiliate() != null) {
echo $clickTracker->getAffiliate()->getValue('userid'); // prints affiliate userid
echo $clickTracker->getAffiliate()->getValue('refid'); // prints affiliate refid
}
if ($clickTracker->getCampaign() != null) {
echo $clickTracker->getCampaign()->getValue('campaignid'); // prints campaign id
}
// init session for PAPAdditional info available after login.
$session = new Gpf_Api_Session("URL_TO_PAP/scripts/server.php");
if(!$session->login("MERCHANT_USERNAME", "MERCHANT_PASSWORD")) {
echo("Cannot login. Message: ".$session->getMessage());
}
Change LogIf you don't have latest release of product, please take a look into our change log. Maybe your problem was already resolved in newer release and you can just upgrade your installation to resolve the problem.
Review Change log
|
Road MapHave you suggestion, how to improve our products? Maybe same suggestion is already reported in our road map and you don't need to contact us because of it.
Review Roadmap
|
Bug TrackerIf you want to report bug, please take a look into our opened bugs. Maybe same bug was already reported. Please don't report same bug next time!
Review opened bugs
|
Phone SupportPhone support is offered only in English.
Toll Free (USA & Canada): 1-877-374-3995
Skypein: 1-415-8303923 Skype Phone: quality.unit Other: +421-911-023006 |
New Support TicketPlease search for an answer in our knowledgebase first. You might find your answer faster than by contacting us!
Submit New Ticket
|
|
All the menu items will lead |
||
Affiliate softwarePost Affiliate Pro 4Powerful affiliate software to power your affiliate program Customer supportSupport CenterHelpdesk, email management and KB LiveAgentLive Chat for your web Other productsPost Member ProMembership software Unit MinerWeb data extraction |
||
|
Earn commission for referring our products Affiliate program |
||