Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 1 of 1
-
10-14-2015, 06:52 AM #1New to the CF scene
- Join Date
- Oct 2015
- Posts
- 1
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Firing 3 different Conversion Pixel based on time on page
Hello,
I am working on a project where my customer spends money advertising their business with TrafficJunky. They are wanting to set up conversion tracking pixels for their ads (Traffic Junky supplies you the code to insert into the page - they offer 3 forms of implementation; HTML code, PHP code, & Postback URL) We want 3 pixels that will go off based on the following; 1 will go off after 5 minutes on page; 1 after 10 minutes on page; 1 after 20 minutes on page. I believe this can be accomplished using js/ajax Window setTimeout() Method. My JavaScript skills are pretty limited.. Could anyone assist me with creating the base code for this? I would GREATLY appreciate it & would be interested in freelancing stuff out to someone in the future (paid gigs) if i can get this working.
Here is an example of the php code TrafficJunky gave me to use.
PHP Code:<?php
$randomNumber = time() . mt_rand(1000, 9999999);
$currentPage = substr($_SERVER["REQUEST_URI"], 0, 255);
?>
<img id="1000123071_cpa_testing" src="https://ads.trafficjunky.net/tj_ads_pt?a=1000123071&member_id=266201&cb=<?=$randomNumber ?>&epu=<?=$currentPage ?>&cti=[TRANSACTION_UNIQ_ID]&ctv=[VALUE_OF_THE_TRANSACTION]&ctd=[TRANSACTION_DESCRIPTION]" width="1" height="1" border="0" />
or HTML version
Thank you for viewing over my issue & I look forward to your responses! :)Code:<img id="1000123071_cpa_testing" src="https://ads.trafficjunky.net/tj_ads_pt?a=1000123071&member_id=266201&cb=[RANDOM_NUMBER]&cti=[TRANSACTION_UNIQ_ID]&ctv=[VALUE_OF_THE_TRANSACTION]&ctd=[TRANSACTION_DESCRIPTION]" width="1" height="1" border="0" />



Reply With Quote
