Created
December 29, 2022 01:45
-
-
Save jonathonbyrdziak/951022cd5961e5a1d94f460fef4b6ab2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Step 1 - We catch the IID forwarded to us. | |
$IID = $_GET['IID']; // the users Individual ID | |
$HEM = $_GET['HEM']; // the users hashed email | |
$site_id = $_GET['site_id']; // our pixel id | |
$client_os = $_GET['client_os']; | |
$client_user_agent = $_GET['client_user_agent']; | |
$client_device = $_GET['client_device']; | |
$page_title = $_GET['page_title']; | |
$page_url = $_GET['page_url']; | |
$customVariable = $_GET['customVariable']; // your custom variables | |
// Step 2 - Save the Pixel Fire to your own database | |
// Step 3 - Call our Profile API with the IID to get the full data set | |
// for API usage instructions | |
// see https://targeting.capitalaudience.com/docs/1.0/api/Profile | |
// Step 4 - Set your headers for the return | |
// If you choose to send nothing, then send a 204 | |
//header("HTTP/1.1 204 No Response"); | |
// If you choose to load your own Javascript | |
header('Content-Type', 'application/javascript'); | |
?> | |
// Any javascript you wish | |
alert('loaded the pixel catch'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment