{HELP} Changing text on button after CPA offer is completed

acapitalTee

Power Member
Joined
Dec 20, 2012
Messages
635
Reaction score
258
Hi anyone reading this,

I have a rewards site where users complete offers for rewards. I want to change the text of a button from "Complete Survey" to "Completed" after they complete the survey.

I have been looking for someone on fiverr to do this but cannot figure out how to explain what I want.

I am using the built in content locker from my cpa network and it allows me to enter a url to take users to after the offer is completed. I was thinking this url redirect could be a trigger of some sort to change the text to "Completed" or would using cpa postback be a better idea?

I just need suggestions on what is plausible to do in my situation and/or how best to explain what I need done to someone. Help? Please?
 
If you can set query string URL when offer is completed and if you use PHP,then you can use something like this:
Code:
URL where are users redirected once they complete the offer: http://www.yoursite.com/yourpage.php?completed=1

PHP code for page yourpage.php:

<?php
$is_completed = $_GET['completed'];
if ($is_completed == 1) { ?>
	<a href="http://www.yoursite.com/path_to_file.zip">completed</a>
<?php } else { ?>
	<a href="http://www.path-to-offer.com">not completed</a>
<?php } ?>

Same thing can be accomplished using JavaScript.

Please note that this is not perfect solution. You should talk to your CPA company, they might have something better.
 
While the example above is a basic and easy solution I wouldn't recommend using it without at least a minimum of sessions being included and checked or perhaps using $_POST instead of GET. The url can easily be manipulated to recieve the 'end product' using that method by simply adding &completed=1 into the chosen URL.
 
Back
Top