2017 © Pedro Peláez
 

library php-advertiserpostback

PHP Library to setup postback tracking

image

onlineactivitybv/php-advertiserpostback

PHP Library to setup postback tracking

  • Monday, March 5, 2018
  • by blaaat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 6 % Grown

The README.md

php-advertiserpostback

PHP Library to setup postback tracking, (*1)

Postback concept explained, (*2)

Installation

Composer:, (*3)

$ composer require onlineactivitybv/php-advertiserpostback "^2"

Requirements

PHP 7.0+, Curl, (*4)

Usage

Init:, (*5)

require __DIR__ . '/vendor/autoload.php';

use OnlineActivityBV\AdvertiserPostback\AdvertiserPostback; 

$oa = new AdvertiserPostback(
     'abdddsdsdsjhdshjshj33jhhjdshjc', /* Here credentials given by OA **/ 
     'oa6.nl', /* tracking domain, given bij OA */
     'oa_clickid' /* $_GET variable name used to send click id to lander **/); 

Landingpage:, (*6)

Add this code to the TOP of your landing page (sets cookie so needs to be before any other output., (*7)

$oa->landingPage(); 

Thank you page:, (*8)

Save OA ClickId to your database and link to conversion, (*9)

$clickId = $oa->getClickId(); 

With ClickID you can either choose to run postback on thank you page or you can call the postback on a later moment, with the clickId extracted from your database., (*10)

// first outout thank you HTML.
fastcgi_finish_request(); // optional, recommended not to delay output of thank you HTML.
$conversionStatus = $oa->addConversion($lead_id = 376, $eventId, $clickId);

The Versions

05/03 2018

v2.x-dev

2.9999999.9999999.9999999-dev

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

05/03 2018

v2.0.1-beta

2.0.1.0-beta

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

02/03 2018

v2.0.0-beta

2.0.0.0-beta

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

06/02 2018

dev-master

9999999-dev

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

06/02 2018

v1.0.2

1.0.2.0

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

26/01 2018

v1.0.1

1.0.1.0

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus

25/01 2018

v1.0.0

1.0.0.0

PHP Library to setup postback tracking

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

by Sander Backus